Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do some prometheus metric values return +Inf

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 ?

Inf+ metric values

Additional info:

This data is coming from a Gauge metric type

The query is a simple sum query. ie. sum(my_metric)

like image 316
ap.dev Avatar asked Nov 21 '25 05:11

ap.dev


1 Answers

+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.

like image 120
Armatorix Avatar answered Nov 24 '25 17:11

Armatorix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!