Skip to content
Snippets Groups Projects
nodeExporter-serviceMonitor.yaml 850 B
Newer Older
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
paulfantom's avatar
paulfantom committed
    app.kubernetes.io/component: exporter
paulfantom's avatar
paulfantom committed
    app.kubernetes.io/part-of: kube-prometheus
    app.kubernetes.io/version: 1.3.1
  name: node-exporter
  namespace: monitoring
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
paulfantom's avatar
paulfantom committed
    interval: 15s
Lili Cosic's avatar
Lili Cosic committed
    relabelings:
    - action: replace
      regex: (.*)
Lili Cosic's avatar
Lili Cosic committed
      sourceLabels:
      - __meta_kubernetes_pod_node_name
      targetLabel: instance
    tlsConfig:
      insecureSkipVerify: true
paulfantom's avatar
paulfantom committed
      app.kubernetes.io/component: exporter
paulfantom's avatar
paulfantom committed
      app.kubernetes.io/part-of: kube-prometheus