On 10/17/20 2:31 AM, li yun wrote:
> sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m
> ])-sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m])offset 5m

Try placing the offset modifier right next to the metric name:

sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m]) -
sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m] offset 5m)

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/bcd245d0-3315-f78c-209b-dec613d75cc5%40hoffmann-christian.info.

Reply via email to