Label replace over a range vector in Prometheus
问题 I want to find the sum number of alerts for all the pods starting with "sendsms" over 10minutes. I am able to do use label_replace() to do this on the instant vector. But when i want to do this for over 10 minutes data, it cannot work as label_replace only works on instant vector. Explaining the problem with an example: ALERTS{alertname="CPUThrottlingHigh",pod="sendsms-dbed"} 10 ALERTS{alertname="CPUThrottlingHigh",pod="sendsms-ebed"} 20 ALERTS{alertname="CPUThrottlingHigh",pod="sendsms-fbed"