blob: 053a810d8345778bacc1289673947ef673bd9420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "prom2json";
version = "1.5.0";
src = fetchFromGitHub {
rev = "v${version}";
owner = "prometheus";
repo = "prom2json";
sha256 = "sha256-Zd3p1anHleKAkFcHEx7tgpxjTlb5OvdWXFNNyfJ63+w=";
};
vendorHash = "sha256-PZXuhPpO02ix88RtBpsGaQxgQNVn+LW09rrN66+mCpw=";
meta = {
description = "Tool to scrape a Prometheus client and dump the result as JSON";
mainProgram = "prom2json";
homepage = "https://github.com/prometheus/prom2json";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
};
}
|