diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-29 16:44:45 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-10-23 13:19:52 +0200 |
commit | 715afeb48ba1eb511548b85e6fa792d768fac44e (patch) | |
tree | fd8c1e8ea976339b69d0edfad7d61787736e59dc /nixos/tests/prometheus-exporters.nix | |
parent | 589ccfdac1ec6ae0e38f4f253f69be50c8713e1b (diff) | |
download | nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar.gz nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar.bz2 nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar.lz nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar.xz nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.tar.zst nixpkgs-715afeb48ba1eb511548b85e6fa792d768fac44e.zip |
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
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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'") ''; }; |