<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;'><font face="courier new, courier, monospace">Hi all I need some help from your goodselves in the Collectd community. </font><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">I've got a strange one here and I'm having trouble trying to sorting it, I've configured collectd with the GenericJMX plugin and I've got some of the metrics being collected under collectd.myvm1.* e.g.</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">collectd.myvm1.GenericJMX-memory.jmx_memory-heap-used</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">However a couple of entries appear under "collectd.myvm1.* e.g.</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><span style="font-family: 'courier new', courier, monospace; ">"collectd.myvm1.GenericJMX-request_processor-ajp-bio-8009\".</span></div><div><span style="font-family: 'courier new', courier, monospace; ">"collectd.myvm1.GenericJMX-request_processor-http-bio-8080\".</span></div><div><span style="font-family: 'courier new', courier, monospace; "><br></span></div><div><span style="font-family: 'courier new', courier, monospace; ">So I get two collectd top levels one clean and one starting with a double quote e.g. collectd.myvm1.* and "collectd.myvm1.*</span></div><div><span style="font-family: 'courier new', courier, monospace; "><br></span></div><div><font face="courier new, courier, monospace">I had some issues initially with the ajp-bio and http-bio being surrounded by escaped double quotes but </font><span style="font-family: 'courier new', courier, monospace; ">faxm0dem on #collectd helped me out so I got rid those but I can't figure out how to lose the final two surrounding the collectd string. </span></div><div><br></div><div><font face="courier new, courier, monospace">Here's my configuration:</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">===================Start Here====================</font></div><div><font face="courier new, courier, monospace"><div>LoadPlugin "java"</div><div><br></div><div>LoadPlugin "match_regex"</div><div>LoadPlugin "target_replace"</div><div><Chain PreCache></div><div> <Rule unquote></div><div> <Match regex></div><div> Plugin "^GenericJMX$"</div><div> </Match></div><div> <Target replace></div><div> Plugin "\"" ""</div><div> </Target></div><div> </Rule></div><div></Chain></div><div><br></div><div><Plugin "java"></div><div><br></div><div> JVMArg "-verbose:jni"</div><div> JVMARG "-Djava.class.path=/usr/share/collectd5/java/generic-jmx.jar:/usr/share/collectd5/java/collectd-api.jar"</div><div> LoadPlugin "org.collectd.java.GenericJMX"</div><div><br></div><div> <Plugin "GenericJMX"></div><div> ################</div><div> # MBean blocks #</div><div> ################</div><div> # Number of classes being loaded.</div><div> <MBean "classes"></div><div> ObjectName "java.lang:type=ClassLoading"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div><br></div><div> <Value></div><div> Type "gauge"</div><div> InstancePrefix "loaded_classes"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "LoadedClassCount"</div><div> </Value></div><div> </MBean></div><div><br></div><div> # Time spent by the JVM compiling or optimizing.</div><div> <MBean "compilation"></div><div> ObjectName "java.lang:type=Compilation"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div><br></div><div> <Value></div><div> Type "total_time_in_ms"</div><div> InstancePrefix "compilation_time"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "TotalCompilationTime"</div><div> </Value></div><div> </MBean></div><div><br></div><div> # Garbage collector information</div><div> <MBean "garbage_collector"></div><div> ObjectName "java.lang:type=GarbageCollector,*"</div><div> InstancePrefix "gc-"</div><div> InstanceFrom "name"</div><div><br></div><div> <Value></div><div> Type "invocations"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "CollectionCount"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "total_time_in_ms"</div><div> InstancePrefix "collection_time"</div><div> #Instance>From ""</div><div> Table false</div><div> Attribute "CollectionTime"</div><div> </Value></div><div><br></div><div># # Not that useful, therefore commented out.</div><div># <Value></div><div># Type "threads"</div><div># #InstancePrefix ""</div><div># #InstanceFrom ""</div><div># Table false</div><div># # Demonstration how to access composite types</div><div># Attribute "LastGcInfo.GcThreadCount"</div><div># </Value></div><div> </MBean></div><div><br></div><div> ######################################</div><div> # Define the "jmx_memory" type as: #</div><div> # jmx_memory value:GAUGE:0:U #</div><div> # See types.db(5) for details. #</div><div> ######################################</div><div><br></div><div> # Generic heap/nonheap memory usage.</div><div> <MBean "memory"></div><div> ObjectName "java.lang:type=Memory"</div><div> #InstanceFrom ""</div><div> InstancePrefix "memory"</div><div><br></div><div> # Creates four values: committed, init, max, used</div><div> <Value></div><div> Type "jmx_memory"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div> Table true</div><div> Attribute "HeapMemoryUsage"</div><div> InstancePrefix "heap-"</div><div> </Value></div><div><br></div><div> # Creates four values: committed, init, max, used</div><div> <Value></div><div> Type "jmx_memory"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div> Table true</div><div> Attribute "NonHeapMemoryUsage"</div><div> InstancePrefix "nonheap-"</div><div> </Value></div><div> </MBean></div><div><br></div><div> # Memory usage by memory pool.</div><div> <MBean "memory_pool"></div><div> ObjectName "java.lang:type=MemoryPool,*"</div><div> InstancePrefix "memory_pool-"</div><div> InstanceFrom "name"</div><div><br></div><div> <Value></div><div> Type "jmx_memory"</div><div> #InstancePrefix ""</div><div> #InstanceFrom ""</div><div> Table true</div><div> Attribute "Usage"</div><div> </Value></div><div> </MBean></div><div><br></div><div> ### MBeans by Catalina / Tomcat ###</div><div> # The global request processor (summary for each request processor)</div><div> <MBean "catalina/global_request_processor"></div><div> ObjectName "Catalina:type=GlobalRequestProcessor,*"</div><div> InstancePrefix "request_processor-"</div><div> InstanceFrom "name"</div><div><br></div><div> <Value></div><div> Type "io_octets"</div><div> InstancePrefix "global"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "bytesReceived"</div><div> Attribute "bytesSent"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "total_requests"</div><div> InstancePrefix "global"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "requestCount"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "total_time_in_ms"</div><div> InstancePrefix "global-processing"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "processingTime"</div><div> </Value></div><div> </MBean></div><div><br></div><div> # Details for each request processor</div><div> <MBean "catalina/detailed_request_processor"></div><div> ObjectName "Catalina:type=RequestProcessor,*"</div><div> InstancePrefix "request_processor-"</div><div> InstanceFrom "worker"</div><div><br></div><div> <Value></div><div> Type "io_octets"</div><div> #InstancePrefix ""</div><div> InstanceFrom "name"</div><div> Table false</div><div> Attribute "bytesReceived"</div><div> Attribute "bytesSent"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "total_requests"</div><div> #InstancePrefix ""</div><div> InstanceFrom "name"</div><div> Table false</div><div> Attribute "requestCount"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "total_time_in_ms"</div><div> InstancePrefix "processing-"</div><div> InstanceFrom "name"</div><div> Table false</div><div> Attribute "processingTime"</div><div> </Value></div><div> </MBean></div><div><br></div><div> # Thread pool</div><div> <MBean "catalina/thread_pool"></div><div> ObjectName "Catalina:type=ThreadPool,*"</div><div> InstancePrefix "request_processor-"</div><div> InstanceFrom "name"</div><div><br></div><div> <Value></div><div> Type "threads"</div><div> InstancePrefix "total"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "currentThreadCount"</div><div> </Value></div><div><br></div><div> <Value></div><div> Type "threads"</div><div> InstancePrefix "running"</div><div> #InstanceFrom ""</div><div> Table false</div><div> Attribute "currentThreadsBusy"</div><div> </Value></div><div> </MBean></div><div><br></div><div> #####################</div><div> # Connection blocks #</div><div> #####################</div><div> <Connection></div><div> ServiceURL "service:jmx:rmi:///jndi/rmi://localhost:8686/jmxrmi"</div><div> User "jmxmonitoruser"</div><div> Password "mypassword"</div><div> Host "myhost"</div><div> Collect "classes"</div><div> Collect "compilation"</div><div> Collect "garbage_collector"</div><div> Collect "memory"</div><div> Collect "memory_pool"</div><div> Collect "catalina/global_request_processor"</div><div> Collect "catalina/detailed_request_processor"</div><div> Collect "catalina/thread_pool"</div><div> </Connection></div><div> </Plugin></div><div></Plugin></div></font></div><div><font face="courier new, courier, monospace">=================================================</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">Cheers</font></div><div><font face="courier new, courier, monospace"><br></font></div><div><font face="courier new, courier, monospace">-Martin</font></div> </div></body></html>