2019-12-21 22:44:50 +00: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";
|
2020-02-20 16:12:32 +00:00
|
|
|
version = "0.17.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}";
|
2020-02-20 16:12:32 +00:00
|
|
|
sha256 = "0s2vgcpxannyl1zllc3ixww02832s53zijws64lhd8mxrylqvpcp";
|
2016-10-05 15:30:18 +01:00
|
|
|
};
|
|
|
|
|
2019-12-21 22:44:50 +00:00
|
|
|
buildInputs = [ net-snmp ];
|
2017-04-11 17:02:23 +01:00
|
|
|
|
2016-10-05 15:30:18 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "SNMP Exporter for Prometheus";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/prometheus/snmp_exporter";
|
2016-10-05 15:30:18 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|