diff --git a/nixos-modules/services/monitoring.nix b/nixos-modules/services/monitoring.nix index cd3db955..db400a1a 100644 --- a/nixos-modules/services/monitoring.nix +++ b/nixos-modules/services/monitoring.nix @@ -20,6 +20,7 @@ in (mkIf (cfg.master.hostname == hostName) { services.loki.enable = true; services.loki.configFile = pkgs.writeText "loki.yml" '' + chunk_target_size: 5242880 auth_enabled: false server: http_listen_port: 3100 @@ -49,6 +50,7 @@ in reporting_enabled: false ''; services.prometheus = { + alertmanager.enable = true; enable = true; scrapeConfigs = foldl (a: b: a ++ b) [ ] (map (x: (map @@ -117,6 +119,10 @@ in regex = { expression = ''(?P.+) - - \[(?P.+)\] "(?P.+) (?P.+) (HTTP\/(?P\d.\d))" (?P\d{3}) (?P\d+) (["](?P(\-)|(.+))["]) (["](?P.+)["])''; }; + drop = { + source = "url"; + expression = ''/(_matrix|.well-known|notifications|api|identity).*''; + }; } { labels = {