2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-12-01 00:38:03 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "blackbox_exporter-${version}";
|
2018-03-13 18:50:20 +00:00
|
|
|
version = "0.12.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";
|
2018-03-13 18:50:20 +00:00
|
|
|
sha256 = "0gd3vymk3qdfjnf0rx9kwc6v0jv7f8l30igvj2v7bljar2d6hzxf";
|
2016-12-01 00:38:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Blackbox probing of endpoints over HTTP, HTTPS, DNS, TCP and ICMP";
|
|
|
|
homepage = https://github.com/prometheus/blackbox_exporter;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ globin fpletz ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|