nixos/prometheus: pushgateway test: Have client wait for network

This commit is contained in:
Jonathan Davies
2025-11-22 11:16:31 +00:00
parent 8aa0295e8e
commit bad8fe30ab
+3
View File
@@ -56,6 +56,9 @@
+ "jq '.data.result[0].metric.version' | grep '\"${pkgs.prometheus-pushgateway.version}\"'"
)
client.systemctl("start network-online.target")
client.wait_for_unit("network-online.target")
# Add a metric and check in Prometheus
client.wait_until_succeeds(
"echo 'some_metric 3.14' | curl --data-binary @- http://pushgateway:9091/metrics/job/some_job"