From 8a3cbccb680cfdb65c961ff8660e757b3d47bacf Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 20 Nov 2025 20:10:14 +0100 Subject: =?UTF-8?q?Zugriffsstatistik=20f=C3=BCr=20Web-Dienste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tharos/caddy.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tharos/caddy.nix') diff --git a/tharos/caddy.nix b/tharos/caddy.nix index fc152c7..f6b0fcf 100644 --- a/tharos/caddy.nix +++ b/tharos/caddy.nix @@ -13,7 +13,22 @@ services.caddy = { enable = true; email = "redaktion@${self.domain}"; + globalConfig = '' + metrics { + per_host + } + ''; }; + services.prometheus.scrapeConfigs = [ + { + job_name = "caddy"; + static_configs = [ + { + targets = [ "localhost:2019" ]; + } + ]; + } + ]; }; vm = -- cgit v1.2.3