nixosTests.prometheus-exporters.json: fix test script

Upstream changed the config format in https://github.com/prometheus-community/json_exporter/pull/146
This commit is contained in:
teutat3s 2023-05-19 21:49:55 +02:00
parent 48a0fb7aab
commit 1d556fd9f3
No known key found for this signature in database
GPG key ID: 18DAE600A6BBE705

View file

@ -348,9 +348,13 @@ let
enable = true;
url = "http://localhost";
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
modules = {
default = {
metrics = [
{ name = "json_test_metric"; path = "{ .test }"; }
];
};
};
});
};
metricProvider = {