Skip to content

fix(metrics): rename workload label to name in canary_weight metric - #1979

Open
AruneshDwivedi wants to merge 1 commit into
fluxcd:mainfrom
AruneshDwivedi:fix/canary-weight-metric-name-label
Open

AruneshDwivedi wants to merge 1 commit into
fluxcd:mainfrom
AruneshDwivedi:fix/canary-weight-metric-name-label

Conversation

@AruneshDwivedi

Copy link
Copy Markdown

The canary_weight gauge was defined with labels ['workload', 'namespace'] but SetWeight() passes cd.Spec.TargetRef.Name which semantically is the canary 'name'. This caused a label mismatch where users could not filter by canary name in Prometheus.

The canary_weight gauge was defined with labels ['workload', 'namespace']
but SetWeight() passes cd.Spec.TargetRef.Name which semantically is the
canary 'name'. This caused a label mismatch where users could not filter
by canary name in Prometheus.

Signed-off-by: Arunesh Dwivedi <arunesh.devops@gmail.com>

This branch has not been deployed

No deployments
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.

1 participant