1.github
https://github.com/prometheus/jmx_exporter
2.dockerfile
FROM openjdk:alpine COPY jmx_exporter-parent-0.16.1 /apps/jmx_exporter-parent-0.16.1 WORKDIR /apps/jmx_exporter-parent-0.16.1 RUN ./mvnw package RUN mkdir -p /opt/bitnami/jmx-exporter RUN cp -r /apps/jmx_exporter-parent-0.16.1/example_configs /opt/bitnami/jmx-exporter/example_configs && cp /apps/jmx_exporter-parent-0.16.1/jmx_prometheus_httpserver/target/jmx_prometheus_httpserver-0.16.1.jar /opt/bitnami/jmx-exporter/jmx_prometheus_httpserver.jar && cp /apps/jmx_exporter-parent-0.16.1/jmx_prometheus_javaagent/target/jmx_prometheus_javaagent-0.16.1.jar /opt/bitnami/jmx-exporter/jmx_prometheus_javaagent.jar && cp /apps/jmx_exporter-parent-0.16.1/LICENSE /opt/bitnami/jmx-exporter/licenses WORKDIR /opt/bitnami/jmx-exporter/
3.运行命令
参考github的readme.md
标签:jmx,exporter,parent,0.16,apps,prometheus,源码 From: https://www.cnblogs.com/wdgde/p/16633313.html