mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
b2de6ccc8e
Updates to: - prometheus - prometheus-alertmanager - prometheus-cli - prometheus-mesos-exporter - prometheus-node-exporter - prometheus-pushgateway - prometheus-statsd-bridge
28 lines
746 B
Nix
28 lines
746 B
Nix
{ stdenv, lib, goPackages, fetchFromGitHub }:
|
|
|
|
goPackages.buildGoPackage rec {
|
|
name = "prometheus-statsd-bridge-${version}";
|
|
version = "0.1.0";
|
|
goPackagePath = "github.com/prometheus/statsd_bridge";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = version;
|
|
owner = "prometheus";
|
|
repo = "statsd_bridge";
|
|
sha256 = "1fndpmd1k0a3ar6f7zpisijzc60f2dng5399nld1i1cbmd8jybjr";
|
|
};
|
|
|
|
buildInputs = with goPackages; [
|
|
fsnotify.v0
|
|
prometheus.client_golang
|
|
];
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|