jmxtrans / jmxtrans-agent

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

Convert Boolean attribute into int metrics #115

Closed acl-oss closed 6 years ago

acl-oss commented 6 years ago

Graphite only supports numeric values. It is useful to be able to publish boolean attributes as binary metrics as sometimes we do not own the code that exposes those attributes.

This is a feature that is already supported by jmxtrans.

Apologies for the currently required disclaimer below! :)

This contribution is provided 'as is' and without any warranty or guarantee of any kind, express or implied, including in relation to its quality, suitability for a particular purpose or non-infringement. To the extent permitted by law, in no event shall the creator of this contribution be liable for any claim, damage or other liability, whether arising in contract, tort or otherwise, arising out of or in connection with this contribution.

cyrille-leclerc commented 6 years ago

Many thanks @acl-oss !

cyrille-leclerc commented 6 years ago

I have released jmxtrans-agent-1.2.7-beta-1, can you please verify that your change works as desired? https://github.com/jmxtrans/jmxtrans-agent/releases/tag/jmxtrans-agent-1.2.7-beta-1

acl-oss commented 6 years ago

Thanks Cyrille. It looks like it's working just fine.