Commit 542860f3 authored by kaiyou's avatar kaiyou
Browse files

Monitor traefik using Prometheus

parent 1656ec8b
......@@ -38,3 +38,19 @@ spec:
additionalArguments:
- "--serversTransport.insecureSkipVerify=true"
- "--metrics.prometheus=true"
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: traefik
spec:
namespaceSelector:
matchNames: ["kube-ingress"]
selector:
matchLabels:
app.kubernetes.io/name: traefik
endpoints:
- port: web
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