kube-prometheus: simplify service monitors

This commit is contained in:
Frederic Branczyk
2017-05-30 16:48:52 -07:00
parent c4b382be6f
commit 3aeca3de7b
9 changed files with 63 additions and 46 deletions

View File

@@ -3,10 +3,14 @@ kind: ServiceMonitor
metadata:
name: prometheus
labels:
prometheus: k8s
app: prometheus
spec:
selector:
matchLabels:
prometheus: k8s
namespaceSelector:
matchNames:
- monitoring
endpoints:
- port: web
selector:
matchExpressions:
- {key: prometheus, operator: In, values: [k8s]}
interval: 30s