diff options
author | Scott Worley <scottworley@scottworley.com> | 2022-08-01 05:58:34 +0000 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-08-12 12:53:23 +0200 |
commit | ebf7f864891802213f32cde2a613bd8a5c30a89c (patch) | |
tree | 10a01cf63d7383de76470a8c33c70b3e6dd4f0ad /nixos | |
parent | 3ff276b5cd25ea96da27cc4ed6497bcb40ab5ad5 (diff) |
nixos/tests/prometheus-exporters/systemd: Update for 0.5.0 release
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 0a1ec824986ab..549c3e0c09f38 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -1181,21 +1181,21 @@ let enable = true; extraFlags = [ - "--collector.enable-restart-count" + "--systemd.collector.enable-restart-count" ]; }; metricProvider = { }; exporterTest = '' wait_for_unit("prometheus-systemd-exporter.service") wait_for_open_port(9558) - succeed( + wait_until_succeeds( "curl -sSf localhost:9558/metrics | grep '{}'".format( 'systemd_unit_state{name="basic.target",state="active",type="target"} 1' ) ) succeed( "curl -sSf localhost:9558/metrics | grep '{}'".format( - 'systemd_service_restart_total{state="prometheus-systemd-exporter.service"} 0' + 'systemd_service_restart_total{name="prometheus-systemd-exporter.service"} 0' ) ) ''; |