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
This commit is contained in:
Maximilian Bosch 2023-09-29 16:44:45 +02:00 committed by Martin Weinelt
parent 589ccfdac1
commit 715afeb48b
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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'")
'';
};