title: How to plot average per day from Prometheus
body: <p>I have to create a visualization from Prometheus metrics. I have a counter metrics <code>http_request_counter</code>, I wanted to show a summary of total requests served in a day. This is how I did when we had graphite as our data source.</p>
  <pre><code>alias(summarize(sumSeries(consolidateBy(nonNegativeDerivative(http_request_counter.count), 'sum')), '1d', 'sum', false), 'TPS per day')
  </code></pre>
  <p>I saw few documentations and tried with <code>increase(http_requests_total[24h])</code> which plotted the graph with <code>t-24h</code> values.</p>
  <p>Can someone help me find an equivalent of <code>summarize</code> function in prometheus please?</p>