From c4033903b40ec26e0a812466604e241f1e1d602a Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 23 Jun 2023 19:19:48 +0200 Subject: [PATCH] Monitoring: add node tag to node-exporter metrics --- prometheus/values.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prometheus/values.yaml b/prometheus/values.yaml index abff96a..1bee329 100644 --- a/prometheus/values.yaml +++ b/prometheus/values.yaml @@ -38,6 +38,12 @@ grafana: - grafana.services.yolokube.de ingressClassName: nginx prometheus-node-exporter: + prometheus: + monitor: + enabled: true + relabelings: + - sourceLabels: [__meta_kubernetes_endpoint_node_name] + targetLabel: node extraArgs: - '--collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)' - '--collector.filesystem.fs-types-exclude=^(autofs|binfmt_misc|bpf|cgroup2?|configfs|debugfs|devpts|devtmpfs|fusectl|hugetlbfs|iso9660|mqueue|nsfs|overlay|proc|procfs|pstore|rpc_pipefs|securityfs|selinuxfs|squashfs|sysfs|tracefs)$'