Skip to content

Commit

Permalink
promql-cli: init at 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Grahl committed Sep 13, 2022
1 parent 4f07c96 commit e8f50f9
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pkgs/tools/misc/promql-cli/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23563,6 +23563,8 @@ with pkgs;

liquibase_redshift_extension = callPackage ../development/java-modules/liquibase_redshift_extension { };

promql-cli = callPackage ../tools/misc/promql-cli { };

prom2json = callPackage ../servers/monitoring/prometheus/prom2json.nix { };
prometheus = callPackage ../servers/monitoring/prometheus { };
prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
Expand Down

0 comments on commit e8f50f9

Please sign in to comment.