--- # Scrape metrics (:9100) from the traefik-internal and traefik-external gateway # pods. Picked up by the observability VMAgent (selectAllByDefault). The # app.kubernetes.io/instance pod label is kept as traefik_instance so series # from the two releases stay distinguishable. apiVersion: operator.victoriametrics.com/v1beta1 kind: VMPodScrape metadata: name: traefik namespace: observability spec: namespaceSelector: matchNames: - traefik-system selector: matchLabels: app.kubernetes.io/name: traefik podMetricsEndpoints: - port: metrics path: /metrics relabelConfigs: - sourceLabels: [__meta_kubernetes_pod_label_app_kubernetes_io_instance] targetLabel: traefik_instance