2019-08-01 23:10:08 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "postgres_exporter";
|
2019-08-01 23:10:08 +02:00
|
|
|
version = "0.5.1";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/wrouesnel/postgres_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wrouesnel";
|
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1awcqhiak56nrsaa49lkw6mcbrlm86ls14sp9v69h3a0brc1q7bn";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A Prometheus exporter for PostgreSQL";
|
|
|
|
license = licenses.asl20;
|
2019-08-20 19:36:05 +02:00
|
|
|
maintainers = with maintainers; [ fpletz globin ];
|
2019-08-01 23:10:08 +02:00
|
|
|
};
|
|
|
|
}
|