In a Prometheus timeseries database, there are two sets of data (for M1 and M2) collected with following schema
Write a PromQL query that creates a new time-series N, that tracks the max(M1, M2) for each time period the query is run.
For example:

I tried using max(), but it takes only 1 argument.
metric1 > metric2 or metric2 > metric1
I think this does the max and works also when both metrics have the same set of labels.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With