From 1985b586196042898da8b71bab4e093a2aafc3c3 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 22 Apr 2025 11:20:57 +0200 Subject: [PATCH 1/2] 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 ee4983a4..e6d44329 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"; }; -- 2.51.2 From abeab182702fde34fc2c2bb1234cf8c4e5404ae6 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Tue, 22 Apr 2025 11:41:43 +0200 Subject: [PATCH 2/2] Add raccoon node exporter monitoring MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Aleix Boné --- m/hut/monitoring.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m/hut/monitoring.nix b/m/hut/monitoring.nix index e6d44329..d4dc1e15 100644 --- a/m/hut/monitoring.nix +++ b/m/hut/monitoring.nix @@ -250,6 +250,14 @@ module = [ "raccoon" ]; }; } + { + job_name = "raccoon"; + static_configs = [ + { + targets = [ "127.0.0.1:19002" ]; # Node exporter + } + ]; + } { job_name = "ipmi-fox"; metrics_path = "/ipmi"; -- 2.51.2