mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
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
1 changed files with 7 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue