Skip to content

flagger_canary_weight metric is missing the name label #1960

Description

@dkulchinsky

Describe the bug

the flagger_canary_weight metric is missing the name label, indicating the Canary's name.

for example:

flagger_canary_weight{app_kubernetes_io_instance="flagger", app_kubernetes_io_name="flagger", app_kubernetes_io_version="1.44.0", instance="172.26.3.33:8080", job="kubernetes-pods", kubernetes_namespace="flagger-system", kubernetes_pod_name="flagger-5b546d7775-xrvh8", namespace="my-app", node="gke-sbx-usc1-platform-9b94eeb5-csxz", node_name="gke-sbx-usc1-platform-9b94eeb5-csxz", pod_template_hash="5b546d7775", workload="podinfo-istio-ambient"} 0

flagger_canary_weight{app_kubernetes_io_instance="flagger", app_kubernetes_io_name="flagger", app_kubernetes_io_version="1.44.0", instance="172.26.3.33:8080", job="kubernetes-pods", kubernetes_namespace="flagger-system", kubernetes_pod_name="flagger-5b546d7775-xrvh8", namespace="my-app", node="gke-sbx-usc1-platform-9b94eeb5-csxz", node_name="gke-sbx-usc1-platform-9b94eeb5-csxz", pod_template_hash="5b546d7775", workload="podinfo-istio-ambient-primary"} 100

To Reproduce

run flagger, create some canaries, shift traffic weights and scrape it with prometheus.

Expected behavior

the flagger_canary_weight metric should have the name label indicating the canary's name.

Additional context

  • Flagger version: 1.44.0
  • Kubernetes version: 1.34.8
  • Service Mesh provider: gatewayapi
  • Ingress provider: N/A

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions