2021-05-11 20:53:36 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, net-snmp, nixosTests }:
|
2016-10-05 16:30:18 +02:00
|
|
|
|
2021-05-11 20:53:36 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "snmp_exporter";
|
2023-12-18 04:02:51 +01:00
|
|
|
version = "0.25.0";
|
2016-10-05 16:30:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "snmp_exporter";
|
2018-05-01 14:55:24 +02:00
|
|
|
rev = "v${version}";
|
2023-12-18 04:02:51 +01:00
|
|
|
sha256 = "sha256-6Y2zJwY5gToJlY6iLug2jNXXtNLNz98WoTKGcWgYzaA=";
|
2016-10-05 16:30:18 +02:00
|
|
|
};
|
|
|
|
|
2023-12-18 04:02:51 +01:00
|
|
|
vendorHash = "sha256-8soLDI/hBzSZB6Lfj1jVkIWfIkMPJmp84bu7TKg7jeo=";
|
2021-05-11 20:53:36 +02:00
|
|
|
|
2019-12-21 23:44:50 +01:00
|
|
|
buildInputs = [ net-snmp ];
|
2017-04-11 18:02:23 +02:00
|
|
|
|
2016-10-05 16:30:18 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2020-06-18 12:48:40 +02:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) snmp; };
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-10-05 16:30:18 +02:00
|
|
|
description = "SNMP Exporter for Prometheus";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/prometheus/snmp_exporter";
|
2016-10-05 16:30:18 +02:00
|
|
|
license = licenses.asl20;
|
2024-01-14 20:02:25 +01:00
|
|
|
maintainers = with maintainers; [ oida Frostman ];
|
2016-10-05 16:30:18 +02:00
|
|
|
};
|
|
|
|
}
|