Class DefaultMetricNamingStrategy
- java.lang.Object
- org.springframework.boot.actuate.metrics.jmx.DefaultMetricNamingStrategy
- All Implemented Interfaces:
org.springframework.jmx.export.naming.ObjectNamingStrategy
public class DefaultMetricNamingStrategy extends Object implements org.springframework.jmx.export.naming.ObjectNamingStrategy
MBean naming strategy for metric keys. A metric name ofcounter.foo.bar.spam
translates to an object name withtype=counter
,name=foo
andvalue=bar.spam
. This results in a more or less pleasing view with no tweaks in jconsole or jvisualvm. The domain is copied from the input key and the type in the input key is discarded.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description DefaultMetricNamingStrategy()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectName
getObjectName(Object managedBean, String beanKey)
Constructor Detail
DefaultMetricNamingStrategy
public DefaultMetricNamingStrategy()
Method Detail
getObjectName
public ObjectName getObjectName(Object managedBean, String beanKey) throws MalformedObjectNameException
- Specified by:
getObjectName
in interfaceorg.springframework.jmx.export.naming.ObjectNamingStrategy
- Throws:
MalformedObjectNameException