diff options
| author | Jakub Stachurski <jakub@wilkuu.xyz> | 2026-06-22 01:16:42 +0200 |
|---|---|---|
| committer | Jakub Stachurski <jakub@wilkuu.xyz> | 2026-06-22 01:16:42 +0200 |
| commit | 5094baa6b5857da5db554c432af0647a8aff16e3 (patch) | |
| tree | 2e2cbcf89f41a20739490a2dde34b0ba7d8dc11f /hosts/tacitus | |
| parent | 1d405a40d6c12667bf3dc7c87281c3aa24726431 (diff) | |
service(tacitus): Monitoring
Diffstat (limited to 'hosts/tacitus')
| -rw-r--r-- | hosts/tacitus/default.nix | 7 | ||||
| -rw-r--r-- | hosts/tacitus/network.nix | 15 |
2 files changed, 20 insertions, 2 deletions
diff --git a/hosts/tacitus/default.nix b/hosts/tacitus/default.nix index ea68490..f4a135c 100644 --- a/hosts/tacitus/default.nix +++ b/hosts/tacitus/default.nix @@ -1,5 +1,6 @@ { lib, + config, ... }: { @@ -8,6 +9,12 @@ ./disko.nix ./hardware.nix ]; + + wilkuu.services = { + prometheus.enableScraper = true; + prometheus.enableExporters = true; + }; + addons = { desktop.xfce.enable = lib.mkForce true; gpg.enable = true; diff --git a/hosts/tacitus/network.nix b/hosts/tacitus/network.nix index a4d0c03..ee24ad0 100644 --- a/hosts/tacitus/network.nix +++ b/hosts/tacitus/network.nix @@ -1,4 +1,4 @@ -{ ... }: +{ config, lib, ... }: let baseTCP = [ 20 @@ -6,7 +6,18 @@ let 25 80 443 - ]; + config.services.grafana.port + config.services.prometheus.port + ] ++ lib.mapAttrsToList (_: opt: opt.port) ( + lib.filterAttrs ( + _: e: + let + evaluated = builtins.tryEval e; + in + evaluated.success && e ? enable && e.enable + ) config.services.prometheus.exporters + ); + baseUDP = [ ]; baseTCPRanges = [ ]; |
