diff --git a/machines/infradocs/configuration.nix b/machines/infradocs/configuration.nix index 54e38de..1bdf9ac 100644 --- a/machines/infradocs/configuration.nix +++ b/machines/infradocs/configuration.nix @@ -14,6 +14,30 @@ with lib; ../modules/sshd.nix ]; + networking.firewall.allowedTCPPorts = [ 9002 ]; + + services.prometheus = { + exporters = { + node = { + enable = true; + enabledCollectors = [ "systemd" "processes" ]; + port = 9002; + }; + }; + }; + + services.promtail = { + enable = true; + configFile = import ../modules/malobeo/promtail_config.nix { + lokiAddress = "10.0.0.13"; + logNginx = true; + config = config; + pkgs = pkgs; + }; + }; + + users.users.promtail.extraGroups = [ "nginx" "systemd-journal" ]; + system.stateVersion = "22.11"; # Did you read the comment? }