title: sum of rate function in prometheus
body: <p>Given the following prometheus time series called <strong>requests</strong> :
  <a href="https://i.stack.imgur.com/pTFZm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pTFZm.png" alt="enter image description here" /></a></p>
  <p>the vector query <em><strong>requests[3 seconds]</strong></em> is :<br />
  <a href="https://i.stack.imgur.com/F3NHG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/F3NHG.png" alt="enter image description here" /></a></p>
  <p>and <em><strong>the rate of the vector query requests[3 seconds],  rate(requests[3 sec])</strong></em> (computed by the shown formula) is  :</p>
  <p><a href="https://i.stack.imgur.com/xbqLI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xbqLI.png" alt="enter image description here" /></a></p>
  <p>My question is : what is <em><strong>sum(rate(requests[3 sec]))</strong></em> evaluated at seconds 5, 4 and 3 respectively is it 16.5, 6.5 and 1. Any idea?</p>