Access JMX via Golang
Asked Answered
D

1

11

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.

Daemon answered 27/2, 2017 at 10:55 Comment(0)
C
3

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

Choreography answered 14/3, 2019 at 12:5 Comment(1)
This lib is a Jolokia wrapper, so it doesn't answer the questionFacultative

© 2022 - 2024 — McMap. All rights reserved.