2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-12-01 00:38:03 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "blackbox_exporter";
|
2020-06-19 18:25:36 +00:00
|
|
|
version = "0.17.0";
|
2016-12-01 00:38:03 +00:00
|
|
|
rev = version;
|
|
|
|
|
|
|
|
goPackagePath = "github.com/prometheus/blackbox_exporter";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "blackbox_exporter";
|
2020-06-19 18:25:36 +00:00
|
|
|
sha256 = "00ganz6wfwyb9avkp2fr4bwpzvfiffsmpgndl8zp80bk7m1b3mnz";
|
2016-12-01 00:38:03 +00:00
|
|
|
};
|
|
|
|
|
2019-11-11 18:49:38 +00:00
|
|
|
# dns-lookup is performed for the tests
|
|
|
|
doCheck = false;
|
2019-08-11 09:50:09 +00:00
|
|
|
|
2016-12-01 00:38:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
2019-08-11 09:50:09 +00:00
|
|
|
homepage = "https://github.com/prometheus/blackbox_exporter";
|
2016-12-01 00:38:03 +00:00
|
|
|
license = licenses.asl20;
|
2019-08-11 09:50:09 +00:00
|
|
|
maintainers = with maintainers; [ globin fpletz willibutz ];
|
2016-12-01 00:38:03 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|