2025-06-05 10:04:30 +00:00

31 lines
653 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "mtr-exporter";
version = "0.6.0";
src = fetchFromGitHub {
owner = "mgumz";
repo = "mtr-exporter";
rev = version;
hash = "sha256-GkTkL72ZdxeCMG24rjGx8vWt5GQqrTXNxTDpQ81ite8=";
};
vendorHash = null;
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 ];
mainProgram = "mtr-exporter";
};
}