I used Prometheus to measure business metrics like:
# HELP items_waiting_total Total number of items in a queue # TYPE items_waiting_total gauge items_waitin
If you want to ignore gaps, it is possible to use some aggregation_over_time functions to get your DATA from Prometheus.
max_over_time(items_waiting_total[900s])
This is useful for situations where frequent gathering of DATA is expensive for collector.