diff options
author | Robert Scott <code@humanleg.org.uk> | 2023-05-20 15:51:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-20 15:51:59 +0100 |
commit | 04547deb91ca7944cce43e60d63ff40693102e6d (patch) | |
tree | 9c2861ae27e3866de293f3429b8401d4eb54087c /nixos | |
parent | 65e9e6ce2aba058cb6e18325faaebf67c4640e5c (diff) | |
parent | 1d556fd9f3de6404bf57bf57a503381e52d2bd30 (diff) |
Merge pull request #232884 from teutat3s/zhf/prometheus-exporters-json-test
nixosTests.prometheus-exporters.json: fix test script
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/prometheus-exporters.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixos/tests/prometheus-exporters.nix b/nixos/tests/prometheus-exporters.nix index adc2b467be514..bb87f1a3df9b1 100644 --- a/nixos/tests/prometheus-exporters.nix +++ b/nixos/tests/prometheus-exporters.nix @@ -348,9 +348,13 @@ let enable = true; url = "http://localhost"; configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON { - metrics = [ - { name = "json_test_metric"; path = "{ .test }"; } - ]; + modules = { + default = { + metrics = [ + { name = "json_test_metric"; path = "{ .test }"; } + ]; + }; + }; }); }; metricProvider = { |