summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus/aws-s3-exporter.nix
blob: af58a6ebe9475b108b1f8957a6a79933f1469da3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "aws-s3-exporter";
  version = "0.3.0";

  goPackagePath = "github.com/ribbybibby/s3_exporter";

  src = fetchFromGitHub {
    owner = "ribbybibby";
    repo = "s3_exporter";
    rev = "v${version}";
    sha256 = "062qi4rfqkxwknncwcvx4g132bxhkn2bhbxi4l90wl93v6sdp9l2";
  };

  doCheck = true;

  meta = with lib; {
    description = "Exports Prometheus metrics about S3 buckets and objects";
    homepage = "https://github.com/ribbybibby/s3_exporter";
    license = licenses.asl20;
    maintainers = [ maintainers.mmahut ];
  };
}