From 8c8039b8b64fd3a7090974478790cd98f98e0f40 Mon Sep 17 00:00:00 2001 From: Julian Labus Date: Tue, 25 Sep 2018 13:22:46 +0200 Subject: [PATCH] role service-prometheus: add missing node_exporter_default_opts to systemd unit --- roles/service-prometheus/templates/node_exporter.service.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/service-prometheus/templates/node_exporter.service.j2 b/roles/service-prometheus/templates/node_exporter.service.j2 index 86f585a..c6d67e2 100644 --- a/roles/service-prometheus/templates/node_exporter.service.j2 +++ b/roles/service-prometheus/templates/node_exporter.service.j2 @@ -9,9 +9,9 @@ User={{ prometheus_user }} Group={{ prometheus_group }} {% if node_exporter_opts is defined %} -ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_opts }} +ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_default_opts }} {{ node_exporter_opts }} {% else %} -ExecStart={{ node_exporter_daemon_dir }}/node_exporter +ExecStart={{ node_exporter_daemon_dir }}/node_exporter {{ node_exporter_default_opts }} {% endif %} ExecReload=/bin/kill -HUP $MAINPID