2018-03-02 01:03:53 +01:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
2020-05-26 17:59:47 +02:00
|
|
|
app.kubernetes.io/name: node-exporter
|
|
|
|
app.kubernetes.io/version: v0.18.1
|
2018-12-12 18:18:00 +01:00
|
|
|
name: node-exporter
|
|
|
|
namespace: monitoring
|
2018-03-02 01:03:53 +01:00
|
|
|
spec:
|
2018-12-12 18:18:00 +01:00
|
|
|
endpoints:
|
|
|
|
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
|
2020-03-18 15:13:47 +01:00
|
|
|
interval: 15s
|
2018-12-12 18:18:00 +01:00
|
|
|
port: https
|
2019-08-08 22:09:53 +02:00
|
|
|
relabelings:
|
|
|
|
- action: replace
|
|
|
|
regex: (.*)
|
2019-10-09 22:33:29 +02:00
|
|
|
replacement: $1
|
2019-08-08 22:09:53 +02:00
|
|
|
sourceLabels:
|
|
|
|
- __meta_kubernetes_pod_node_name
|
|
|
|
targetLabel: instance
|
2018-12-12 18:18:00 +01:00
|
|
|
scheme: https
|
|
|
|
tlsConfig:
|
|
|
|
insecureSkipVerify: true
|
2020-05-26 17:59:47 +02:00
|
|
|
jobLabel: app.kubernetes.io/name
|
2018-03-02 01:03:53 +01:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2020-05-26 17:59:47 +02:00
|
|
|
app.kubernetes.io/name: node-exporter
|