diff --git a/nix/hosts/loki/configuration.nix b/nix/hosts/loki/configuration.nix index 790de9a..b9e0fc1 100644 --- a/nix/hosts/loki/configuration.nix +++ b/nix/hosts/loki/configuration.nix @@ -182,14 +182,14 @@ static_configs = [ { targets = [ - "loki.local:${toString config.services.prometheus.exporters.node.port}" + "${config.networking.hostName}.local:${toString config.services.prometheus.exporters.node.port}" ]; } ]; } { job_name = "coredns"; - static_configs = [{targets = ["loki.local:9153"];}]; + static_configs = [{targets = ["${config.networking.hostName}.local:9153"];}]; } ]; };