【发布时间】:2021-09-29 03:06:21
【问题描述】:
在官方 git 存储库 (https://github.com/prometheus/jmx_exporter) 中,我看到我需要使用此命令“java -javaagent:./jmx_prometheus_javaagent-0.16.1.jar=8080:config.yaml -jar yourJar.jar "。我在我的 Eclipse 中运行我的 Spring Boot 应用程序,而没有以 jar 格式编译。
那么,如何在不将 spring 应用程序编译到 jar 文件中的情况下从 jmx 导出器获取指标。谁能帮我解决这个问题。
【问题讨论】:
标签: java spring spring-boot prometheus jmx-exporter