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

@@ -2,9 +2,8 @@ apiVersion: monitoring.coreos.com/v1alpha1
kind: ServiceMonitor
metadata:
name: kube-state-metrics
namespace: monitoring
labels:
k8s-apps: http
k8s-app: kube-state-metrics
spec:
jobLabel: k8s-app
selector:
@@ -15,5 +14,5 @@ spec:
- monitoring
endpoints:
- port: http-metrics
interval: 15s
interval: 30s
honorLabels: true