prometheus-json-exporter: 0.2.0 -> 0.3.0

This commit is contained in:
Robin Gloster 2021-05-10 23:36:39 -05:00
parent 21bf56687d
commit b3c592bf08
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF
2 changed files with 4 additions and 4 deletions

View file

@ -302,7 +302,7 @@ let
url = "http://localhost";
configFile = pkgs.writeText "json-exporter-conf.json" (builtins.toJSON {
metrics = [
{ name = "json_test_metric"; path = "$.test"; }
{ name = "json_test_metric"; path = "{ .test }"; }
];
});
};

View file

@ -2,16 +2,16 @@
buildGoModule rec {
pname = "prometheus-json-exporter";
version = "0.2.0";
version = "0.3.0";
src = fetchFromGitHub {
owner = "prometheus-community";
repo = "json_exporter";
rev = "v${version}";
sha256 = "1aabvd75a2223x5wnbyryigj7grw6l05jhr3g3s97b1f1hfigz6d";
sha256 = "0nhww7pbyqpiikcli1ysqa15d4y76h3jaij1j0sj8i3mhv1nsjz9";
};
vendorSha256 = "03kb0gklq08krl7qnvs7267siw1pkyy346b42dsk1d9gr5302wsw";
vendorSha256 = "1fiy6x06mqxbv9c4rxfl4q7hvblbzhknkpcp0alz61f3fk5wxsgp";
passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };