2021-03-31 21:29:42 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2019-08-02 00:10:08 +03:00
|
|
|
|
2021-03-31 21:29:42 +03:00
|
|
|
buildGoModule rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "postgres_exporter";
|
2022-08-01 09:19:14 +03:00
|
|
|
version = "0.11.0";
|
2019-08-02 00:10:08 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-29 01:29:46 +03:00
|
|
|
owner = "prometheus-community";
|
2019-08-02 00:10:08 +03:00
|
|
|
repo = "postgres_exporter";
|
|
|
|
rev = "v${version}";
|
2022-08-01 09:19:14 +03:00
|
|
|
sha256 = "sha256-XrCO77R/rfkhSvebMjYwhe8JJ/Ley4VrXMqi5jax86k=";
|
2019-08-02 00:10:08 +03:00
|
|
|
};
|
|
|
|
|
2022-08-01 09:19:14 +03:00
|
|
|
vendorSha256 = "sha256-ocapAJAQD84zISbTduAf3QyjaZ0UroNMdQig6IBNDpw=";
|
2021-03-31 21:29:42 +03:00
|
|
|
|
2019-11-01 01:49:15 +03:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 13:48:40 +03:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) postgres; };
|
|
|
|
|
2019-10-30 18:12:11 +03:00
|
|
|
meta = with lib; {
|
2019-08-02 00:10:08 +03:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "A Prometheus exporter for PostgreSQL";
|
|
|
|
license = licenses.asl20;
|
2021-03-31 21:29:42 +03:00
|
|
|
maintainers = with maintainers; [ fpletz globin willibutz ma27 ];
|
2019-08-02 00:10:08 +03:00
|
|
|
};
|
|
|
|
}
|