summaryrefslogtreecommitdiff
path: root/roles/monitoring/prometheus/exporter/nut/templates/service.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-07-28 13:50:00 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-07-28 13:50:00 +0200
commit312c81d93d087642979939f37d20c64527d7ad82 (patch)
treedc1e2ca613acc032a38a7462bebe2020cfbd9429 /roles/monitoring/prometheus/exporter/nut/templates/service.j2
parentadd nut aka UPS to prometheus monitoring (diff)
promehteus nut exporter: make exported variables and statuses configureable
Diffstat (limited to 'roles/monitoring/prometheus/exporter/nut/templates/service.j2')
-rw-r--r--roles/monitoring/prometheus/exporter/nut/templates/service.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/monitoring/prometheus/exporter/nut/templates/service.j2 b/roles/monitoring/prometheus/exporter/nut/templates/service.j2
index ffafcb3c..99613f50 100644
--- a/roles/monitoring/prometheus/exporter/nut/templates/service.j2
+++ b/roles/monitoring/prometheus/exporter/nut/templates/service.j2
@@ -4,7 +4,7 @@ Description=Prometheus nut exporter
[Service]
Restart=always
User=prometheus-exporter
-ExecStart=/usr/bin/prometheus-nut-exporter --web.listen-address="127.0.0.1:9199"
+ExecStart=/usr/bin/prometheus-nut-exporter --web.listen-address="127.0.0.1:9199" --nut.vars_enable="{{ prometheus_exporter_nut_variables | join(',') }}" --nut.statuses="{{ prometheus_exporter_nut_statuses | join(',') }}"
# systemd hardening-options
AmbientCapabilities=