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

nixosTests.prometheus-exporters.json: fix test script
This commit is contained in:
Robert Scott
2023-05-20 15:51:59 +01:00
committed by GitHub

View File

@@ -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 = {