2022-06-08 17:39:21 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "prometheus-nats-exporter";
|
2022-08-21 22:05:06 +02:00
|
|
|
version = "0.10.0";
|
2022-06-08 17:39:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nats-io";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-21 22:05:06 +02:00
|
|
|
sha256 = "sha256-qUnlPGniqStU5jVg+5SR8aYO7BLo7+d+UWPPm13ov0I=";
|
2022-06-08 17:39:21 +02:00
|
|
|
};
|
|
|
|
|
2022-08-21 22:05:06 +02:00
|
|
|
vendorSha256 = "sha256-hlC/s0pYhNHMv3i7Nmu4r6jnXGpc6raScv5dO32+tfQ=";
|
2022-06-08 17:39:21 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Exporter for NATS metrics";
|
|
|
|
homepage = "https://github.com/nats-io/prometheus-nats-exporter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bbigras ];
|
|
|
|
};
|
|
|
|
}
|