Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / monitoring / prometheus / prom2json.nix
blob7b6b0e473907f8f7d4cb642474990b7d63cb9270
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "prom2json";
5   version = "1.4.0";
7   src = fetchFromGitHub {
8     rev = "v${version}";
9     owner = "prometheus";
10     repo = "prom2json";
11     sha256 = "sha256-oOnrIGtNQqS/7XCKcFtzXskv7N6syNyS52pZMwrY5wU=";
12   };
14   vendorHash = "sha256-d+/38wUMFChuLlVb84DELRQylCDIqopzk2bw/yd5B/E=";
16   meta = with lib; {
17     description = "Tool to scrape a Prometheus client and dump the result as JSON";
18     mainProgram = "prom2json";
19     homepage = "https://github.com/prometheus/prom2json";
20     license = licenses.asl20;
21     maintainers = with maintainers; [ benley ];
22   };