]> git.openstreetmap.org Git - chef.git/commitdiff
Enable prometheus admin API
authorTom Hughes <tom@compton.nu>
Thu, 19 Oct 2023 20:19:45 +0000 (21:19 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 19 Oct 2023 20:19:45 +0000 (21:19 +0100)
cookbooks/prometheus/recipes/server.rb

index c1b7df2c6e3c7e94e6b7347ca3ffb4ff6a670135..3014cbf9964dbd6f95bfa2657549f04cdaf15d47 100644 (file)
@@ -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