Skip to content

feat(orca): support additional metric tags on stage execution context - #8005

Open
apoorvmahajandd wants to merge 4 commits into
spinnaker:mainfrom
apoorvmahajandd:feat/orca-additional-metric-tags
Open

feat(orca): support additional metric tags on stage execution context#8005
apoorvmahajandd wants to merge 4 commits into
spinnaker:mainfrom
apoorvmahajandd:feat/orca-additional-metric-tags

Conversation

@apoorvmahajandd

Copy link
Copy Markdown
Contributor

Extract an optional additionalMetricTags map from the stage context during StageExecutionImpl construction, mirroring how other reserved context keys (e.g. requisiteStageRefIds) are already extracted.

We can now inject custom metric tags from stages into existing stage metrics

Testing

  • unit tests
  • verified that the metric had the service tag showing up.
stage_invocations_duration_seconds_count{...,service="foo", stageType="deployManifest", status="SUCCEEDED"}

after adding this:

  "additionalMetricTags": {
    "service": "foo"
  },

to the stage context

🤖 Generated with Claude Code

apoorvmahajandd and others added 2 commits September 11, 2026 17:59
Extract an optional additionalMetricTags map from the stage context
during StageExecutionImpl construction, mirroring how other reserved
context keys (e.g. requisiteStageRefIds) are already extracted.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jasonmcintosh

Copy link
Copy Markdown
Member

I'll note ONE Risk: It's user input being added to a system that sends data to a remote system. I'm still in general in FAVOR of this... but I could also see this used to make an remote type attack with ... bad label inputs kinda things. I'd think this is a LOW possibility overall, why I'm approving it, just a "caution"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants