]> git.openstreetmap.org Git - chef.git/commitdiff
Increase prometheus retention time to approximately 18 months
authorTom Hughes <tom@compton.nu>
Thu, 6 Apr 2023 19:31:54 +0000 (20:31 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 6 Apr 2023 19:32:49 +0000 (20:32 +0100)
cookbooks/prometheus/recipes/server.rb

index 9066c2ec8c91c4df4e0154d661f2ad4adb071087..8fb8621c717ceb61dc4629b9c6f86674fa87f039 100644 (file)
@@ -273,7 +273,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 --storage.tsdb.retention.time=30d"
+  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"
   timeout_stop_sec 300
   notifies :restart, "service[prometheus]"
 end