jmxtrans / jmxtrans-agent

Java Agent based JMX metrics exporter.
MIT License
177 stars 110 forks source link

Allow a null query.resultAlias in JmxTransConfiguraionXmlLoader #120

Closed andhan closed 6 years ago

andhan commented 6 years ago

The ResultNameStrategyImpl#getResultName method has a default naming logic when query.getResultAlias() is null.

This default naming cannot currently be accessed when using the JmxTransConfigurationXmlLoader as this will create a query with an empty resultAlias rather than null when the resultAlias attribute is not set.

cyrille-leclerc commented 6 years ago

Thanks @andhan