nixosTests.prometheus-exporters.statsd fix test
This commit is contained in:
parent
3005f20ce0
commit
810268b853
1 changed files with 8 additions and 6 deletions
|
@ -1194,13 +1194,15 @@ let
|
||||||
wait_for_unit("prometheus-statsd-exporter.service")
|
wait_for_unit("prometheus-statsd-exporter.service")
|
||||||
wait_for_open_port(9102)
|
wait_for_open_port(9102)
|
||||||
succeed("curl http://localhost:9102/metrics | grep 'statsd_exporter_build_info{'")
|
succeed("curl http://localhost:9102/metrics | grep 'statsd_exporter_build_info{'")
|
||||||
succeed(
|
wait_until_succeeds(
|
||||||
"echo 'test.udp:1|c' > /dev/udp/localhost/9125",
|
"echo 'test.udp:1|c' > /dev/udp/localhost/9125 && \
|
||||||
"curl http://localhost:9102/metrics | grep 'test_udp 1'",
|
curl http://localhost:9102/metrics | grep 'test_udp 1'",
|
||||||
|
timeout=10
|
||||||
)
|
)
|
||||||
succeed(
|
wait_until_succeeds(
|
||||||
"echo 'test.tcp:1|c' > /dev/tcp/localhost/9125",
|
"echo 'test.tcp:1|c' > /dev/tcp/localhost/9125 && \
|
||||||
"curl http://localhost:9102/metrics | grep 'test_tcp 1'",
|
curl http://localhost:9102/metrics | grep 'test_tcp 1'",
|
||||||
|
timeout=10
|
||||||
)
|
)
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue