0

I am trying to understand which datatype is right choice to monitor revenue metric in Prometheus.

Datta Diware
  • 602
  • 1
  • 5
  • 16

1 Answers1

1

A Gauge is appropriate because your revenue value (per period of time) may increase|decrease and you can set a Gauge to any float value.

You can then use sum_over_time (e.g. a month) to aggregate the (e.g. daily) revenue represented by the Gauge measurements.

The only unit measure alternative is a Counter but Counter values may only increase in value.

Prometheus Metric Types

DazWilkin
  • 32,823
  • 5
  • 47
  • 88