JMX Exporter converting real numbers into 64 bit floats

51 views
Skip to first unread message

Rip Jal

unread,
Mar 8, 2021, 6:05:42 AM3/8/21
to Prometheus Users
Checking on JMX exporter localhost end point,I see that metrics ( like java_lang_Memory_HeapMemoryUsage_committed  )get converted into double values with E notation so 613941248 gets converted into 6.13941248E8.
We are using JMX exporter to publish values on the endpoint and then doing some internal monitoring on top of that.  
Is it possible to export such values in real format ?

Matthias Rampke

unread,
Mar 8, 2021, 6:27:02 AM3/8/21
to Rip Jal, Prometheus Users
No, the Prometheus exposition format supports only floats, so there is no way to force the client libraries to integers. If you are parsing it independently, you will need to accept floating point values.

/MR

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/a735e483-e5b0-41fc-a273-0523b2de332an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages