diff --git a/server/chart/ops/prometheus/templates/configmap.yaml b/server/chart/ops/prometheus/templates/configmap.yaml index 8143146b..4d327aec 100644 --- a/server/chart/ops/prometheus/templates/configmap.yaml +++ b/server/chart/ops/prometheus/templates/configmap.yaml @@ -62,6 +62,18 @@ data: replacement: $1 action: keep + - job_name: k8s-node + kubernetes_sd_configs: + - role: endpoints + namespaces: + names: + - cattle-monitoring-system + relabel_configs: + - source_labels: [__meta_kubernetes_service_label_app_kubernetes_io_name] + regex: prometheus-node-exporter + replacement: $1 + action: keep + - job_name: spring kubernetes_sd_configs: - role: endpoints