diff options
| author | Martin Fischer <martin@push-f.com> | 2025-12-23 14:11:59 +0100 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2025-12-23 14:14:18 +0100 |
| commit | 41fbfdb499af4450486321dcef769517b2db7b81 (patch) | |
| tree | b4ec296774a3ab91b21534129437cb12a4fd9dbf /nixos | |
| parent | ff088a9e46318f63f0c5db825d6d5ece1dfdec52 (diff) | |
tweak(tente): set git.push-f.com loki retention to 1 month
A bunch of generative AI scrapers are making so many requests
that the logs are eating up my storage.
Diffstat (limited to 'nixos')
| -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 82bd498..5eed4db 100644 --- a/nixos/hosts/tente/default.nix +++ b/nixos/hosts/tente/default.nix @@ -131,6 +131,10 @@ in 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) + { + selector = ''{vhost="git.push-f.com"}''; + period = "${toString (24*30)}h"; + } ]; prometheusPort = ports.prometheus; prometheusNodeExporterPort = ports.prometheusNodeExporter; |
