<p>I am configuring Grafana using Prometheus queries</p>

<p>I would like to limit lists of results on all pods that are over 30% or to top 50</p>

<p>This is my query</p>

<pre><code>sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name!=""}[5m])) by (pod_name)
</code></pre>

<p>How can I add some comparison for this sum to be larger then 0.3</p>

Bob
<p>For "greater-than" queries:</p>

<pre><code>sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name!=""}[5m])) by (pod_name) &gt; 0.3
</code></pre>

<p>For top 50 queries:</p>

<pre><code>topk(50, sum(rate(container_cpu_usage_seconds_total{container_name!="POD",pod_name!=""}[5m])) by (pod_name))
</code></pre>
