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