Monitoring classes being used by several applications.

Document ID : KB000032410
Last Modified Date : 14/02/2018
Show Technical Document Details



How do I monitor a class that is used by several applications?

Is there a way to configure the metric name in such a way that we could also see it on the application base?


For example:


"Custom Classes|{application}|{classname}



You can achieve this by using the directive {packageandclassname}.


Here is an example:


SetFlag: CustomClasses

TurnOn: CustomClasses


IdentifyMatchingClassesAs: "com.package.*" InstanceCounts


# Trace Complex Methods

TraceComplexMethodsIfFlagged: CustomClasses <tracer-name> "Custom Classes|{packageandclassname}|{method}:Average Response Time (ms)"

TraceComplexMethodsIfFlagged: CustomClasses PerIntervalCounter "Custom Classes|{packageandclassname}|{method}:Invocations per Interval"

TraceComplexMethodsIfFlagged: CustomClasses ConcurrentInvocationCounter "Custom Classes|{packageandclassname}|{method}:Concurrent Invocations"


Additional Information:


These below documents may help with your customization: