From e839d7415112ef3c731c0b606f0345477e73810b Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 21 Jan 2025 22:42:44 +0100 Subject: [PATCH] [overwatch] enable metrics --- machines/overwatch/configuration.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/machines/overwatch/configuration.nix b/machines/overwatch/configuration.nix index 04ba721e..2fa30410 100644 --- a/machines/overwatch/configuration.nix +++ b/machines/overwatch/configuration.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, inputs, ... }: +{ config, self, lib, pkgs, inputs, ... }: with lib; @@ -9,11 +9,19 @@ with lib; }; imports = [ + self.nixosModules.malobeo.metrics ../modules/malobeo_user.nix ../modules/sshd.nix ]; - networking.firewall.allowedTCPPorts = [ 80 9080 9001 3100 ]; + networking.firewall.allowedTCPPorts = [ 80 3100 ]; + + malobeo.metrics = { + enable = true; + enablePromtail = true; + logNginx = false; + lokiHost = "10.0.0.14"; + }; services.grafana = { enable = true;