]> git.openstreetmap.org Git - chef.git/commitdiff
Add prometheus exporter for overpass
authorTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 20:33:48 +0000 (21:33 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 13 Oct 2022 20:33:48 +0000 (21:33 +0100)
cookbooks/overpass/metadata.rb
cookbooks/overpass/recipes/default.rb

index cde954602abfbb2ece5c3471584c05dcddc3c4f8..3f2aa322c325ae1d9c65720bbcf7c2713847147d 100644 (file)
@@ -9,5 +9,6 @@ supports          "ubuntu"
 depends           "accounts"
 depends           "apache"
 depends           "munin"
+depends           "prometheus"
 depends           "ruby"
 depends           "systemd"
index be930135fc24ad9a3470d5118925b8b70d2e19ba..2b338c0be16a73cf83ee1260a88ad5f6f687d2e3 100644 (file)
@@ -20,6 +20,7 @@
 include_recipe "accounts"
 include_recipe "apache"
 include_recipe "munin"
+include_recipe "prometheus"
 include_recipe "ruby"
 
 username = "overpass"
@@ -239,3 +240,11 @@ end
     conf_variables :user => username
   end
 end
+
+prometheus_exporter "overpass" do
+  port 9898
+  user username
+  options [
+    "--overpass.base-directory=#{basedir}"
+  ]
+end