2016-11-27 19:26:33 +00:00
|
|
|
# This file was generated by go2nix.
|
2020-06-18 11:48:40 +01:00
|
|
|
{ buildGoPackage, fetchFromGitHub, fetchpatch, lib, nixosTests }:
|
2016-11-27 19:26:33 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildGoPackage {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "prometheus-json-exporter";
|
2018-08-21 00:41:15 +01:00
|
|
|
version = "unstable-2017-10-06";
|
2016-11-27 19:26:33 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/kawamuray/prometheus-json-exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kawamuray";
|
|
|
|
repo = "prometheus-json-exporter";
|
2018-08-21 00:41:15 +01:00
|
|
|
rev = "51e3dc02a30ab818bb73e5c98c3853231c2dbb5f";
|
|
|
|
sha256 = "1v1p4zcqnb3d3rm55r695ydn61h6gz95f55cpa22hzw18dasahdh";
|
2016-11-27 19:26:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./json-exporter_deps.nix;
|
|
|
|
|
2018-08-21 00:42:18 +01:00
|
|
|
patches = [(fetchpatch { # adds bool support
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/kawamuray/prometheus-json-exporter/pull/17.patch";
|
|
|
|
sha256 = "0mc5axhd2bykci41dgswl4r1552d70jsmb17lbih7czhsy6rgmrm";
|
|
|
|
})];
|
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };
|
|
|
|
|
2018-08-21 00:41:15 +01:00
|
|
|
meta = with lib; {
|
2016-11-27 19:26:33 +00:00
|
|
|
description = "A prometheus exporter which scrapes remote JSON by JSONPath";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/kawamuray/prometheus-json-exporter";
|
2018-08-21 00:41:15 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ willibutz ];
|
2016-11-27 19:26:33 +00:00
|
|
|
};
|
|
|
|
}
|