diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-05-30 16:08:03 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-06-20 01:44:16 +0200 |
commit | 3ef83057161e6d973f79805340d4c3d210425465 (patch) | |
tree | cf151e9dea64b0c72914e2f59939f12e47585cba /roles/monitoring/prometheus/exporter/node/tasks/main.yml | |
parent | root part has been resized for some hosts (diff) |
cleanup: old preliminary tasks
Diffstat (limited to 'roles/monitoring/prometheus/exporter/node/tasks/main.yml')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/tasks/main.yml | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/tasks/main.yml b/roles/monitoring/prometheus/exporter/node/tasks/main.yml index 286b6d75..0758eb3f 100644 --- a/roles/monitoring/prometheus/exporter/node/tasks/main.yml +++ b/roles/monitoring/prometheus/exporter/node/tasks/main.yml @@ -1,29 +1,9 @@ --- - name: install apt packages apt: - name: prometheus-node-exporter + name: prom-exporter-node state: present - ## TODO: add other configs -- name: listen on localhost only - lineinfile: - path: /etc/default/prometheus-node-exporter - regexp: '^ARGS=' - line: 'ARGS="--web.listen-address=127.0.0.1:9100"' - notify: restart prometheus-node-exporter - -- name: create nginx snippet - copy: - content: | - location = /node { - proxy_pass http://127.0.0.1:9100/metrics; - } - dest: /etc/prometheus-exporter/exporters-available/node - # notify: reload nginx - -- name: enable nginx snippet - file: - src: /etc/prometheus-exporter/exporters-available/node - dest: /etc/prometheus-exporter/exporters-enabled/node - state: link - # notify: reload nginx +## TODO: +## - systemd service unit +## - add snippet to exporter-exporter config-dir |