2016-06-06 12:26:56 +02:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 16:25:07 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "statsd_bridge-${version}";
|
2016-06-28 15:32:22 +02:00
|
|
|
version = "0.3.0";
|
2016-06-05 16:25:07 +02:00
|
|
|
rev = version;
|
2016-06-28 15:32:22 +02:00
|
|
|
|
2016-06-05 16:25:07 +02:00
|
|
|
goPackagePath = "github.com/prometheus/statsd_bridge";
|
|
|
|
|
2016-06-06 12:26:56 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 16:25:07 +02:00
|
|
|
inherit rev;
|
2016-06-06 12:26:56 +02:00
|
|
|
owner = "prometheus";
|
2016-06-28 15:32:22 +02:00
|
|
|
repo = "statsd_exporter";
|
|
|
|
sha256 = "1gg9v224n05khcwy27637w3rwh0cymm7hx6bginfxd7730rmpp2r";
|
2016-06-05 16:25:07 +02:00
|
|
|
};
|
|
|
|
|
2016-09-10 12:04:13 +02:00
|
|
|
goDeps = ./statsd-bridge_deps.nix;
|
2016-06-05 16:25:07 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Receives StatsD-style metrics and exports them to Prometheus";
|
|
|
|
homepage = https://github.com/prometheus/statsd_bridge;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|