aboutsummaryrefslogtreecommitdiff
path: root/nixos/hosts/tente
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2025-12-23 12:55:07 +0100
committerMartin Fischer <martin@push-f.com>2025-12-23 14:14:18 +0100
commitff088a9e46318f63f0c5db825d6d5ece1dfdec52 (patch)
tree940eec159a487ae0456873c5e4201346101a1c8a /nixos/hosts/tente
parentb48cd0a28d0280df2f28ceaf1f62007e00b65974 (diff)
fix: set loki retention period to 1 year
Diffstat (limited to 'nixos/hosts/tente')
-rw-r--r--nixos/hosts/tente/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/hosts/tente/default.nix b/nixos/hosts/tente/default.nix
index 9a6d504..82bd498 100644
--- a/nixos/hosts/tente/default.nix
+++ b/nixos/hosts/tente/default.nix
@@ -128,6 +128,10 @@ in
monitoring = {
alloyUiPort = ports.grafanaAlloy;
lokiPort = ports.grafanaLoki;
+ lokiRetentionStream = [
+ # TODO: set same retention for nginx logs in loki and logrotate
+ # (set up recording rule in Loki so we can still have some stats longer than that)
+ ];
prometheusPort = ports.prometheus;
prometheusNodeExporterPort = ports.prometheusNodeExporter;
};