From f15676af61ae79e6fde5b025c9c4cdad0e3fb5c7 Mon Sep 17 00:00:00 2001 From: sven Date: Tue, 23 Dec 2025 09:56:15 +0100 Subject: [PATCH] Retention angepasst --- prometheus/compose.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 prometheus/compose.yaml diff --git a/prometheus/compose.yaml b/prometheus/compose.yaml old mode 100644 new mode 100755 index 839137f..32a8d36 --- a/prometheus/compose.yaml +++ b/prometheus/compose.yaml @@ -4,12 +4,18 @@ services: deploy: resources: limits: - memory: 256M + memory: 256M ports: - 9090:9090 volumes: - ./prometheus.yml:/etc/prometheus/prometheus.yml - /prometheus/:/prometheus + command: + - '--config.file=/etc/prometheus/prometheus.yml' + - '--storage.tsdb.path=/prometheus' + - '--storage.tsdb.retention.time=7200d' + - '--storage.tsdb.retention.size=0' + image: prom/prometheus restart: unless-stopped networks: {}