From: Paul Norman Date: Fri, 8 Jul 2022 06:52:09 +0000 (-0700) Subject: Increase prometheus retention time to 30d X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/ece5e3aac1b0bdd997804af80d18268454e4245b?ds=sidebyside;hp=56efb2f17e528982a0d03b1cc715ac7435780053 Increase prometheus retention time to 30d --- diff --git a/cookbooks/prometheus/recipes/server.rb b/cookbooks/prometheus/recipes/server.rb index 405eadebe..1e9b1409d 100644 --- a/cookbooks/prometheus/recipes/server.rb +++ b/cookbooks/prometheus/recipes/server.rb @@ -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