diff options
author | Martin Fischer <martin@push-f.com> | 2025-09-18 10:25:03 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-09-18 10:25:03 +0200 |
commit | e78b42dfe2d4852a39770f8b16b46eed1780e87a (patch) | |
tree | cfaafcc4a3a92239b8cc124a9f730cfeb1e378fc /nixos/shared | |
parent | 6777e059414701107f77c62cdd32435d27047c2e (diff) |
refactor: specify prometheus port
Diffstat (limited to 'nixos/shared')
-rw-r--r-- | nixos/shared/monitoring.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/shared/monitoring.nix b/nixos/shared/monitoring.nix index 8711630..eecad59 100644 --- a/nixos/shared/monitoring.nix +++ b/nixos/shared/monitoring.nix @@ -12,6 +12,9 @@ in alloyUiPort = lib.mkOption { type = lib.types.int; }; + prometheusPort = lib.mkOption { + type = lib.types.int; + }; prometheusNodeExporterPort = lib.mkOption { type = lib.types.int; }; @@ -23,6 +26,7 @@ in config = { services.prometheus = { enable = true; + port = cfg.prometheusPort; retentionTime = "1y"; |