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;
|
enable = true;
|
||||||
url = "http://localhost";
|
url = "http://localhost";
|
||||||
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
|
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
|
||||||
metrics = [
|
modules = {
|
||||||
{ name = "json_test_metric"; path = "{ .test }"; }
|
default = {
|
||||||
];
|
metrics = [
|
||||||
|
{ name = "json_test_metric"; path = "{ .test }"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
metricProvider = {
|
metricProvider = {
|
||||||
|
|
Loading…
Reference in a new issue