New package: prometheus-statsd-bridge

This commit is contained in:
Benjamin Staffin 2015-03-21 17:08:48 -07:00
parent 781dbfb9b8
commit bcc8293cba
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, lib, goPackages, fetchFromGitHub }:
goPackages.buildGoPackage rec {
name = "prometheus-statsd-bridge-${stdenv.lib.strings.substring 0 7 rev}";
rev = "9715b183150c7bed8a10affb23d33fb55c597180";
goPackagePath = "github.com/prometheus/statsd_bridge";
src = fetchFromGitHub {
inherit rev;
owner = "prometheus";
repo = "statsd_bridge";
sha256 = "119024xb08qjwbhplpl5d94bjdfhn92w4ffn4kxr7aviri1gynfz";
};
buildInputs = with goPackages; [
fsnotify
prometheus.client_golang
];
meta = with lib; {
description = "Receives StatsD-style metrics and exports them to Prometheus";
homepage = https://github.com/prometheus/statsd_bridge;
licenses = licenses.asl20;
maintainers = with maintainers; [ benley ];
platforms = platforms.unix;
};
}

View File

@ -8395,6 +8395,8 @@ let
callPackage ../servers/monitoring/prometheus/node_exporter { };
prometheus-pushgateway =
callPackage ../servers/monitoring/prometheus/pushgateway { };
prometheus-statsd-bridge =
callPackage ../servers/monitoring/prometheus/statsd_bridge { };
psqlodbc = callPackage ../servers/sql/postgresql/psqlodbc { };