FEAT(prometheus): enable traefik prometheus

- metrics and servicemonitor
- Add metrics.prometheus configuration
- Enable ServiceMonitor for Prometheus scraping
- Add release: prometheus label for discovery
- Enables Grafana dashboard 17346 to display data
This commit is contained in:
2026-01-04 13:41:05 +09:00
parent 7e687ef657
commit a705994eac

View File

@@ -54,3 +54,18 @@ spec:
service:
annotations:
svccontroller.k3s.cattle.io/tolerations: '[{"key":"node-role.kubernetes.io/master","operator":"Exists","effect":"NoExecute"}]'
# Prometheus metrics
metrics:
prometheus:
entryPoint: metrics
addEntryPointsLabels: true
addRoutersLabels: true
addServicesLabels: true
service:
enabled: true
serviceMonitor:
enabled: true
namespace: prometheus
additionalLabels:
release: prometheus