2018-03-02 01:03:53 +01:00
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: node-exporter
|
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:
|
2019-08-20 01:20:17 +02:00
|
|
|
- interval: 30s
|
|
|
|
port: http
|
2019-08-08 22:09:53 +02:00
|
|
|
relabelings:
|
|
|
|
- action: replace
|
|
|
|
regex: (.*)
|
|
|
|
replacment: $1
|
|
|
|
sourceLabels:
|
|
|
|
- __meta_kubernetes_pod_node_name
|
|
|
|
targetLabel: instance
|
2019-08-20 01:20:17 +02:00
|
|
|
scheme: http
|
2018-03-02 01:03:53 +01:00
|
|
|
jobLabel: k8s-app
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: node-exporter
|