From bc227d2d8db842a15c11f858174ad02777b5c60d Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Sat, 21 Dec 2024 10:54:51 +0100 Subject: [PATCH] fixes #35 add parameters to node_exporter --- roles/prometheus/files/node_exporter.service | 2 +- roles/prometheus/tasks/main.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/prometheus/files/node_exporter.service b/roles/prometheus/files/node_exporter.service index 7daa83f..a9a645b 100644 --- a/roles/prometheus/files/node_exporter.service +++ b/roles/prometheus/files/node_exporter.service @@ -5,7 +5,7 @@ After=network-online.target [Service] User=prometheus -ExecStart=/opt/node_exporter/node_exporter --web.listen-address=127.0.0.1:9100 +ExecStart=/opt/node_exporter/node_exporter -–collector.systemd –-collector.processes --web.listen-address=127.0.0.1:9100 [Install] WantedBy=default.target \ No newline at end of file diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml index 654ddd4..d98dbb9 100644 --- a/roles/prometheus/tasks/main.yml +++ b/roles/prometheus/tasks/main.yml @@ -25,4 +25,3 @@ - name: Check if node_exporter-adv needs to be installed or upgraded ansible.builtin.include_tasks: download.yml when: installed_node_exporter_version.stdout != node_exporter_version -