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:
parent
48a0fb7aab
commit
1d556fd9f3
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue