diff options
author | Matej Urbas <matej.urbas@gmail.com> | 2020-12-05 23:26:59 +0000 |
---|---|---|
committer | Matej Urbas <matej.urbas@gmail.com> | 2020-12-10 19:02:30 +0000 |
commit | 4948743705ae821a4e01e48ca6a797571b87b04a (patch) | |
tree | 3cce1df139109a279e304c1c16ee4b960c4bfdfe /nixos/tests/prometheus-exporters.nix | |
parent | 1f65211aa37adfc5a28c4849bbe73dcb2d2d1e2b (diff) | |
download | nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar.gz nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar.bz2 nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar.lz nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar.xz nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.tar.zst nixpkgs-4948743705ae821a4e01e48ca6a797571b87b04a.zip |
nixos/prometheus-exporters/py-air-control: init
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 0b9957404f3..3eb4341e39c 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -530,6 +530,21 @@ let ''; }; + py-air-control = { + nodeName = "py_air_control"; + exporterConfig = { + enable = true; + deviceHostname = "127.0.0.1"; + }; + exporterTest = '' + wait_for_unit("prometheus-py-air-control-exporter.service") + wait_for_open_port(9896) + succeed( + "curl -sSf http://localhost:9896/metrics | grep -q 'py_air_control_sampling_error_total'" + ) + ''; + }; + redis = { exporterConfig = { enable = true; |