jmxtrans / jmxtrans-agent

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

skip NaN value in StatsDOutputWriter #151

Closed zhengyd2014 closed 3 years ago

zhengyd2014 commented 3 years ago

skip "NaN" or "INF" value in StatsDOutputWriter

this is for resolving issue when integrates jmxtrans-agent with Kafka Connect. the MBean of kafka connect sometimes emits NaN as the value for StatsDOutputWriter as the following.

can't enable for offset-commit-max-time-ms, err msg as Invalid value "dynamostreamskafkaconector.task.offset-commit-max-time-ms,connector=firehose-connector,task=1:NaN|g" supplied (NaN or INF)

cyrille-leclerc commented 3 years ago

Many thanks @zhengyd2014 !

cyrille-leclerc commented 3 years ago

@zhengyd2014 can you please test https://github.com/jmxtrans/jmxtrans-agent/releases/tag/jmxtrans-agent-1.2.11-rc-1 , once you confirm it works for you, I'll cut a GA release.