2022-06-08 17:39:21 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "prometheus-nats-exporter";
|
2023-11-01 17:34:18 +01:00
|
|
|
version = "0.13.0";
|
2022-06-08 17:39:21 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nats-io";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-01 17:34:18 +01:00
|
|
|
sha256 = "sha256-TsFj/iUG/PkGvVVn5RSWwEnHsEIGWMY8iapBHVpzt1c=";
|
2022-06-08 17:39:21 +02:00
|
|
|
};
|
|
|
|
|
2023-11-01 17:34:18 +01:00
|
|
|
vendorHash = "sha256-IoguUXHxEeyHb2io41ROgam8+7vD5WKzEWwNh4Dlk1o=";
|
2022-06-08 17:39:21 +02:00
|
|
|
|
2022-10-01 03:28:13 +02:00
|
|
|
preCheck = ''
|
|
|
|
# Fix `insecure algorithm SHA1-RSA` problem
|
|
|
|
export GODEBUG=x509sha1=1;
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|