-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add JVM plugin #144
Comments
@panda87 could you provide more details? |
Yes. There is a good project called jmxtrans: https://github.com/jmxtrans/jmxtrans Thanks. |
thanks @panda87 |
Very useful to consume jmx beans from JVM. Maybe I am wrong but Golokia is dedicated to Jolokia. Nice ideas ! |
FYI it should be possible to use httpjson plugin with jolokia. E.g. the following GET request:
will return
|
Hi, I tried to develop an experimental jolokia plugin. I really appreciate feedbacks and suggestions. |
@saiello 1st thing that stands out is that you should run I made a few comments, you'll also need to write some unit tests for us to merge it |
My suggestion \ question is if we will be able to consume MBeans which are not part of what you wrote. This could be by adding conf. file |
@sparrc i read your comment and I came up with this new version master...saiello:6de4a08944d6508a7f054a2640308c6a85fcf10b I will add some unit test later @panda87 of course. sample-config reports just some example. You can consume any Mbeans |
awesome, 👍, thanks @saiello. Send up a PR whenever you have something ready to merge :-) |
Hi! Do I understand, that the jolokia plugin is only for Jolokia-based agents? So I understand that this plugin is not going to support connecting to Remote JMX, that most of current java software use out of the box?(I think jolokia adoption is pretty narrow yet, while Remote JMX is wide). |
@sparrc @saiello i will be interested about question from @kzarzycki |
@kzarzycki @JulienChampseix I don't know the answer to this as I'm not familiar with remote JMX or Jolokia. @saiello it would be helpful if you could answer this, or if anyone else is familiar with the differences between Jolokia and Remote JMX. |
Hi, @kzarzycki yes this plugin is only for jolokia-based agent, and even though it would be awesome connecting directly to the JVM through the JMX protocol, I think it's not possible: JMX is a java world protocol based on RMI. From jolokia site(https://jolokia.org/about.html): Jolokia provide a easy way to access Mbeans exposing them through a restful interface. ( hawt.io for example uses it to connect to and manage remote JVMs http://hawt.io/faq/ ) |
First of all @saiello thanks for the Jolokia plugin and the effort. This is not an easy decision for us, but as you said the RMI protocol is only for java implementation, and we wanted to only use Telegraf as our monitoring system. |
I'm going to assume that Jolokia is the best we can do for JVM metrics, if anyone has additional feedback or ideas, please feel free to re-open. And thanks again @saiello for the Jolokia plugin! 😄 |
There are situations, where a deployment of an Jolokia agent on the target platform is not possible. This might be for political reasons or an already established JSR-160 export on the instrumented servers. In these environments, Jolokia can operate as a JMX Proxy. In this setup, the agent is deployed on a dedicated proxy JEE server (or other supported agent platform). The proxy bridges between Jolokia JSON request and responses to remote JSR-160 calls to the target server. |
I agree: this issue should be reopened so that telegraf would natively be able to consume JMX datas without going through Jolokia. |
+1 for native plugin to consume JMX metric |
+1 for natively reading JMX metrics |
+1 for native JMX metric plugin |
@lifeofasa my PR #2058 that implements this is still open! |
You PR #2058 has conflicts. It would be nice if this PR can be merged. Would be a nice addition to the Telegraf functionality without the necessity for other components... |
Use jmx protocols
The text was updated successfully, but these errors were encountered: