github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/scripts/vagrant/provision/manifests/kube-prometheus/prometheus-serviceMonitorCoreDNS.yaml (about) 1 apiVersion: monitoring.coreos.com/v1 2 kind: ServiceMonitor 3 metadata: 4 labels: 5 k8s-app: coredns 6 name: coredns 7 namespace: monitoring 8 spec: 9 endpoints: 10 - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token 11 interval: 15s 12 port: metrics 13 jobLabel: k8s-app 14 namespaceSelector: 15 matchNames: 16 - kube-system 17 selector: 18 matchLabels: 19 k8s-app: kube-dns