nix machine / user configurations

feat(wolumonde): open metrics and logs port so internal network devices can access [skip ci]

ptr.pet a6ac2284 0ade25d0

verified
+7 -3
+7 -3
hosts/wolumonde/modules/victoria.nix
··· 1 1 { lib, config, ... }: 2 2 let 3 - syslogUdp = 5113; 3 + # syslogUdp = 5113; 4 + metricsPort = 8428; 5 + logsPort = 9428; 4 6 in 5 7 { 6 8 services.victoriametrics = { 7 9 enable = true; 8 - listenAddress = ":8428"; 10 + listenAddress = ":${toString metricsPort}"; 9 11 }; 10 12 11 13 services.victorialogs = { 12 14 enable = true; 13 - listenAddress = ":9428"; 15 + listenAddress = ":${toString logsPort}"; 14 16 # extraOptions = ["-syslog.listenAddr.udp=:${toString syslogUdp}" "-journald.maxRequestSize=1024000000"]; 15 17 }; 18 + 19 + networking.firewall.allowedTCPPorts = [metricsPort logsPort]; 16 20 17 21 services.vmalert.instances."" = { 18 22 enable = true;