diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-09-25 23:36:40 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-09-25 23:36:40 +0200 |
commit | 063bdb70a8e8353908ca9742e05be8fac65a61bf (patch) | |
tree | b44100afd46a4c01edb730eb58765a03036c8eef /roles/monitoring/prometheus/exporter/node/tasks/main.yml | |
parent | disabling smartmon textfile collector by default since this can lead to idemp... (diff) |
move away from exporter-exporter in favor for nginx
Diffstat (limited to 'roles/monitoring/prometheus/exporter/node/tasks/main.yml')
-rw-r--r-- | roles/monitoring/prometheus/exporter/node/tasks/main.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/roles/monitoring/prometheus/exporter/node/tasks/main.yml b/roles/monitoring/prometheus/exporter/node/tasks/main.yml index 56903a33..2811c759 100644 --- a/roles/monitoring/prometheus/exporter/node/tasks/main.yml +++ b/roles/monitoring/prometheus/exporter/node/tasks/main.yml @@ -28,11 +28,11 @@ - name: register exporter copy: content: | - method: http - http: - port: 9100 - dest: /etc/prometheus/exporter/exporter/node.yml - notify: reload prometheus-exporter-exporter + location = /node { + proxy_pass http://127.0.0.1:9100/metrics; + } + dest: /etc/prometheus/exporter/node.locations + notify: reload nginx - name: create directory for textfile collector scripts file: |