通过Golang访问JMX

我需要通过TCP访问正在运行的进程的JMX。 我无法在Jolokia等机器上安装第三方实用程序,以使JMX可以通过HTTP访问。 有没有可以让Golang讲JMX或Java RMI的库? JMX客户端是否以我可以用作Golang端口启发的任何非JVM语言实现? 读写访问都比较可取,但我会选择只读。</ p>
</ div>

展开原文

原文

I need to access JMX of a running process via TCP. I can't install third party utilities on the machine such as Jolokia to make JMX accessible via HTTP. Is there a library that will let Golang speak JMX or Java RMI? Has a JMX client been implemented in any non-JVM language that I can use as inspiration for a Golang port? Both read and write access would be preferable but I'll settle for read-only.

1个回答



不知道是否有一种方法可以在没有jolokia的情况下使用golang与JMX进行通信。 我已经使用golokia项目完成了该工作,我对此进行了分叉并进行了一些更改。</ p>

在这里,希望对您有所帮助。</ p>

https://github.com/joaoh82/golokia </ p>
</ div>

展开原文

原文

Don't know if there is a way to talk to JMX in golang without jolokia. I've done it using the golokia project which I forked and made some changes.

Here it is, hope it helps.

https://github.com/joaoh82/golokia

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐