3

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)

ap.dev
  • 320
  • 3
  • 11

1 Answers1

4

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

Armatorix
  • 1,083
  • 10
  • 23