diff options
author | Martin Weinelt <mweinelt@users.noreply.github.com> | 2022-08-12 12:58:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 12:58:53 +0200 |
commit | 66f08894d786ff1a3117ae1626199062aa6802d0 (patch) | |
tree | 3088ff95f75a5cdde9057720ab706192408b8b74 /nixos | |
parent | f92a899c0d2042573b3558b17a830e739b41cd6f (diff) | |
parent | ebf7f864891802213f32cde2a613bd8a5c30a89c (diff) |
Merge pull request #184452 from r-ryantm/auto-update/systemd_exporter
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 d14c737a4bd11..4fdff7dbdab84 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' ) ) ''; |