From 0e4d6c30d10fb162f47a3a0957047abed9f2e4dd Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 23 Oct 2023 19:16:27 +0200 Subject: [PATCH] increase prometheus retention --- nomad-job/prometheus.nomad | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nomad-job/prometheus.nomad b/nomad-job/prometheus.nomad index 7dd2141..9b4b6fe 100644 --- a/nomad-job/prometheus.nomad +++ b/nomad-job/prometheus.nomad @@ -241,7 +241,7 @@ EOH args = [ "--config.file=/etc/prometheus/prometheus.yml", "--storage.tsdb.path=/prometheus", - "--storage.tsdb.retention.time=1m", + "--storage.tsdb.retention.time=40d", ] volumes = [ "local/nomad-alert-rules.yml:/etc/prometheus/nomad-alert-rules.yml", @@ -263,7 +263,6 @@ EOH "homer.target=_blank", "homer.url=http://${NOMAD_ADDR_prometheus_ui}", - ] port = "prometheus_ui"