alertmanager-webhook-logger: init at 1.0
This commit is contained in:
parent
8c159a4342
commit
03161fa571
33
pkgs/by-name/al/alertmanager-webhook-logger/package.nix
Normal file
33
pkgs/by-name/al/alertmanager-webhook-logger/package.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, buildGoModule
|
||||||
|
, fetchFromGitHub
|
||||||
|
, nixosTests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "alertmanager-webhook-logger";
|
||||||
|
version = "1.0";
|
||||||
|
rev = "${version}";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
inherit rev;
|
||||||
|
owner = "tomtom-international";
|
||||||
|
repo = "alertmanager-webhook-logger";
|
||||||
|
hash = "sha256-mJbpDiTwUsFm0lDKz8UE/YF6sBvcSSR6WWLrfKvtri4=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-gKtOoM9TuEIHgvSjZhqWmdexG2zDjlPuM0HjjP52DOI=";
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
passthru.tests = { inherit (nixosTests.prometheus) alertmanager; };
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Generates (structured) log messages from Prometheus AlertManager webhook notifier";
|
||||||
|
mainProgram = "alertmanager-webhook-logger";
|
||||||
|
homepage = "https://github.com/tomtom-international/alertmanager-webhook-logger";
|
||||||
|
license = licenses.asl20;
|
||||||
|
maintainers = with maintainers; [ jpds ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user