diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-08-28 23:21:52 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-08-28 23:21:52 +0200 |
commit | 73c5a5a778cebc386fbbc0e6423cc03550c32390 (patch) | |
tree | 95d05ccd32e60b193766102e6060f39e8b0340bb /nixos/tests/prometheus-exporters.nix | |
parent | c52b0593cf6c350d52b3b0f49d7879636fd450dd (diff) | |
download | nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar.gz nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar.bz2 nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar.lz nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar.xz nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.tar.zst nixpkgs-73c5a5a778cebc386fbbc0e6423cc03550c32390.zip |
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.
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 5 |
1 files changed, 2 insertions, 3 deletions
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'") ''; }; |