2020-06-18 10:48:40 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub, nixosTests }:
|
2019-08-01 21:10:08 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "postgres_exporter";
|
2019-11-25 20:59:42 +00:00
|
|
|
version = "0.8.0";
|
2019-08-01 21:10:08 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/wrouesnel/postgres_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wrouesnel";
|
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
2019-11-25 20:59:42 +00:00
|
|
|
sha256 = "0mid2kvskab3a32jscygg5jh0741nr7dvxzj4v029yiiqcx55nrc";
|
2019-08-01 21:10:08 +00:00
|
|
|
};
|
|
|
|
|
2019-10-31 22:49:15 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 10:48:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
|
|
|
|
2019-10-30 15:12:11 +00:00
|
|
|
meta = with lib; {
|
2019-08-01 21:10:08 +00: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 21:10:08 +00:00
|
|
|
};
|
|
|
|
}
|