Commit 049b989f authored by kaiyou's avatar kaiyou
Browse files

Monitor traefik using Prometheus

parent 542860f3
......@@ -40,7 +40,7 @@ spec:
- "--metrics.prometheus=true"
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
kind: PodMonitor
metadata:
name: traefik
spec:
......@@ -49,8 +49,8 @@ spec:
selector:
matchLabels:
app.kubernetes.io/name: traefik
endpoints:
- port: web
podMetricsEndpoint:
- port: traefik
path: /metrics
interval: 15s
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment