Over time functions are not supporting by/without syntax. Which is the mathematical difference between using avg_over_time(metric[1h]) and avg(metric[1h])? Can a over time function be replaced with a function (in this case avg) with the same results? Thanks!
The avg_over_time(m[d]) function performs the following:
md preceding every point on the graph.The avg(m) function performs the following:
mAs you can see, avg_over_time() and avg() are quite different functions - avg_over_time() calculates distinct average values for every selected time series, while avg() calculates average values across the selected time series.
Why can't you just use
avg(avg_over_time(m[d]))
instead of
sum(sum_over_time(m[d])) by (...) / sum(count_over_time(m[d])) by (...)
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