ap.dev
ap.dev

Reputation: 330

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)

Upvotes: 3

Views: 5068

Answers (1)

Armatorix
Armatorix

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

Related Questions