Stackdriver adding custom JMX metrics, similar to jvm-sun-hotspot

147 Views Asked by At

I have been trying to monitor a custom JMX metrics using stackdriver, . I saw the below GIT page for fetching MBEAN metrics,

https://github.com/Stackdriver/stackdriver-agent-service-configs/blob/master/etc/collectd.d/jvm-sun-hotspot.conf

I require some additional custom metrics thats needs to be monitored from Stackdriver. Basically, i need openejb.management:ObjectType=datasources,DataSource=jdbc_db

I tried modifying the conf file from Github by removing the OOb Mbeans and added the custom MBEAN, and i changed the target set to

<Target "set"> MetaData "stackdriver_metric_type" "custom.googleapis.com/jvm/jmx/datasource/jdbc_db"

I see a new metric is getting propagated to Stack driver, but other OOb metrics are affected, Can anyone provide a conf file which i can deplot in /stackdriver/collectd/etc/collectd.d/ location which will sends the custom MBean to Stachdriver

0

There are 0 best solutions below