prometheus-openldap-exporter: init at 2.1

This commit is contained in:
Maximilian Bosch
2021-04-02 19:16:50 +02:00
parent 763933b3d0
commit 4794829734
5 changed files with 158 additions and 0 deletions
@@ -0,0 +1,29 @@
{ buildGoPackage, lib, fetchFromGitHub }:
buildGoPackage rec {
pname = "openldap_exporter";
version = "2.1";
src = fetchFromGitHub {
owner = "tomcz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Di1GiyVp/hGCFhqxhlqJSucGZK7f/FDDUFtJRaiAZu4=";
};
buildFlagsArray = ''
-ldflags=
-s -w
-X github.com/tomcz/openldap_exporter.tag=v${version}
-X github.com/tomcz/openldap_exporter.commit=unknown
'';
goPackagePath = "github.com/tomcz/openldap_exporter";
meta = with lib; {
homepage = "https://github.com/tomcz/openldap_exporter";
description = " Simple service that scrapes metrics from OpenLDAP and exports them via HTTP for Prometheus consumption";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}