Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access JMX via Golang

Tags:

java

go

jmx

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.

like image 518
MrEvil Avatar asked Feb 27 '17 10:02

MrEvil


1 Answers

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

like image 127
Joao Henrique Avatar answered Oct 19 '22 00:10

Joao Henrique