From 715afeb48ba1eb511548b85e6fa792d768fac44e Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 29 Sep 2023 16:44:45 +0200 Subject: nixos/tests/prometheus-exporters/knot: update for new exporter version The knot_server_zone_count metric does not exist anymore, and the next best thing to watch for is the zone serial, that we define ourselves. The serial is a number and displayed in the scientific notation, i.e. >>> machine.succeed('curl localhost:9433/metrics|grep 019 >&2') [...] knot # knot_zone_serial{zone="test."} 2.019031301e+09 --- nixos/tests/prometheus-exporters.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/tests/prometheus-exporters.nix') diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 8369d6a497a..d42a9e30399 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -512,7 +512,7 @@ let wait_for_unit("knot.service") wait_for_unit("prometheus-knot-exporter.service") wait_for_open_port(9433) - succeed("curl -sSf 'localhost:9433' | grep 'knot_server_zone_count 1.0'") + succeed("curl -sSf 'localhost:9433' | grep '2\.019031301'") ''; }; -- cgit 1.4.1