summary refs log tree commit diff
path: root/pkgs/servers/monitoring/prometheus
diff options
context:
space:
mode:
authorKamil Chmielewski <kamil.chm@gmail.com>2016-06-05 16:25:07 +0200
committerKamil Chmielewski <kamil.chm@gmail.com>2016-06-09 11:22:02 +0200
commit5d3f8fec7cfc732f8548ae4d27f88a19b58905b2 (patch)
treeea5f5a7928a6c4021fbd1cf58de6a26a61ee6b74 /pkgs/servers/monitoring/prometheus
parent5fec17a3e25dfc816b98a21c6589d79808eb0048 (diff)
downloadnixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar.gz
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar.bz2
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar.lz
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar.xz
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.tar.zst
nixpkgs-5d3f8fec7cfc732f8548ae4d27f88a19b58905b2.zip
prometheus-statsd-bridge: extracted from goPackages
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"
+    ]
+  }
+]