github.com/m3db/m3@v1.5.0/scripts/vagrant/provision/manifests/prometheus-servicemonitor-promremotebench.yaml (about)

     1  # ServiceMonitor to scrape metrics from all M3DB pods when using the prometheus
     2  # operator.
     3  apiVersion: monitoring.coreos.com/v1
     4  kind: ServiceMonitor
     5  metadata:
     6    labels:
     7      k8s-app: promremotebench
     8      monitor-for: prom
     9    name: promremotebench
    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: debug
    19      scrapeTimeout: 5s
    20    namespaceSelector:
    21      matchNames:
    22      - default
    23    selector:
    24      matchLabels:
    25        app: promremotebench