title: Prometheus Query for 24 hour snapshots
body: <p>is there a way to query prometheus and return 24hour snapshots of a metric over the course of a week?</p>
  <p>Details about the metric:</p>
  <ul>
  <li>Name: foo</li>
  <li>Type: Gauge</li>
  <li>Value: 1</li>
  </ul>
  <p>The metric is scraped every minute and the <code>value</code> will vary like so</p>
  <p><a href="https://i.stack.imgur.com/ADMNQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ADMNQ.png" alt="enter image description here" /></a></p>
  <p>I want to turn this into something that looks like</p>
  <p><a href="https://i.stack.imgur.com/HEQhI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HEQhI.png" alt="enter image description here" /></a></p>
  <p>Which is taking a rollup of all the values within a 24hour period and creating a single sum'd value for each day.</p>
  <p>Is this possible?</p>
  <p>Thanks!</p>