summaryrefslogtreecommitdiffstats
path: root/nixos/tests
diff options
context:
space:
mode:
authorMatej Urbas <matej.urbas@gmail.com>2020-12-05 23:26:59 +0000
committerMatej Urbas <matej.urbas@gmail.com>2020-12-10 19:02:30 +0000
commit4948743705ae821a4e01e48ca6a797571b87b04a (patch)
tree3cce1df139109a279e304c1c16ee4b960c4bfdfe /nixos/tests
parent1f65211aa37adfc5a28c4849bbe73dcb2d2d1e2b (diff)
nixos/prometheus-exporters/py-air-control: init
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/prometheus-exporters.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 0b9957404f3b..3eb4341e39cb 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;