From 7d988867ffbd36a57e5df29611b17bb1c6e905ac Mon Sep 17 00:00:00 2001 From: Jakub Sokołowski Date: Sat, 8 Jan 2022 11:52:36 +0100 Subject: mtr-exporter: init at 0.1.0 (3ce854a5) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a useful utility for monitoring network performance over time using a combination of MTR and Prometheus. Also adding a service definition. Signed-off-by: Jakub Sokołowski --- pkgs/tools/networking/mtr-exporter/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/tools/networking/mtr-exporter/default.nix (limited to 'pkgs/tools') diff --git a/pkgs/tools/networking/mtr-exporter/default.nix b/pkgs/tools/networking/mtr-exporter/default.nix new file mode 100644 index 0000000000000..0243774262af0 --- /dev/null +++ b/pkgs/tools/networking/mtr-exporter/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchurl, fetchFromGitHub }: + +buildGoModule rec { + pname = "mtr-exporter"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "mgumz"; + repo = "mtr-exporter"; + rev = "3ce854a53a44780d2294f59284d21b06aeae6940"; + sha256 = "sha256-PZCSuvtTBD7yoUE1fR9Z/u3aa1BZgbrcj18smnWRYf4="; + }; + + vendorSha256 = "0njn0ac7j3lv8ax6jc3bg3hh96a42jal212qk6zxrd46nb5l1rj8"; + + meta = with lib; { + description = '' + Mtr-exporter periodically executes mtr to a given host and + provides the measured results as prometheus metrics. + ''; + homepage = "https://github.com/mgumz/mtr-exporter"; + license = licenses.bsd3; + maintainers = with maintainers; [ jakubgs ]; + }; +} -- cgit 1.4.1