k3s/monitoring/servicemonitors/traefik-monitor.yaml
Astra Logical 6b6e6866a4 Monitoring
2026-03-17 18:28:38 -04:00

21 lines
471 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: traefik-monitor
namespace: monitoring
labels:
release: kube-prometheus-stack
spec:
selector:
matchLabels:
metrics: enabled # This matches the new Service we just made
namespaceSelector:
matchNames:
- kube-system
endpoints:
- port: metrics
interval: 30s
path: /metrics
relabelings:
- targetLabel: job
replacement: traefik