summaryrefslogtreecommitdiffstats
path: root/nixos/tests/prometheus-exporters.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r--nixos/tests/prometheus-exporters.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 5f50a3f87d5d..82d50da63818 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -1060,6 +1060,20 @@ let
'';
};
+ shelly = {
+ exporterConfig = {
+ enable = true;
+ metrics-file = "${pkgs.writeText "test.json" ''{}''}";
+ };
+ exporterTest = ''
+ wait_for_unit("prometheus-shelly-exporter.service")
+ wait_for_open_port(9784)
+ wait_until_succeeds(
+ "curl -sSf 'localhost:9784/metrics'"
+ )
+ '';
+ };
+
script = {
exporterConfig = {
enable = true;