From 73c5a5a778cebc386fbbc0e6423cc03550c32390 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Aug 2023 23:21:52 +0200 Subject: nixos/prometheus/unbound-exporter: update for new package The command line interface changed slightly, but still supports the TCP as well as the UDS control interface. --- nixos/tests/prometheus-exporters.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nixos/tests/prometheus-exporters.nix') diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 5734e54de02..306c5e071e7 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -1422,8 +1422,7 @@ let unbound = { exporterConfig = { enable = true; - fetchType = "uds"; - controlInterface = "/run/unbound/unbound.ctl"; + unbound.host = "unix:///run/unbound/unbound.ctl"; }; metricProvider = { services.unbound = { @@ -1438,7 +1437,7 @@ let wait_for_unit("unbound.service") wait_for_unit("prometheus-unbound-exporter.service") wait_for_open_port(9167) - succeed("curl -sSf localhost:9167/metrics | grep 'unbound_up 1'") + wait_until_succeeds("curl -sSf localhost:9167/metrics | grep 'unbound_up 1'") ''; }; -- cgit 1.4.1