2021-03-31 20:29:42 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-08-01 23:10:08 +02:00
|
|
|
|
2021-03-31 20:29:42 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "postgres_exporter";
|
2021-03-31 20:29:42 +02:00
|
|
|
version = "0.9.0";
|
2019-08-01 23:10:08 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wrouesnel";
|
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
2021-03-31 20:29:42 +02:00
|
|
|
sha256 = "sha256-Kv+sjqhlmH36L4YvDuGYODR/eTHA2TKQ6IUCXAiItyo=";
|
2019-08-01 23:10:08 +02:00
|
|
|
};
|
|
|
|
|
2021-03-31 20:29:42 +02:00
|
|
|
vendorSha256 = "sha256-yMcoUl9NsiiZQyEHlLu79DzIyl6BbhLZ/xNFavaGrEs=";
|
|
|
|
|
2019-10-31 23:49:15 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
|
|
|
|
2019-10-30 16:12:11 +01:00
|
|
|
meta = with lib; {
|
2019-08-01 23:10:08 +02:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A Prometheus exporter for PostgreSQL";
|
|
|
|
license = licenses.asl20;
|
2021-03-31 20:29:42 +02:00
|
|
|
maintainers = with maintainers; [ fpletz globin willibutz ma27 ];
|
2019-08-01 23:10:08 +02:00
|
|
|
};
|
|
|
|
}
|