From: Tom Hughes Date: Thu, 13 Oct 2022 20:33:48 +0000 (+0100) Subject: Add prometheus exporter for overpass X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/bb98d26fda6b59ebac0d31881a596167a07db3f8?ds=sidebyside Add prometheus exporter for overpass --- diff --git a/cookbooks/overpass/metadata.rb b/cookbooks/overpass/metadata.rb index cde954602..3f2aa322c 100644 --- a/cookbooks/overpass/metadata.rb +++ b/cookbooks/overpass/metadata.rb @@ -9,5 +9,6 @@ supports "ubuntu" depends "accounts" depends "apache" depends "munin" +depends "prometheus" depends "ruby" depends "systemd" diff --git a/cookbooks/overpass/recipes/default.rb b/cookbooks/overpass/recipes/default.rb index be930135f..2b338c0be 100644 --- a/cookbooks/overpass/recipes/default.rb +++ b/cookbooks/overpass/recipes/default.rb @@ -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