Since I am prometheus-newbie I do not know how to express the question:
"What is the maximum number of messages which have been processed per second during the last day". The metric is named messages_in_total
I tried
max_over_time(messages_in_total{}[1d])
- but this returns the maximum of the counter valueincrease(messages_in_total{}[1d])
- but this returns the number the counter increasedWhat I really need would be something like (pseudocode)
Transform range vector which contains absolute messages_in_total to a range vector with which has a value for each second.
get the max out out of it
Example:
Any ideas?
It is possible.
Example query:
max_over_time(
irate( messages_in_total[2m] )[1d:1m]
)
This will:
irate( messages_in_total[2m] )
See subquery documentation for more information!