diff options
Diffstat (limited to 'services/monitoring')
| -rw-r--r-- | services/monitoring/default.nix | 4 | ||||
| -rw-r--r-- | services/monitoring/wrapper.nix | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/services/monitoring/default.nix b/services/monitoring/default.nix index 60374b5..cf966fb 100644 --- a/services/monitoring/default.nix +++ b/services/monitoring/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, auxiliaryPkgs, ... }: +{ me, lib, pkgs, auxiliaryPkgs, ... }: let inherit (pkgs) victoriametrics grafana dockerTools; @@ -37,7 +37,7 @@ in foundation.service.monitoring = { victoria = { image = victoriaImage; - ports = [ victoriaLocalPort ]; + ports = [ (common.tailnetPort me victoriaLocalPort) ]; volumes = [ [ "${victoriaDir}" "/var/lib/victoria" ] diff --git a/services/monitoring/wrapper.nix b/services/monitoring/wrapper.nix index 416ae22..62c860b 100644 --- a/services/monitoring/wrapper.nix +++ b/services/monitoring/wrapper.nix @@ -1,6 +1,6 @@ # This wraps the monitoring service module to allow it to be # imported conditionally. -{ lib, pkgs, auxiliaryPkgs, config, ... }: +{ me, lib, pkgs, auxiliaryPkgs, config, ... }: let enabled = config.foundation.internal.monitoringService; @@ -11,5 +11,5 @@ in monitoringService = lib.mkEnableOption "monitoring service"; }; - config = lib.mkIf enabled (module { inherit lib pkgs auxiliaryPkgs; }); + config = lib.mkIf enabled (module { inherit me lib pkgs auxiliaryPkgs; }); } |
