]> git.openstreetmap.org Git - chef.git/commitdiff
Increase prometheus retention time to 30d
authorPaul Norman <penorman@mac.com>
Fri, 8 Jul 2022 06:52:09 +0000 (23:52 -0700)
committerPaul Norman <penorman@mac.com>
Fri, 8 Jul 2022 06:52:09 +0000 (23:52 -0700)
cookbooks/prometheus/recipes/server.rb

index 405eadebeaf520157509c1c6e48fe61ff47f5488..1e9b1409de24e2866d8e5657f60a802c28b5481f 100644 (file)
@@ -248,7 +248,7 @@ end
 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"
+  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"
   notifies :restart, "service[prometheus]"
 end