Currently Being Moderated
Hi,
the problem i see with your plugin is that you are not adding any metrics for your bean. only properties
you have:
<service name="MyApp">
<plugin type="autoinventory"/>
<property name="OBJECT_NAME" value="AOS:type=*,name=*"/>
<property name="OBJECT_NAME" value="AOS:type=Gauge-StatsMemoryUsed"/>
</service>
it isn't clear in the tutorial, but what they are doing is setting the OBJECT_NAME for each MBean they are monitoring, then including one of their <metrics> tags from the top to create a metric for each attribute from the MBean.
for instance, if you had a bean with an ObjectName = "AOS:name=Foo" and it had an attribute named "Bar", your service would look like this:
<service name="MyApp">
<plugin type="autoinventory"/>
<property name="OBJECT_NAME" value="AOS:name=Foo"/>
<metric name="Availablility" indicator="true"/>
<metric name="Bar" indicator="true" defaultOn="true"/>
</service>
this should find your service and you should have 2 metrics available: Availability and Bar.
Hope that helps,
Doug