promql-cli: init at 0.2.1
This commit is contained in:
parent
4f07c96203
commit
e8f50f90a7
31
pkgs/tools/misc/promql-cli/default.nix
Normal file
31
pkgs/tools/misc/promql-cli/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "promql-cli";
|
||||||
|
version = "0.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nalbury";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-uuoUvEBnLxopdt6u4vX6pYnuyOATwJFJo9ozQ9jhSyo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-OLkOyeLyBnNmijNYFrXIZ4nbOvV/65KIKjOFOVS9Yiw=";
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mv -v $out/bin/promql-cli $out/bin/promql
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Command-line tool to query a Prometheus server with PromQL and visualize the output";
|
||||||
|
homepage = "https://github.com/nalbury/promql-cli";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ arikgrahl ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -23563,6 +23563,8 @@ with pkgs;
|
||||||
|
|
||||||
liquibase_redshift_extension = callPackage ../development/java-modules/liquibase_redshift_extension { };
|
liquibase_redshift_extension = callPackage ../development/java-modules/liquibase_redshift_extension { };
|
||||||
|
|
||||||
|
promql-cli = callPackage ../tools/misc/promql-cli { };
|
||||||
|
|
||||||
prom2json = callPackage ../servers/monitoring/prometheus/prom2json.nix { };
|
prom2json = callPackage ../servers/monitoring/prometheus/prom2json.nix { };
|
||||||
prometheus = callPackage ../servers/monitoring/prometheus { };
|
prometheus = callPackage ../servers/monitoring/prometheus { };
|
||||||
prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
|
prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
|
||||||
|
|
Loading…
Reference in a new issue