diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-19 14:20:52 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-19 14:20:52 +0200 |
| commit | 98c84ab4465098125281909bbeb6d22e831902c3 (patch) | |
| tree | 06d6d17b6ec35e84fd37fd5e23898efa3af6d9f7 | |
| parent | 8777a0c2ac0a48fa9715628ae4f61025881332f8 (diff) | |
Enable systemd monitoring via prometheus node exporter
| -rw-r--r-- | roles/prometheus/tasks/main.yml | 5 |
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" |
