From 5da01d688fcfd4d1956197f7b7f9372e88687d05 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 4 Nov 2023 16:52:03 +0300 Subject: 2023-11-04 --- modules/nixos/unbound.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules/nixos/unbound.nix') diff --git a/modules/nixos/unbound.nix b/modules/nixos/unbound.nix index 4d21fd2..dd7e757 100644 --- a/modules/nixos/unbound.nix +++ b/modules/nixos/unbound.nix @@ -151,14 +151,12 @@ in { localControlSocketPath = "/run/unbound/unbound.socket"; }; - # TODO Switch to https://github.com/letsencrypt/unbound_exporter. prometheus.exporters.unbound = { enable = true; listenAddress = mkDefault this.wireguard.ipv4.address; port = 9167; - fetchType = "uds"; - controlInterface = config.services.unbound.localControlSocketPath; inherit (config.services.unbound) group user; + unbound.host = "unix://${config.services.unbound.localControlSocketPath}"; }; }; -- cgit 1.4.1