]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/resources/exporter.rb
Move exporters to /opt/prometheus-exporters
[chef.git] / cookbooks / prometheus / resources / exporter.rb
index ae0596885b07220efd3d9a1d09ace9c3e34be211..2a22198df32b57e04ea4df6225ee0c9d4e5c3e2c 100644 (file)
@@ -103,7 +103,7 @@ action_class do
   end
 
   def executable_path
-    "/opt/prometheus/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter"
+    "/opt/prometheus-exporters/exporters/#{new_resource.exporter}/#{new_resource.exporter}_exporter"
   end
 
   def executable_options
@@ -129,5 +129,5 @@ action_class do
 end
 
 def after_created
-  subscribes :restart, "git[/opt/prometheus]"
+  subscribes :restart, "git[/opt/prometheus-exporters]"
 end