2016-06-06 11:26:56 +01:00
|
|
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
2016-06-05 15:25:07 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "statsd_bridge-${version}";
|
2016-06-28 14:32:22 +01:00
|
|
|
version = "0.3.0";
|
2016-06-05 15:25:07 +01:00
|
|
|
rev = version;
|
2016-06-28 14:32:22 +01:00
|
|
|
|
2016-06-05 15:25:07 +01:00
|
|
|
goPackagePath = "github.com/prometheus/statsd_bridge";
|
|
|
|
|
2016-06-06 11:26:56 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-06-05 15:25:07 +01:00
|
|
|
inherit rev;
|
2016-06-06 11:26:56 +01:00
|
|
|
owner = "prometheus";
|
2016-06-28 14:32:22 +01:00
|
|
|
repo = "statsd_exporter";
|
|
|
|
sha256 = "1gg9v224n05khcwy27637w3rwh0cymm7hx6bginfxd7730rmpp2r";
|
2016-06-05 15:25:07 +01:00
|
|
|
};
|
|
|
|
|
2016-09-10 11:04:13 +01:00
|
|
|
goDeps = ./statsd-bridge_deps.nix;
|
2016-06-05 15:25:07 +01: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;
|
|
|
|
};
|
|
|
|
}
|