<p>We are running nearly 100 instances in Production for kubernetes cluster and using prometheus server to create Grafana dashboard. To monitor the disk usage , below query is used</p>
<pre><code>(sum(node_filesystem_size_bytes{instance=~&quot;$Instance&quot;}) - sum(node_filesystem_free_bytes{instance=~&quot;$Instance&quot;})) / sum(node_filesystem_size_bytes{instance=~&quot;$Instance&quot;})
</code></pre>
<p>As Instance ip is getting replaced and we are using nearly 80 instances, I am getting error as &quot;Request URI too large&quot;.Can someone help to fix this issue</p>

Ikigai11
<p>You only need to specify the instances once and use the <a href="https://prometheus.io/docs/prometheus/latest/querying/operators/#one-to-one-vector-matches" rel="nofollow noreferrer"><code>on</code> matching operator</a> to get their matching series:</p>
<pre><code>(sum(node_filesystem_size_bytes{instance=~&quot;$Instance&quot;})
  - on(instance) sum(node_filesystem_free_bytes))
/ on(instance) sum(node_filesystem_size_bytes)
</code></pre>
<p>Consider also adding a unifying label to your time series so you can do something like <code>...{instance_type=&quot;group-A&quot;}</code> instead of explicitly specifying instances.</p>
