feat: traefik prometheus metrics

This commit is contained in:
2026-06-17 01:41:45 +02:00
parent dac3777fc4
commit 76853637bc
2 changed files with 16 additions and 16 deletions
-16
View File
@@ -1,16 +0,0 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: traefik-monitor
namespace: prometheus
labels:
release: prometheus-stack
spec:
namespaceSelector:
any: true
selector:
matchLabels:
app.kubernetes.io/name: traefik
endpoints:
- port: metrics
interval: 15s
+16
View File
@@ -77,6 +77,22 @@ ports:
protocol: UDP protocol: UDP
expose: expose:
default: true default: true
metrics:
port: 9100
exposedPort: 9100
protocol: TCP
expose:
default: false
metrics:
prometheus:
enabled: true
entryPoint: metrics
serviceMonitor:
enabled: true
additionalLabels:
release: prometheus-stack
namespace: prometheus
ingressRoute: ingressRoute:
dashboard: dashboard: