Files
kube-prometheus/manifests/prometheus/prometheus-k8s-service-monitor-prometheus.yaml
Frederic Branczyk 309c677270 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.
2017-04-27 12:44:46 +02:00

13 lines
243 B
YAML

apiVersion: monitoring.coreos.com/v1alpha1
kind: ServiceMonitor
metadata:
name: prometheus
labels:
prometheus: k8s
spec:
endpoints:
- port: web
selector:
matchExpressions:
- {key: prometheus, operator: In, values: [k8s]}