mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 20:02:58 +03:00
prometheus-statsd-bridge: extracted from goPackages
This commit is contained in:
parent
5fec17a3e2
commit
5d3f8fec7c
@ -1249,5 +1249,14 @@
|
|||||||
"rev": "6aacfd5ab513e34f7e64ea9627ab9670371b34e7",
|
"rev": "6aacfd5ab513e34f7e64ea9627ab9670371b34e7",
|
||||||
"sha256": "00rrjysmq898qcrf2hfwfh9s70vwvmjx2kp5w03nz1krxa4zhrkl"
|
"sha256": "00rrjysmq898qcrf2hfwfh9s70vwvmjx2kp5w03nz1krxa4zhrkl"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"goPackagePath": "github.com/howeyc/fsnotify",
|
||||||
|
"fetch": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/fsnotify/fsnotify",
|
||||||
|
"rev": "ea925a0a47d225b2ca7f9932b01d2ed4f3ec74f6",
|
||||||
|
"sha256": "15wqjpkfzsxnaxbz6y4r91hw6812g3sc4ipagxw1bya9klbnkdc9"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
28
pkgs/servers/monitoring/prometheus/statsd-bridge.nix
Normal file
28
pkgs/servers/monitoring/prometheus/statsd-bridge.nix
Normal file
@ -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;
|
||||||
|
};
|
||||||
|
}
|
15
pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json
Normal file
15
pkgs/servers/monitoring/prometheus/statsd-bridge_deps.json
Normal file
@ -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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -10188,7 +10188,7 @@ in
|
|||||||
prometheus-nginx-exporter = callPackage ../servers/monitoring/prometheus/nginx-exporter.nix { };
|
prometheus-nginx-exporter = callPackage ../servers/monitoring/prometheus/nginx-exporter.nix { };
|
||||||
prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix { };
|
prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix { };
|
||||||
prometheus-pushgateway = callPackage ../servers/monitoring/prometheus/pushgateway.nix { };
|
prometheus-pushgateway = callPackage ../servers/monitoring/prometheus/pushgateway.nix { };
|
||||||
prometheus-statsd-bridge = goPackages.prometheus.statsd-bridge.bin // { outputs = [ "bin" ]; };
|
prometheus-statsd-bridge = callPackage ../servers/monitoring/prometheus/statsd-bridge.nix { };
|
||||||
|
|
||||||
psqlodbc = callPackage ../servers/sql/postgresql/psqlodbc { };
|
psqlodbc = callPackage ../servers/sql/postgresql/psqlodbc { };
|
||||||
|
|
||||||
|
@ -2595,21 +2595,6 @@ let
|
|||||||
sha256 = "0pj3gzw9b58l72w0rkpn03ayssglmqfmyxghhfad6mh0b49dvj3r";
|
sha256 = "0pj3gzw9b58l72w0rkpn03ayssglmqfmyxghhfad6mh0b49dvj3r";
|
||||||
};
|
};
|
||||||
|
|
||||||
prometheus.statsd-bridge = buildFromGitHub {
|
|
||||||
rev = "0.1.0";
|
|
||||||
owner = "prometheus";
|
|
||||||
repo = "statsd_bridge";
|
|
||||||
sha256 = "1fndpmd1k0a3ar6f7zpisijzc60f2dng5399nld1i1cbmd8jybjr";
|
|
||||||
buildInputs = [ fsnotify.v0 prometheus.client_golang ];
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
properties = buildFromGitHub {
|
properties = buildFromGitHub {
|
||||||
rev = "v1.5.6";
|
rev = "v1.5.6";
|
||||||
owner = "magiconair";
|
owner = "magiconair";
|
||||||
|
Loading…
Reference in New Issue
Block a user