mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #311908 from srhb/prometheus-jmx-javaagent
prometheus-jmx-javaagent: init at 0.20.0
This commit is contained in:
commit
92f31e28bb
1 changed files with 36 additions and 0 deletions
36
pkgs/by-name/pr/prometheus-jmx-javaagent/package.nix
Normal file
36
pkgs/by-name/pr/prometheus-jmx-javaagent/package.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenv.mkDerivation (
|
||||
finalAttrs:
|
||||
let
|
||||
jarName = "jmx_prometheus_javaagent-${finalAttrs.version}.jar";
|
||||
in
|
||||
{
|
||||
pname = "jmx-prometheus-javaagent";
|
||||
version = "0.20.0";
|
||||
src = fetchurl {
|
||||
url = "mirror://maven/io/prometheus/jmx/jmx_prometheus_javaagent/${finalAttrs.version}/${jarName}";
|
||||
sha256 = "sha256-i2ftQEhdR1ZIw20R0hRktIRAb4X6+RKzNj9xpqeGEyA=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
installPhase = ''
|
||||
env
|
||||
mkdir -p $out/lib
|
||||
cp $src $out/lib/${jarName}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/prometheus/jmx_exporter";
|
||||
description = "A process for exposing JMX Beans via HTTP for Prometheus consumption";
|
||||
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.srhb ];
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
)
|
Loading…
Reference in a new issue