From 277caf6375b3ca7c61e13f85998509f1dc56460f Mon Sep 17 00:00:00 2001 From: kalipso Date: Wed, 21 Oct 2026 12:29:50 +0200 Subject: [PATCH] [wordpress] enable metrics --- machines/overwatch/configuration.nix | 6 ++++++ machines/wordpress/configuration.nix | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/machines/overwatch/configuration.nix b/machines/overwatch/configuration.nix index 03a6cc4..28befbd 100644 --- a/machines/overwatch/configuration.nix +++ b/machines/overwatch/configuration.nix @@ -264,6 +264,12 @@ in targets = [ "${hosts.malobeo.hosts.albert.network.address}:9002" ]; }]; } + { + job_name = "wordpress"; + static_configs = [{ + targets = [ "${hosts.malobeo.hosts.wordpress.network.address}:9002" ]; + }]; + } # add vpn - check how to reach it first. most probably 10.100.0.1 ]; }; diff --git a/machines/wordpress/configuration.nix b/machines/wordpress/configuration.nix index 67b5394..a490f61 100644 --- a/machines/wordpress/configuration.nix +++ b/machines/wordpress/configuration.nix @@ -23,10 +23,17 @@ in { }; imports = [ + inputs.malobeo.nixosModules.malobeo.metrics inputs.self.nixosModules.malobeo.users ../modules/sshd.nix ]; + malobeo.metrics = { + enable = true; + enablePromtail = true; + logNginx = true; + }; + malobeo.users = { malobeo = false; admin = true; -- 2.54.0