From 20bb8440eac8354b1831b072dfe6c4263e7ff5d3 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Mar 2023 13:47:48 +0000 Subject: [PATCH] Restart smokeping exporter when the configuration changes --- cookbooks/prometheus/recipes/smokeping.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/cookbooks/prometheus/recipes/smokeping.rb b/cookbooks/prometheus/recipes/smokeping.rb index 5f11d2c90..4f9906d32 100644 --- a/cookbooks/prometheus/recipes/smokeping.rb +++ b/cookbooks/prometheus/recipes/smokeping.rb @@ -43,4 +43,5 @@ prometheus_exporter "smokeping" do capability_bounding_set "CAP_NET_RAW" ambient_capabilities "CAP_NET_RAW" private_users false + subscribes :restart, "template[/etc/prometheus/exporters/smokeping.yml]" end -- 2.39.5