From 8537c15f2d6bee519736dda35559ac92a15a671c Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Thu, 14 Sep 2023 16:45:56 +0000 Subject: [PATCH] Change Prometheus retention to 40d --- grafana.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/grafana.yml b/grafana.yml index e9061202..6eb1fec2 100644 --- a/grafana.yml +++ b/grafana.yml @@ -19,7 +19,12 @@ services: environment: - CLIENT=${COMPOSE_FILE} entrypoint: choose-config.sh - command: ["/bin/prometheus", "--storage.tsdb.path=/prometheus", "--web.console.libraries=/usr/share/prometheus/console_libraries", "--web.console.templates=/usr/share/prometheus/consoles"] + command: + - /bin/prometheus + - --storage.tsdb.path=/prometheus + - --storage.tsdb.retention.time=40d + - --web.console.libraries=/usr/share/prometheus/console_libraries + - --web.console.templates=/usr/share/prometheus/consoles <<: *logging labels: - traefik.enable=true