[collectd] Plugin:GenericJMX -- Best Practices to monitor 2 JVMs on same host

Poil poil at quake.fr
Wed Aug 7 19:41:21 CEST 2013


Hi,

I collect Karaf and cassandra on a same host
I use somethink like this

   <Plugin  "GenericJMX">
     <MBean  "cassandra/classes">
       ObjectName "java.lang:type=ClassLoading"
       InstancePrefix "cassandra_java"
       <Value>
         Type "gauge"
         InstancePrefix "loaded_classes"
         #InstanceFrom ""
         Table false
         Attribute "LoadedClassCount"
       </Value>
     </MBean>

     <MBean  "karaf/classes">
       ObjectName "java.lang:type=ClassLoading"
       InstancePrefix "karaf_java"
       #InstanceFrom ""
  
       <Value>
         Type "gauge"
         InstancePrefix "loaded_classes"
         #InstanceFrom ""
         Table false
         Attribute "LoadedClassCount"
       </Value>
     </MBean>

<Connection>
Collect "karaf/classes"
  Collect "cassbandra/classes"
</Connection>

More info https://github.com/Poil/CGraphz/wiki/GenericJMX

regards

Le 07/08/2013 12:54, Alexzander thunder Shevchenko a écrit :
> Hi.
>
> I wonder how I can get same values for more than one JVMs?
> I have MBeans for heap/nonheap memory values and I want to collect 
> this data from 2JVMs. But prefix for rrd's I can setonly in MBeans 
> block, but not in Connection block. I can setup two or more Connection 
> block, but I will get an error "update failed"-blah-blah-blah since it 
> tries to write the same rrd's. I see the only way to set MBean blocks 
> with different InstancePrefixes... I dont want to override Hostname 
> property in Connection block. Is there is another way to do this?
>
> Thanks,
>




More information about the collectd mailing list