From 00dfe27738cdd1a80e924d93d29c809393d18518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 7 Aug 2025 10:13:54 +0200 Subject: [PATCH] prometheus: decrease log size --- systems/makanek/monitoring/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/systems/makanek/monitoring/default.nix b/systems/makanek/monitoring/default.nix index 1ec4ab6..eb9a4b6 100644 --- a/systems/makanek/monitoring/default.nix +++ b/systems/makanek/monitoring/default.nix @@ -364,6 +364,12 @@ in # otherwise bearer_token_file will fail services.prometheus.checkConfig = "syntax-only"; + services.prometheus.extraFlags = [ + "--storage.tsdb.retention.time=7d" + "--storage.tsdb.retention.size=2GB" + "--storage.tsdb.wal-compression" + ]; + services.prometheus.scrapeConfigs = [ { job_name = "makanek";