c12s-kubespray/roles/kubernetes-apps/prometheus/templates/k8s-apps-http-servicemonitor.yml.j2

24 lines
451 B
Text
Raw Normal View History

2017-02-03 22:24:39 +00:00
---
apiVersion: monitoring.coreos.com/v1alpha1
kind: ServiceMonitor
metadata:
name: k8s-apps-http
labels:
k8s-apps: http
spec:
jobLabel: k8s-app
selector:
matchExpressions:
- {key: k8s-app, operator: Exists}
namespaceSelector:
matchNames:
- kube-system
- monitoring
endpoints:
- port: http-metrics
interval: 15s
- port: http-metrics-dnsmasq
interval: 15s
- port: http-metrics-skydns
interval: 15s