From e1daabd42b6c8b5acb6c40259f1586c337060dc3 Mon Sep 17 00:00:00 2001 From: Max Audron Date: Wed, 30 Jul 2025 17:42:19 +0200 Subject: more metrics --- modules/monitoring/default.nix | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'modules/monitoring/default.nix') diff --git a/modules/monitoring/default.nix b/modules/monitoring/default.nix index ef27c7c..68df69b 100644 --- a/modules/monitoring/default.nix +++ b/modules/monitoring/default.nix @@ -15,6 +15,18 @@ with self.lib.nginx; enable = true; enabledCollectors = [ "systemd" ]; }; + + zfs = { + enable = true; + }; + + postgres = { + enable = true; + }; + + nginx = { + enable = true; + }; }; globalConfig = { @@ -28,9 +40,35 @@ with self.lib.nginx; { targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; } ]; } + { + job_name = "zfs"; + static_configs = [ + { targets = [ "localhost:${toString config.services.prometheus.exporters.zfs.port}" ]; } + ]; + } + { + job_name = "postgres"; + static_configs = [ + { targets = [ "localhost:${toString config.services.prometheus.exporters.postgres.port}" ]; } + ]; + } + { + job_name = "nginx"; + static_configs = [ + { targets = [ "localhost:${toString config.services.prometheus.exporters.nginx.port}" ]; } + ]; + } + { + job_name = "quassel"; + static_configs = [ + { targets = [ "localhost:${toString config.services.quassel.settings.metrics.port}" ]; } + ]; + } ]; }; + services.nginx.statusPage = true; + security.acme.certs = { "vapor.systems" = { extraDomainNames = [ "*.vapor.systems" ]; -- cgit v1.2.3