diff --git a/nixos/modules/monitoring/exporters/promtail.nix b/nixos/modules/monitoring/exporters/promtail.nix index 8c4080343efc1be0fad29bf58763bbd4c645edb7..75994b68da9e3a28ee81090538c25c2215ec0a77 100644 --- a/nixos/modules/monitoring/exporters/promtail.nix +++ b/nixos/modules/monitoring/exporters/promtail.nix @@ -47,6 +47,12 @@ in { # for further details about these options. # MaxFileSec=1day + + # This asks journald to not use more than 500M of disk space. Due to + # journald's characteristics this might only be a week of logs, but that + # should be okay since we ship all logs to a central server that keeps + # them for a while longer. + SystemMaxUse=500M ''; services.promtail.configuration = {