<p>How can I check if some namespace is missing quota?</p>
<p>I expected the <code>absent()</code> function to return 1 when something doesn't exist and 0 when something exists.
So I tried to do the next query:</p>
<pre class="lang-yaml prettyprint-override"><code>absent(kube_namespace_labels) * on(namespace) group(kube_resourcequota) by(namespace)
</code></pre>
<p>But Prometheus returned <code>Empty query result</code>.</p>
<p>My final goal is to alert if some namespace is missing quota, how can I achieve this?</p>

<p>You can use a different query instead to have all namespaces where <code>resourcequota</code> is missing:</p>
<pre><code>count by (namespace)(kube_namespace_labels) unless sum by (namespace)(kube_resourcequota)
</code></pre>
