From: Tom Hughes Date: Thu, 9 Mar 2023 13:47:48 +0000 (+0000) Subject: Restart smokeping exporter when the configuration changes X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/20bb8440eac8354b1831b072dfe6c4263e7ff5d3 Restart smokeping exporter when the configuration changes --- 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