diff options
| author | Martin Fischer <martin@push-f.com> | 2025-12-23 12:55:07 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-12-23 14:14:18 +0100 |
| commit | ff088a9e46318f63f0c5db825d6d5ece1dfdec52 (patch) | |
| tree | 940eec159a487ae0456873c5e4201346101a1c8a /nixos/hosts | |
| parent | b48cd0a28d0280df2f28ceaf1f62007e00b65974 (diff) | |
fix: set loki retention period to 1 year
Diffstat (limited to 'nixos/hosts')
| -rw-r--r-- | nixos/hosts/tente/default.nix | 4 |
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; }; |
