-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Float values causes agent to crash when sent via InfluxDbOutputWriter #91
Comments
Hello @BriacRONDI , I just discover your message, I had a notification issue. Could you capture more details? I suspect that |
I have identified a potential issue: big float values in java get formatted with an exponent
will return See #95 |
@kerlandsson can I get your feedback on this issue and on my PR #95 ? I suspect that we should be more strict than invoking I found in the official java client https://github.com/influxdata/influxdb-java/blob/influxdb-java-2.5/src/main/java/org/influxdb/dto/Point.java#L321 NumberFormat numberFormat = NumberFormat.getInstance(Locale.ENGLISH);
numberFormat.setMaximumFractionDigits(MAX_FRACTION_DIGITS);
numberFormat.setGroupingUsed(false);
numberFormat.setMinimumFractionDigits(1); |
Thank you for working on this issue. I will test your PR as soon as possible and will give you a feedback. |
According to https://github.com/influxdata/influxdb-java/blob/influxdb-java-2.5/src/main/java/org/influxdb/dto/Point.java#L321 The expected string for |
Fix should be ready at #95 |
…formatting [#91] InfluxDB - Decimal number formatting (float, double and BigDecimal)
Hello Guys,
I encountered a problem with the InfluxDbOutputWriter. The floating point metrics, for example :
java.lang:type=OperatingSystem > ProcessCpuLoad
causes jmxtrans-agent to crash.
Try this :
<query objectName="java.lang:type=OperatingSystem" attribute="ProcessCpuLoad" resultAlias="ProcessCpuLoad"/>
You will obtain :
WARNING [jmxtrans-agent-1] org.jmxtrans.agent.JmxTransExporter - Ignore exception flushing metrics java.lang.RuntimeException: Failed to write metrics, response code: 400, response message: Bad Request ...
My environment :
jmxtrans-agent : 1.2.4
InfluxDB : 1.1
Tomcat : 7.0.73
JRE : Oracle 1.8.0_72-b15
Thank you for your help
The text was updated successfully, but these errors were encountered: