Occasionally when I query prometheus using the api endpoint one or more of the metric values will be +Inf. What does +Inf mean and what causes a metric value to be +Inf ?

Additional info:
This data is coming from a Gauge metric type
The query is a simple sum query. ie. sum(my_metric)
+Inf stands for a positive infinite number, it would be easier if you would pass what are you measuring, but most probably you're getting this value because if dividing by 0.
Anyway, it's a normal value of float64.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With