diff options
author | Kartik Gokte <kartik.go@media.net> | 2022-03-02 23:59:33 +0530 |
---|---|---|
committer | Kartik Gokte <kartik.go@media.net> | 2022-03-02 23:59:33 +0530 |
commit | 6a0b420d9445ccc5a7171a8f777449b144008711 (patch) | |
tree | 60f7675d73d1e79349581f4faaf1d6302ae30cff /nixos/tests/prometheus-exporters.nix | |
parent | 3fa7cc7ac697637462f1644421c7309928dcacbd (diff) | |
download | nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar.gz nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar.bz2 nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar.lz nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar.xz nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.tar.zst nixpkgs-6a0b420d9445ccc5a7171a8f777449b144008711.zip |
nixos/prometheus-pve-exporter: init at 2.2.2
Diffstat (limited to 'nixos/tests/prometheus-exporters.nix')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index 036c037e426..537809600bf 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -933,6 +933,27 @@ let ''; }; + pve = let + pveExporterEnvFile = pkgs.writeTextFile { + name = "pve.env"; + text = '' + PVE_USER="test_user@pam" + PVE_PASSWORD="hunter3" + PVE_VERIFY_SSL="false" + ''; + }; + in { + exporterConfig = { + enable = true; + environmentFile = pveExporterEnvFile; + }; + exporterTest = '' + wait_for_unit("prometheus-pve-exporter.service") + wait_for_open_port(9221) + wait_until_succeeds("curl localhost:9221") + ''; + }; + py-air-control = { nodeName = "py_air_control"; exporterConfig = { |