Reputation: 330
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)
Upvotes: 3
Views: 5068
Reputation: 1128
+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.
Upvotes: 4