diff options
| -rw-r--r-- | hosts/tacitus/network.nix | 3 | ||||
| -rw-r--r-- | modules/prometheus.nix | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/hosts/tacitus/network.nix b/hosts/tacitus/network.nix index ee24ad0..d29e73f 100644 --- a/hosts/tacitus/network.nix +++ b/hosts/tacitus/network.nix @@ -8,7 +8,8 @@ let 443 config.services.grafana.port config.services.prometheus.port - ] ++ lib.mapAttrsToList (_: opt: opt.port) ( + ] + ++ lib.mapAttrsToList (_: opt: opt.port) ( lib.filterAttrs ( _: e: let diff --git a/modules/prometheus.nix b/modules/prometheus.nix index 26cdb10..22db413 100644 --- a/modules/prometheus.nix +++ b/modules/prometheus.nix @@ -111,13 +111,14 @@ in ]; } { - job_name = "mikrotik"; - static_configs = let - port = toString config.services.prometheus.exporters.fail2ban.port; - in - [ - { targets = ["localhost:${port}"]; } - ]; + job_name = "mikrotik"; + static_configs = + let + port = toString config.services.prometheus.exporters.fail2ban.port; + in + [ + { targets = [ "localhost:${port}" ]; } + ]; } ]; |
