I have a query regarding working of increase function.Suppose for a query I get multiple metrics in return(a use-case can be like an application running in multiple pods in kubernetes, so multiple sources for same metrics).I apply a 1h time window.mymetrics[1h])This results in metrics, say m1,m2, m3.m1 exists till somewhere in middle of the time window, m2 is there throughout the window, while m3 started somewhere in between of the window and exists till end.
So if I do:sum(increase(mymetrics[1h]))Would this take into account all 3? I mean would I get:increase(m1[1h])+ increase(m2[1h]) +increase(m3[1h])
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/d114496f-9c4a-4501-ab80-bfcbce98d37do%40googlegroups.com.
Going by (m1.2-m1.0)/(t2-t0) * 1h, even though m1 played out only for period t2-t0, we still multiply by 1h, and same for m3.So while increase() is expected to give absolute delta(m1.2-m1.0), it seems that's not the case.
Another concern: when we apply increase function, does the system divide whole of time line into that many time slots(total time/time window) and then we get one data point per slot? I am asking this because I observe that even for huge time slots like 3hours, I see continuou curve, something which is not possible if we get one data point per time slot.
--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c6036595-14ad-4b6e-bdad-d0794487d4f5o%40googlegroups.com.