StatsDTelegrafWriter throws exception for NaN values

4 views
Skip to first unread message

Steve

unread,
Jun 3, 2019, 7:39:24 PM6/3/19
to jmxtrans
java.lang.IllegalArgumentException: Only numeric values are supported, enable debug log level for more details.
at com.googlecode.jmxtrans.model.output.StatsDTelegrafWriter.computeActualValue(StatsDTelegrafWriter.java:132)
at com.googlecode.jmxtrans.model.output.StatsDTelegrafWriter.write(StatsDTelegrafWriter.java:97)
at com.googlecode.jmxtrans.model.output.support.WriterPoolOutputWriter.doWrite(WriterPoolOutputWriter.java:68)
at com.googlecode.jmxtrans.jmx.ResultProcessor$1.run(ResultProcessor.java:63)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

This is in a query with a single attribute with a list of key:value pairs in a map.
It just take one of the keys to be NaN to prevent ALL results from the query to fail to be written.
They should be ignored just like String values.
Looks like something was done about it for statsdwriter2 but not telegraf
Reply all
Reply to author
Forward
0 new messages