2019-10-30 15:12:11 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2019-08-01 22:10:08 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "postgres_exporter";
|
2019-10-30 15:12:11 +00:00
|
|
|
version = "0.6.0";
|
2019-08-01 22:10:08 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/wrouesnel/postgres_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wrouesnel";
|
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
2019-10-30 15:12:11 +00:00
|
|
|
sha256 = "0a903mklp3aardlbz5fkslisav9khd1w3akcf9xkc5nfinr6xnqb";
|
2019-08-01 22:10:08 +01:00
|
|
|
};
|
|
|
|
|
2019-10-30 15:12:11 +00:00
|
|
|
meta = with lib; {
|
2019-08-01 22:10:08 +01:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A Prometheus exporter for PostgreSQL";
|
|
|
|
license = licenses.asl20;
|
2019-10-30 15:12:11 +00:00
|
|
|
maintainers = with maintainers; [ fpletz globin willibutz ];
|
2019-08-01 22:10:08 +01:00
|
|
|
};
|
|
|
|
}
|