My data is collected in 5 minutes, so I need to add sum_over_time,
otherwise some points will be lost,I try to use
*sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m])-sum_over_time(isphone{name="qq",exname!~"test|test1"}[5m])
offset 5m )*, but this will prompt a syntax error. I haven't thought of a
better way. I hope to get help. Thank you very much.li yun <[email protected]> 于2020年10月16日周五 上午10:32写道: > Because my data is collected every 5 minutes, I use sum_over_time. If I > don’t use it, it may not be possible to draw the graph at some points. > > Brian Candler <[email protected]> 于2020年10月14日周三 上午2:28写道: > >> To take the difference between an instance vector as it is now and how it >> was 5 minutes ago: >> >> foo - foo offset 5m >> >> However that doesn't explain why your delta(...) expression doesn't >> work. Can you show the input data, what output data you get, and what >> output you expected to see? >> >> It also doesn't explain why you want to use sum_over_time(...). What >> does this metric represent? >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Prometheus Users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/prometheus-users/yS43RBTGls4/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/prometheus-users/5e457d67-6f4c-4885-b51c-5db9d7662620o%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/5e457d67-6f4c-4885-b51c-5db9d7662620o%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- 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/CAO63JBbj01bD6VpMKHYMvb3hUy5JZ1vsYwqVQgt_VbbQ7Gynyw%40mail.gmail.com.

