mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
31 lines
737 B
Nix
31 lines
737 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "prometheus-json-exporter";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prometheus-community";
|
|
repo = "json_exporter";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-nmpErJCp31hxjVmVGaUiuKF/ya92vs+Cqw95EOFJ0BQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-xyRr78fkiKI9udQHqr/CBwhBts9zNTA3mhRDjGVsyZA=";
|
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) json; };
|
|
|
|
meta = {
|
|
description = "Prometheus exporter which scrapes remote JSON by JSONPath";
|
|
homepage = "https://github.com/prometheus-community/json_exporter";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
mainProgram = "json_exporter";
|
|
};
|
|
}
|