2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, net_snmp }:
|
2016-10-05 15:30:18 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "snmp_exporter";
|
2019-09-05 22:07:58 +01:00
|
|
|
version = "0.15.0";
|
2016-10-05 15:30:18 +01:00
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/snmp_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2018-05-01 13:55:24 +01:00
|
|
|
rev = "v${version}";
|
2019-09-05 22:07:58 +01:00
|
|
|
sha256 = "1cnz1wapxs3fkghzy6v90s56vd0ngynypyapcpbmx5y66rlpdxx6";
|
2016-10-05 15:30:18 +01:00
|
|
|
};
|
|
|
|
|
2017-04-11 17:02:23 +01:00
|
|
|
buildInputs = [ net_snmp ];
|
|
|
|
|
2016-10-05 15:30:18 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SNMP Exporter for Prometheus";
|
|
|
|
homepage = https://github.com/prometheus/snmp_exporter;
|
|
|
|
license = licenses.asl20;
|
2018-05-01 13:55:24 +01:00
|
|
|
maintainers = with maintainers; [ oida willibutz ];
|
2016-10-05 15:30:18 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|