-
Notifications
You must be signed in to change notification settings - Fork 813
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
[jmxfetch] add list_jvms
command
#2962
Conversation
822da35
to
8dd6282
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Shouldn't the jmxfetch version be updated ? |
Won't merge this for 5.10.0 unless there are other JMXFetch-related changes we want to ship with 5.10.0 |
8dd6282
to
be642ba
Compare
be642ba
to
95dced2
Compare
New `list_jvms` command. > List available Java virtual machines on the system using the Attach API. See DataDog/jmxfetch#112
95dced2
to
58e33ac
Compare
Any chance of getting this released soon? Thanks. |
Thanks for your feedback @iancward! I'll work on merging and testing this for the next minor release of the agent ( About the JMXAttach connection method: Although we don't recommend it, if you need JMXFetch to be able to attach to other processes you can try to run JMXFetch as that other user by:
|
Thanks for the info @olivielpeau. I did find https://gist.github.com/olivielpeau/80b8c8f9d13d4644faee328ed178fb36 and had tried to use that, but ran into some issues. I added the user for the monitored process into the datadog group (and the datadog user to the monitored process user), and updated the permissions on the I ended up publishing JMX via RMI and configuring Datadog to monitor the JVMs that way. It was more configuration to manage, but definitely a lot less screwy business with files, permissions, and users. |
Oh, thanks for linking to that gist @iancward, I completely forgot I had written this... Using RMI probably makes more sense in the long run indeed. Unfortunately the Attach API has a few bugs on Oracle's JVM even when set up correctly, I think the bug you found was one of them... |
New
list_jvms
command.See DataDog/jmxfetch#112