2021-03-31 19:29:42 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-08-01 22:10:08 +01:00
|
|
|
|
2021-03-31 19:29:42 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "postgres_exporter";
|
2022-01-28 22:29:46 +00:00
|
|
|
version = "0.10.1";
|
2019-08-01 22:10:08 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-28 22:29:46 +00:00
|
|
|
owner = "prometheus-community";
|
2019-08-01 22:10:08 +01:00
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
2022-01-28 22:29:46 +00:00
|
|
|
sha256 = "sha256-AH4nVwmNS4YtKxrWlFNqN+Q59TaSCGdoiCfpelPtJuM=";
|
2019-08-01 22:10:08 +01:00
|
|
|
};
|
|
|
|
|
2022-01-28 22:29:46 +00:00
|
|
|
vendorSha256 = "sha256-ST/Mc8RDEu2G6ufus8Gi7dwdBNIpaKJjn+Fw1AKCaXs=";
|
2021-03-31 19:29:42 +01:00
|
|
|
|
2019-10-31 22:49:15 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
|
|
|
|
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;
|
2021-03-31 19:29:42 +01:00
|
|
|
maintainers = with maintainers; [ fpletz globin willibutz ma27 ];
|
2019-08-01 22:10:08 +01:00
|
|
|
};
|
|
|
|
}
|