apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: traefik
  namespace: traefik
  labels:
    app.kubernetes.io/name: traefik
    app.kubernetes.io/instance: traefik-traefik
    app.kubernetes.io/component: metrics
    helm.sh/chart: traefik-38.0.2
    app.kubernetes.io/managed-by: Helm
spec:
  jobLabel: traefik
  endpoints:
    - targetPort: metrics
      path: /metrics
  namespaceSelector:
    matchNames:
      - traefik
  selector:
    matchLabels:
      app.kubernetes.io/name: traefik
      app.kubernetes.io/instance: traefik-traefik
      app.kubernetes.io/component: metrics
