<p>I'm using Kubernetes with kube-state-metrics and Prometheus/grafana to graph various metrics of the Kubernetes Cluster.</p>

<p>Now I'd like to Graph how many <strong>new</strong> PODs have been created per Hour over Time.</p>

<p>The Metric <code>kube_pod_created</code> contains the Creation-Timestamp as Value but since there is a Value in each Time-Slot, the following Query also returns Results >0 for Time-Slots where no new PODs have been created:</p>

<pre><code>count(rate(kube_pod_created[1h])) by(namespace)
</code></pre>

<p>Can I use the Value in some sort of criteria to only count if Value is within the "current" Time-Slot ?</p>

<p>PODs created in past hour</p>
<p><code>count ( (time() - sum by (pod) (kube_pod_created))  &lt;  60*60 )</code></p>
