summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/prometheus/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/prometheus/tasks/main.yml b/roles/prometheus/tasks/main.yml
index c4606ace..c24bddf9 100644
--- a/roles/prometheus/tasks/main.yml
+++ b/roles/prometheus/tasks/main.yml
@@ -59,7 +59,10 @@
become: true
ansible.builtin.copy:
content: |
- NODE_EXPORTER_ARGS="--web.listen-address={{ prometheus_host }}:{{ prometheus_node_exporter_port }}"
+ NODE_EXPORTER_ARGS="
+ --web.listen-address={{ prometheus_host }}:{{ prometheus_node_exporter_port }}
+ --collector.systemd
+ "
dest: "/etc/conf.d/prometheus-node-exporter"
mode: "0644"
notify: "Restart node-exporter"