Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple target instances not supported for now #181

Closed
WillCup opened this issue Aug 25, 2017 · 4 comments
Closed

Multiple target instances not supported for now #181

WillCup opened this issue Aug 25, 2017 · 4 comments

Comments

@WillCup
Copy link

WillCup commented Aug 25, 2017

Just to support.

here is the patch pull request

and patch file
support_multiple_jmx_instance.patch

@WillCup WillCup closed this as completed Sep 1, 2017
@i4yyds
Copy link

i4yyds commented Jan 2, 2024

请问您提供的这个代码,是可以让jmx_exporter支持同时采集多个jmx端口(实例)吗?

@dhoard
Copy link
Collaborator

dhoard commented Jan 2, 2024

@i4yyds 不。每个 Java 进程需要使用一个导出器。最好使用 Java 代理版本。(No. You need to use one exporter per Java process. Preferably using the Java agent version.)

@i4yyds
Copy link

i4yyds commented Jan 3, 2024

@dhoard 但是我看到您的代码support_multiple_jmx_instance.patch,不是可以支持多个jmx实例吗?我想使用jmx-exporter获取java的jvm数据,目前来看jmx_exporter是Java应用端改动最小的方案(只需要在java启动命令中添加参数即可,其他的如spring actuator改动都比较大)。请问您知道有没有其他的让jmx-exporter同时连接多个jmx实例的方法呢?

@dhoard
Copy link
Collaborator

dhoard commented Jan 3, 2024

@i4yyds 虽然此问题附加了补丁,但未集成。 将一个 JMX Exporter 用于多个应用程序的用例不是我们想要支持的模式。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants