kube-prometheus: extract ServiceMonitors into single files

Starting with Kubernetes 1.6 `kubectl apply` works for TPRs so we can
start using it, therefore using multiple files is no issue.
This commit is contained in:
Frederic Branczyk
2017-04-27 12:35:06 +02:00
parent a0e4d3352a
commit 309c677270
9 changed files with 126 additions and 88 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: monitoring.coreos.com/v1alpha1
kind: ServiceMonitor
metadata:
name: kube-state-metrics
namespace: monitoring
labels:
k8s-apps: http
spec:
jobLabel: k8s-app
selector:
matchLabels:
k8s-app: kube-state-metrics
namespaceSelector:
matchNames:
- monitoring
endpoints:
- port: http-metrics
interval: 15s
honorLabels: true