2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2020-08-03 16:48:19 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sql_exporter";
|
2022-02-13 08:27:24 +01:00
|
|
|
version = "0.4.2";
|
2020-08-03 16:48:19 +02:00
|
|
|
|
|
|
|
vendorSha256 = null;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justwatchcom";
|
2021-01-20 20:45:54 +01:00
|
|
|
repo = pname;
|
2020-08-03 16:48:19 +02:00
|
|
|
rev = "v${version}";
|
2022-02-13 08:27:24 +01:00
|
|
|
sha256 = "sha256-Ujon6TLniQrYRxJe4+ZTu4/dI2K94r9M/lBmMizDZrA=";
|
2020-08-03 16:48:19 +02:00
|
|
|
};
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-08-03 16:48:19 +02:00
|
|
|
description = "Flexible SQL exporter for Prometheus";
|
|
|
|
homepage = "https://github.com/justwatchcom/sql_exporter";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ justinas ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|