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 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/e8f53cf2-3b42-46d6-a398-08f3eea09614n%40googlegroups.com.