summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/monitoring/prometheus')
-rw-r--r--pkgs/servers/monitoring/prometheus/statsd-bridge.nix28
-rw-r--r--pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json15
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/prometheus/statsd-bridge.nix b/pkgs/servers/monitoring/prometheus/statsd-bridge.nix
new file mode 100644
index 00000000000..4458b668a19
--- /dev/null
+++ b/pkgs/servers/monitoring/prometheus/statsd-bridge.nix
@@ -0,0 +1,28 @@
+# This file was generated by go2nix.
+{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
+
+with goPackages;
+
+buildGoPackage rec {
+  name = "statsd_bridge-${version}";
+  version = "0.1.0";
+  rev = version;
+  
+  goPackagePath = "github.com/prometheus/statsd_bridge";
+
+  src = fetchgit {
+    inherit rev;
+    url = "https://github.com/prometheus/statsd_bridge";
+    sha256 = "1fndpmd1k0a3ar6f7zpisijzc60f2dng5399nld1i1cbmd8jybjr";
+  };
+
+  goDeps = ./statsd-bridge_deps.json;
+
+  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;
+  };
+}
diff --git a/pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json b/pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json
new file mode 100644
index 00000000000..cda65257317
--- /dev/null
+++ b/pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json
@@ -0,0 +1,15 @@
+[
+  {
+    "include": "../../libs.json",
+    "packages": [
+      "github.com/howeyc/fsnotify",
+      "github.com/prometheus/client_golang",
+      "github.com/prometheus/client_model",
+      "bitbucket.org/ww/goautoneg",
+      "github.com/beorn7/perks",
+      "github.com/golang/protobuf",
+      "github.com/matttproud/golang_protobuf_extensions",
+      "github.com/prometheus/procfs"
+    ]
+  }
+]