title: How to sum 15 second intervals within 1 minute window in prometheus?
body: <p>I have prometheus operator which scrapes a metric every 15 seconds:
  <a href="https://i.stack.imgur.com/QwYFa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QwYFa.png" alt="enter image description here"></a></p>
  
  <p>I would like to "zoom out a bit" and show a sum of my latencies per 1 minute instead. However, I can't find a query to do so. I tried various options with <code>rate()</code> and <code>sum_over_time()</code>, but queries simply error out. </p>
  
  <p>I also tried changing this option:
  <a href="https://i.stack.imgur.com/BBp0W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BBp0W.png" alt="enter image description here"></a>
  to 1 m. What happened is 3 out of 4 15second intervals just got omitted. Instead of summing all my 15 second results in a minute. </p>
  
  <p>How could I achieve the desired result?</p>