rpi.carlosedp.cluster-monit.../manifests/prometheus-serviceMonitorCoreDNS.yaml

20 lines
395 B
YAML
Raw Permalink Normal View History

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
k8s-app: coredns
name: coredns
namespace: monitoring
spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
interval: 15s
port: metrics
2019-02-01 14:52:53 +01:00
jobLabel: k8s-app
namespaceSelector:
matchNames:
- kube-system
selector:
matchLabels:
k8s-app: kube-dns