diff options
author | Felix Bühler <Stunkymonkey@users.noreply.github.com> | 2023-11-13 22:58:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 22:58:32 +0100 |
commit | f2fc5b419592f164e387b377908e22c67b7f8ab0 (patch) | |
tree | 2305bd2a85b32566ad0202ecabfdede43f2587f2 /nixos/tests/prometheus-exporters.nix | |
parent | 582f1e73212d8e531c814ee821e1e7cbdefed1b3 (diff) | |
parent | 4d1680ccc7a340829a8d0f93ca7d4405c48cf115 (diff) | |
download | nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar.gz nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar.bz2 nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar.lz nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar.xz nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.tar.zst nixpkgs-f2fc5b419592f164e387b377908e22c67b7f8ab0.zip |
Merge pull request #265696 from Stunkymonkey/nixos-exportarr
nixos/exportarr: 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 bccfe998f61..7840130d4a3 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -257,6 +257,21 @@ let ''; }; + exportarr-sonarr = { + nodeName = "exportarr_sonarr"; + exporterConfig = { + enable = true; + url = "http://127.0.0.1:8989"; + # testing for real data is tricky, because the api key can not be preconfigured + apiKeyFile = pkgs.writeText "dummy-api-key" "eccff6a992bc2e4b88e46d064b26bb4e"; + }; + exporterTest = '' + wait_for_unit("prometheus-exportarr-sonarr-exporter.service") + wait_for_open_port(9707) + succeed("curl -sSf 'http://localhost:9707/metrics") + ''; + }; + fastly = { exporterConfig = { enable = true; |