github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/prometheus-servicemonitor-coordinator.yaml (about) 1 # ServiceMonitor to scrape metrics from all M3 coordinator nodes when 2 # using the prometheus operator. 3 apiVersion: monitoring.coreos.com/v1 4 kind: ServiceMonitor 5 metadata: 6 labels: 7 k8s-app: m3coordinator-monitor 8 monitor-for: m3 9 name: m3coordinator-monitor 10 spec: 11 endpoints: 12 - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token 13 interval: 10s 14 metricRelabelings: 15 - sourceLabels: 16 - pod 17 targetLabel: instance 18 port: coord-debug 19 namespaceSelector: 20 matchNames: 21 - default 22 selector: 23 matchLabels: 24 app: m3coordinator