]> git.openstreetmap.org Git - chef.git/commitdiff
Restart smokeping exporter when the configuration changes
authorTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 13:47:48 +0000 (13:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 13:47:48 +0000 (13:47 +0000)
cookbooks/prometheus/recipes/smokeping.rb

index 5f11d2c90bf9c73d7315458802410ad2bd7fd5c3..4f9906d32cff7d8d43752373348eb703f013f90c 100644 (file)
@@ -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