apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: traefik-external namespace: traefik spec: selector: matchLabels: app.kubernetes.io/name: traefik-external endpoints: - port: metrics path: /metrics