Monitoring/manifests/node-exporter/servicemonitor.yaml

17 lines
402 B
YAML
Raw Normal View History

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: node-exporter
namespace: monitoring
spec:
selector:
matchLabels:
2024-11-11 19:03:27 +00:00
app.kubernetes.io/component: exporter
app.kubernetes.io/name: node-exporter
endpoints:
- port: node-exporter
path: /metrics
relabelings:
- sourceLabels: [__meta_kubernetes_pod_node_name]
targetLabel: instance