2021-05-11 18:53:36 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, net-snmp, nixosTests }:
|
2016-10-05 14:30:18 +00:00
|
|
|
|
2021-05-11 18:53:36 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "snmp_exporter";
|
2021-05-11 18:53:36 +00:00
|
|
|
version = "0.20.0";
|
2016-10-05 14:30:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2018-05-01 12:55:24 +00:00
|
|
|
rev = "v${version}";
|
2021-05-11 18:53:36 +00:00
|
|
|
sha256 = "0qwbnx3l25460qbah4ik9mlcyrm31rwm51451gh0jprii80cf16x";
|
2016-10-05 14:30:18 +00:00
|
|
|
};
|
|
|
|
|
2021-05-11 18:53:36 +00:00
|
|
|
vendorSha256 = "1rivil3hwk269ikrwc4i22k2y5c9zs5ac058y7llz8ivrrjr2w4h";
|
|
|
|
|
2019-12-21 22:44:50 +00:00
|
|
|
buildInputs = [ net-snmp ];
|
2017-04-11 16:02:23 +00:00
|
|
|
|
2016-10-05 14:30:18 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 10:48:40 +00:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-10-05 14:30:18 +00:00
|
|
|
description = "SNMP Exporter for Prometheus";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/prometheus/snmp_exporter";
|
2016-10-05 14:30:18 +00:00
|
|
|
license = licenses.asl20;
|
2020-05-26 19:11:13 +00:00
|
|
|
maintainers = with maintainers; [ oida willibutz Frostman ];
|
2016-10-05 14:30:18 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|