depot/pkgs/servers/monitoring/prometheus/prom2json.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

23 lines
632 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "prom2json";
version = "1.4.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "prom2json";
sha256 = "sha256-cKz+ZFQYjsL7dFfXXCrl4T8OuvQkdqVAotG9HRNtN7o=";
};
vendorHash = "sha256-pCy4oECZnvoODezUD1+lOT46yWUr78zvnHgEB2BJN3c=";
meta = with lib; {
description = "Tool to scrape a Prometheus client and dump the result as JSON";
mainProgram = "prom2json";
homepage = "https://github.com/prometheus/prom2json";
license = licenses.asl20;
maintainers = with maintainers; [ benley ];
};
}