May 11th, 2010, 05:53 AM
ManagedMetric functionality using Spring 2.5
@ManagedMetric in Spring 3.0 makes it very easy to make custom metrics available to Hyperic 4.2.
Now I'd like to do the same for an existing application based on Spring 2.5, where @ManagedMetric isn't available (Spring open source, not the instrumented version).
The way I understand it, @ManagedMetric is just a plain vanilla JMX attribute plus some naming conventions, so that Hyperic can auto-discover the attribute and deduce the metric type.
If that's correct, then it should be possible to achieve the same effect using a @ManagedAttribute and by following some naming conventions.
Can anyone confirm this, or even provide sample code?
Thanks in advance,
Last edited by dan.baumann; May 11th, 2010 at 05:54 AM.
Reason: clarified title