Skip to content

Commit c4fa2a6

Browse files
committed
added node exporter collection config
1 parent 886c22d commit c4fa2a6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

ansible/roles/kube_prometheus_stack/defaults/main/helm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ kube_prometheus_stack_release_defaults:
155155
clusterrole: "server"
156156

157157
prometheus-node-exporter:
158+
extraArgs: "{{ node_exporter_args }}"
158159
image:
159160
tag: "{{ node_exporter_image_tag }}"
160161
prometheus:

ansible/roles/kube_prometheus_stack/defaults/main/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,6 @@ grafana_home_dashboard: 13427.json # node exporter slurm
9090
alertmanager_image_tag: v0.27.0
9191

9292
node_exporter_image_tag: v1.8.2
93-
93+
node_exporter_args:
94+
- --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)
95+
- --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)$

ansible/roles/kube_prometheus_stack/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
wait: yes
159159
wait_timeout: "{{ kube_prometheus_stack_wait_timeout }}"
160160

161-
- name: Delete unwanted default dashboards # currently no way to selectively enabled in helm chart
161+
- name: Delete unwanted default dashboards # currently no way to selectively enable in helm chart
162162
kubernetes.core.k8s:
163163
state: absent
164164
kind: ConfigMap
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# To disable unwanted metrics or enable non-default metrics, add --no-collector or --collector flags to list below (see https://github.com/prometheus/node_exporter?tab=readme-ov-file#collectors)
2+
node_exporter_args:
3+
- --collector.filesystem.mount-points-exclude=^/(dev|proc|sys|var/lib/docker/.+|var/lib/kubelet/.+)($|/)
4+
- --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)$

0 commit comments

Comments
 (0)