diff options
Diffstat (limited to 'pkgs/servers/monitoring/prometheus/jmx-httpserver.nix')
-rw-r--r-- | pkgs/servers/monitoring/prometheus/jmx-httpserver.nix | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/pkgs/servers/monitoring/prometheus/jmx-httpserver.nix b/pkgs/servers/monitoring/prometheus/jmx-httpserver.nix deleted file mode 100644 index 9326e5bdff3f..000000000000 --- a/pkgs/servers/monitoring/prometheus/jmx-httpserver.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ lib, stdenv, fetchurl, jre, makeWrapper }: - -stdenv.mkDerivation rec { - pname = "jmx-prometheus-httpserver"; - version = "0.15.0"; - - jarName = "jmx_prometheus_httpserver-${version}-jar-with-dependencies.jar"; - - src = fetchurl { - url = "mirror://maven/io/prometheus/jmx/jmx_prometheus_httpserver/${version}/${jarName}"; - sha256 = "0fr3svn8kjp7bq1wzbkvv5awylwn8b01bngj04zvk7fpzqpgs7mz"; - }; - - nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ jre ]; - - dontUnpack = true; - - installPhase = '' - mkdir -p $out/libexec - mkdir -p $out/bin - cp $src $out/libexec/$jarName - makeWrapper "${jre}/bin/java" $out/bin/jmx_prometheus_httpserver --add-flags "-jar $out/libexec/$jarName" - ''; - - meta = with lib; { - homepage = "https://github.com/prometheus/jmx_exporter"; - description = "Process for exposing JMX Beans via HTTP for Prometheus consumption"; - mainProgram = "jmx_prometheus_httpserver"; - sourceProvenance = with sourceTypes; [ binaryBytecode ]; - license = licenses.asl20; - maintainers = [ maintainers.offline ]; - platforms = platforms.unix; - }; -} |