I want to get the difference between the current time and the past 5 
minutes, but I tried two methods and couldn’t get it

*1. delta(isphone{name="qq",exname!~"test|test1"}[5m]) *

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

If I execute sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m]) 
directly, the data can be displayed normally, but I can’t get the 
difference between now and five minutes ago. Can anyone have a way? ?

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Developers" 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-developers/9e398a18-c0d7-4851-91cc-cd3f8f80184fn%40googlegroups.com.

Reply via email to