Values pushed to pushgateway are being modified #482
rajkamalhm
started this conversation in
General
Replies: 1 comment
-
Prometheus uses float64 for all metric values internally. This gives you 53 bits of precision, which "ought to be enough for anyone". ;) But it is indeed less than what a 64 bit integer gives you. There are very few valid use cases where the 53 bits of precision aren't sufficient. A discussion around if and how to address those rare use cases has happened for as long as Prometheus exists. Maybe Prometheus 3.x will address it. For the time being, the Pushgateway is just following along with the Prometheus data model. In your example above, you are pushing a very large integer, larger than 2^53, which explains the rounding you can see. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Report
What did you do?
What did you expect to see?
What did you see instead? Under which circumstances?
Environment
Linux 4.15.0-96-generic x86_64
The last 3 digits of the value are being modified by pushgateway. Tested on both untyped and counter type metrics and the results are the same.
EDIT:
Results from pushgateway
Beta Was this translation helpful? Give feedback.
All reactions