From 5aa3589d56c95534ed4f0fb9c92e6cd8780f6980 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 25 Oct 2020 15:43:50 +0900 Subject: [PATCH] Modify the service name to be restarted. --- cookbooks/prometheus/snmp_exporter_setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/snmp_exporter_setup.rb b/cookbooks/prometheus/snmp_exporter_setup.rb index f20aea8..c0a246a 100644 --- a/cookbooks/prometheus/snmp_exporter_setup.rb +++ b/cookbooks/prometheus/snmp_exporter_setup.rb @@ -34,7 +34,7 @@ template '/etc/promtail/snmp_exporter.yaml' do variables(HOSTNAME: node[:hostname], LOKIENDPOINT: node['promtail']['lokiendpoint']) - notifies :restart, 'service[promtail-prometheus]' + notifies :restart, 'service[promtail-snmp_exporter]' end # Deploy the `systemd` configuration: