2021-05-11 04:55:19 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-12-01 00:38:03 +00:00
|
|
|
|
2021-05-11 04:55:19 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "blackbox_exporter";
|
2021-05-11 04:55:19 +01:00
|
|
|
version = "0.19.0";
|
2016-12-01 00:38:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "prometheus";
|
|
|
|
repo = "blackbox_exporter";
|
2021-05-11 04:55:19 +01:00
|
|
|
sha256 = "1lrabbp6nsd9h3hs3y5a37yl4g8zzkv0m3vhz2vrir3wmfn07n4g";
|
2016-12-01 00:38:03 +00:00
|
|
|
};
|
|
|
|
|
2021-05-11 04:55:19 +01:00
|
|
|
vendorSha256 = "1wi9dmbxb6i1qglnp1v0lkqpp7l29lrbsg4lvx052nkcwkgq8g1y";
|
|
|
|
|
2019-11-11 18:49:38 +00:00
|
|
|
# dns-lookup is performed for the tests
|
|
|
|
doCheck = false;
|
2019-08-11 10:50:09 +01:00
|
|
|
|
2020-06-18 11:48:40 +01:00
|
|
|
passthru.tests = { inherit (nixosTests.prometheus-exporters) blackbox; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-12-01 00:38:03 +00:00
|
|
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
2019-08-11 10:50:09 +01:00
|
|
|
homepage = "https://github.com/prometheus/blackbox_exporter";
|
2016-12-01 00:38:03 +00:00
|
|
|
license = licenses.asl20;
|
2020-06-19 19:26:13 +01:00
|
|
|
maintainers = with maintainers; [ globin fpletz willibutz Frostman ];
|
2016-12-01 00:38:03 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|