1 { lib, buildGoModule, fetchFromGitHub, nixosTests }:
4 pname = "prometheus-json-exporter";
7 src = fetchFromGitHub {
8 owner = "prometheus-community";
9 repo = "json_exporter";
11 sha256 = "sha256-5tFhk62ewRE87lxgVM2bytV9GbXT5iAwbJqklohYDvM=";
14 vendorHash = "sha256-Hij3lh92OCH+sTrzNl/KkjLAhPGffzzmxhPDO2wG0gA=";
16 passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };
19 description = "A prometheus exporter which scrapes remote JSON by JSONPath";
20 homepage = "https://github.com/prometheus-community/json_exporter";
21 license = licenses.asl20;
22 maintainers = with maintainers; [ willibutz ];
23 mainProgram = "json_exporter";