about summary refs log tree commit diff
path: root/nixos/tests/prometheus-exporters.nix
diff options
context:
space:
mode:
authorsnaar <snaar@snaar.net>2022-09-02 09:38:11 -0400
committersnaar <snaar@snaar.net>2022-09-03 10:56:04 -0400
commit866d9772120d08b7b6c4f9b9bf7ada44a0550897 (patch)
tree358eacedf25a27b79acc38dcafbeb24ed7a1fcae /nixos/tests/prometheus-exporters.nix
parentca1690c2edffa735d1df3acd69a3c8e55c30fc11 (diff)
nixos/services.prometheus.exporters.ipmi: new module
Bringing in new https://github.com/prometheus-community/ipmi_exporter exporter into existing Prometheus exporters framework.
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r--nixos/tests/prometheus-exporters.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix
index 4fdff7dbdab84..81e957fd86f7c 100644
--- a/nixos/tests/prometheus-exporters.nix
+++ b/nixos/tests/prometheus-exporters.nix
@@ -307,6 +307,19 @@ let
       '';
     };
 
+    ipmi = {
+      exporterConfig = {
+        enable = true;
+      };
+      exporterTest = ''
+        wait_for_unit("prometheus-ipmi-exporter.service")
+        wait_for_open_port(9290)
+        succeed(
+          "curl -sSf http://localhost:9290/metrics | grep 'ipmi_scrape_duration_seconds'"
+        )
+      '';
+    };
+
     jitsi = {
       exporterConfig = {
         enable = true;