From 1985b586196042898da8b71bab4e093a2aafc3c3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 22 Apr 2025 11:20:57 +0200 Subject: [PATCH] Increase data retention to 5 years MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we have more space, we can extend the retention time to 5 years to hold the monitoring metrics. For a year we have: # du -sh /var/lib/prometheus2 13G /var/lib/prometheus2 So we can expect it to increase to about 65 GiB. In the future we may want to reduce some adquisition frequency. Reviewed-by: Aleix Boné --- m/hut/monitoring.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m/hut/monitoring.nix b/m/hut/monitoring.nix index ee4983a..e6d4432 100644 --- a/m/hut/monitoring.nix +++ b/m/hut/monitoring.nix @@ -46,7 +46,7 @@ services.prometheus = { enable = true; port = 9001; - retentionTime = "1y"; + retentionTime = "5y"; listenAddress = "127.0.0.1"; };