]> git.openstreetmap.org Git - chef.git/commitdiff
Increase stop timeout for prometheus server
authorTom Hughes <tom@compton.nu>
Fri, 8 Jul 2022 07:49:53 +0000 (08:49 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 8 Jul 2022 07:49:53 +0000 (08:49 +0100)
cookbooks/prometheus/recipes/server.rb

index 1e9b1409de24e2866d8e5657f60a802c28b5481f..b547327c45ae2afcab3f384523678453d044accc 100644 (file)
@@ -249,6 +249,7 @@ 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=30d"
+  timeout_stop_sec 300
   notifies :restart, "service[prometheus]"
 end