mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
New package: prom2json
This commit is contained in:
parent
75ea4778f5
commit
adf59e7110
28
pkgs/servers/monitoring/prometheus/prom2json/default.nix
Normal file
28
pkgs/servers/monitoring/prometheus/prom2json/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ goPackages, lib, fetchFromGitHub }:
|
||||
|
||||
goPackages.buildGoPackage rec {
|
||||
name = "prom2json-${rev}";
|
||||
rev = "0.1.0";
|
||||
goPackagePath = "github.com/prometheus/prom2json";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "prometheus";
|
||||
repo = "prom2json";
|
||||
inherit rev;
|
||||
sha256 = "0wwh3mz7z81fwh8n78sshvj46akcgjhxapjgfic5afc4nv926zdl";
|
||||
};
|
||||
|
||||
buildInputs = with goPackages; [
|
||||
golang_protobuf_extensions
|
||||
prometheus.client_golang
|
||||
protobuf
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to scrape a Prometheus client and dump the result as JSON.";
|
||||
homepage = https://github.com/prometheus/prom2json;
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ benley ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
@ -8802,6 +8802,7 @@ let
|
||||
|
||||
postgresql_jdbc = callPackage ../servers/sql/postgresql/jdbc { };
|
||||
|
||||
prom2json = callPackage ../servers/monitoring/prometheus/prom2json { };
|
||||
prometheus = callPackage ../servers/monitoring/prometheus { };
|
||||
prometheus-alertmanager =
|
||||
callPackage ../servers/monitoring/prometheus/alertmanager { };
|
||||
|
Loading…
Reference in New Issue
Block a user