From: Tom Hughes Date: Thu, 19 Oct 2023 20:19:45 +0000 (+0100) Subject: Enable prometheus admin API X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/ff94bbfa7c7811b4938b42cf80cc42e607b6aa40 Enable prometheus admin API --- diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index c1b7df2c6..3014cbf99 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -241,7 +241,7 @@ package "prometheus" systemd_service "prometheus-executable" do service "prometheus" dropin "executable" - exec_start "/opt/prometheus-server/prometheus/prometheus --config.file=/etc/prometheus/prometheus.yml --web.external-url=https://prometheus.openstreetmap.org/prometheus --storage.tsdb.path=/var/lib/prometheus/metrics2 --storage.tsdb.retention.time=540d" + exec_start "/opt/prometheus-server/prometheus/prometheus --config.file=/etc/prometheus/prometheus.yml --web.enable-admin-api --web.external-url=https://prometheus.openstreetmap.org/prometheus --storage.tsdb.path=/var/lib/prometheus/metrics2 --storage.tsdb.retention.time=540d" timeout_stop_sec 300 notifies :restart, "service[prometheus]" end