From b81a3cbf943e80aef6a9b3b8f73196162980449d Mon Sep 17 00:00:00 2001 From: jennerwein Date: Fri, 31 Jul 2020 17:15:44 +0200 Subject: [PATCH] Update node_exporter.service.j2 --collectors.enabled does not work with newer versions of node exporter. It must be substituted by other code construct. --- templates/etc/systemd/system/node_exporter.service.j2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/etc/systemd/system/node_exporter.service.j2 b/templates/etc/systemd/system/node_exporter.service.j2 index 7c93436..a0fcf47 100644 --- a/templates/etc/systemd/system/node_exporter.service.j2 +++ b/templates/etc/systemd/system/node_exporter.service.j2 @@ -10,8 +10,7 @@ Restart=always # Start the service, bound to localhost. It will be exposed by another service, such as NGINX or stunnel. ExecStart=/usr/local/bin/node_exporter \ --collector.textfile.directory="{{ node_exporter_textfile_directory }}" \ - --web.listen-address="127.0.0.1:9100" \ - --collectors.enabled="{{ node_exporter_exporters | join(',') }}" + --web.listen-address="127.0.0.1:9100" [Install]