diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2024-06-23 23:05:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-23 23:05:06 +0200 |
commit | 3c033186ee73229fdcdcb3266a36baf87d519840 (patch) | |
tree | 3b16162580537ac13f750b685fcada5a7a2ec3a3 /pkgs/by-name/al | |
parent | 2789cee804747dc1066fc293ab918f77297561c5 (diff) | |
parent | 5adadf25c6eba445401bd2a270a74a9c3bac73c2 (diff) |
Merge pull request #316727 from jpds/nixos-tests-prometheus
nixos/prometheus: Revamp tests
Diffstat (limited to 'pkgs/by-name/al')
-rw-r--r-- | pkgs/by-name/al/alertmanager-webhook-logger/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/al/alertmanager-webhook-logger/package.nix b/pkgs/by-name/al/alertmanager-webhook-logger/package.nix new file mode 100644 index 0000000000000..e04759dda7d37 --- /dev/null +++ b/pkgs/by-name/al/alertmanager-webhook-logger/package.nix @@ -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 ]; + }; +} |