We want to get the data per thread utilization for a java process using logstash-jmx plugin as well as the name of the thread which is currently running for that java process.
Can you help on this so that we can do the configuration changes to get all the thread name which are currently running with there utilization.
We are using below configuration to get the details but we are not getting the proper information.
"queries" : [
{
"object_name" : "java.lang:type=Threading",
"operation" : "getThreadMXBean",
"object_alias" : "Threading",
"arguments" : [ true,true ]
}, {
"object_name" : "java.lang:type=Runtime",
"attributes" : [ "Uptime", "StartTime" ],
"object_alias" : "Runtime"
}, {
"object_name" : "java.nio:type=BufferPool,name=",
"object_alias" : "{type}.{name}"
}]