Merge pull request #232884 from teutat3s/zhf/prometheus-exporters-json-test

nixosTests.prometheus-exporters.json: fix test script

Changed files
+7 -3
nixos
+7 -3
nixos/tests/prometheus-exporters.nix
···
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 = {