Re: [prometheus-users] A query on rate

2021-01-16 Thread Julius Volz
I meant, "Rates coming from two different pods" -> "Counters coming from two different pods" On Sat, Jan 16, 2021 at 4:48 PM Julius Volz wrote: > Hi Manish, > > Rates coming from two different pods will be separate time series, as you > said. If you apply the rate() function to them, then the ra

Re: [prometheus-users] A query on rate

2021-01-16 Thread Julius Volz
Hi Manish, Rates coming from two different pods will be separate time series, as you said. If you apply the rate() function to them, then the rate of increase will be calculated separately for each of the series. You can then choose to sum up those multiple rates to get a total rate of increase ov

[prometheus-users] A query on rate

2021-01-15 Thread Manish G
Hi All, rate function handles restarts if metrics is of counter type, as documentation tells. But how is it of help in something like kubernetes environment. For eg, we have application running on several pods and metrics scraped by prometheus has pod id as one of the label. So if a pod goes away