2022-05-03 00:53:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2019-09-03 08:46:18 +00:00
|
|
|
|
2022-05-03 00:53:53 +00:00
|
|
|
buildGoModule rec {
|
2019-09-03 08:46:18 +00:00
|
|
|
pname = "aws-s3-exporter";
|
2022-05-03 00:53:53 +00:00
|
|
|
version = "0.5.0";
|
2019-09-03 08:46:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ribbybibby";
|
|
|
|
repo = "s3_exporter";
|
|
|
|
rev = "v${version}";
|
2022-05-03 00:53:53 +00:00
|
|
|
sha256 = "sha256-dYkMCCAIlFDFOFUNJd4NvtAeJDTsHeJoH90b5pSGlQE=";
|
2019-09-03 08:46:18 +00:00
|
|
|
};
|
|
|
|
|
2022-05-03 00:53:53 +00:00
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2019-09-03 08:46:18 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-03 08:46:18 +00:00
|
|
|
description = "Exports Prometheus metrics about S3 buckets and objects";
|
|
|
|
homepage = "https://github.com/ribbybibby/s3_exporter";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|