diff options
author | WilliButz <WilliButz@users.noreply.github.com> | 2021-03-11 19:18:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 19:18:29 +0100 |
commit | f5c01cf9d4e744426c938b000e235011f7076929 (patch) | |
tree | f213558b746bb792ddbf374b8bfceede049328d9 /nixos/tests/prometheus-exporters.nix | |
parent | 3ceef8186cc4e70149c23e21ffb85ecccbce10aa (diff) | |
parent | 344b02919ee4d4b9ffbd7ebca44f99a8202f9749 (diff) | |
download | nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar.gz nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar.bz2 nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar.lz nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar.xz nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.tar.zst nixpkgs-f5c01cf9d4e744426c938b000e235011f7076929.zip |
Merge pull request #113370 from chkno/prometheus-systemd-exporter-no-flags
prometheus-systemd-exporter: Init at 0.4.0
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index a97a44e02f1..78a3afad0ba 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -835,6 +835,22 @@ let ''; }; + systemd = { + exporterConfig = { + enable = true; + }; + metricProvider = { }; + exporterTest = '' + wait_for_unit("prometheus-systemd-exporter.service") + wait_for_open_port(9558) + succeed( + "curl -sSf localhost:9558/metrics | grep -q '{}'".format( + 'systemd_unit_state{name="basic.target",state="active",type="target"} 1' + ) + ) + ''; + }; + tor = { exporterConfig = { enable = true; |