2022-06-08 15:39:21 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "prometheus-nats-exporter";
|
2024-01-16 16:03:05 +00:00
|
|
|
version = "0.14.0";
|
2022-06-08 15:39:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nats-io";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-01-16 16:03:05 +00:00
|
|
|
sha256 = "sha256-Zg4zmb0tvu7JPv9XS5Qd5o/ClnODSPz36isjUbFM1ec=";
|
2022-06-08 15:39:21 +00:00
|
|
|
};
|
|
|
|
|
2024-01-16 16:03:05 +00:00
|
|
|
vendorHash = "sha256-VygRE6YviSSIYpMbTEPndR6WUmLAZDwgvuJcwBuizck=";
|
2022-06-08 15:39:21 +00:00
|
|
|
|
2022-10-01 01:28:13 +00:00
|
|
|
preCheck = ''
|
|
|
|
# Fix `insecure algorithm SHA1-RSA` problem
|
|
|
|
export GODEBUG=x509sha1=1;
|
|
|
|
'';
|
|
|
|
|
2022-06-08 15:39:21 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|