<p>I installed a test cluster using Minikube. Also I've installed Prometheus, Grafana &amp; Loki using helm chart. I want to output two metrics, but I don't know how. First metric is half done, but for some reason, it is not output if you put the mount point &quot;/&quot;, and I need the metric itself with it, which is needed:</p>
<ol>
<li><p>Percentage of free disk space — mount point ‘/’, exclude tmpfs</p>
<pre><code> node_filesystem_avail_bytes{fstype!='tmpfs'} / node_filesystem_size_bytes{fstype!='tmpfs'} * 100
</code></pre>
</li>
<li><p>second metric: Number of API servers running. I don't know how to get it out.</p>
</li>
</ol>

Iceforest
<p>I solved the problem on my own
first metric they did not change it, since there is no such mountpoint /</p>
<p>second metric
count(kube_pod_info{pod=~&quot;.<em>apiserver.</em>&quot;,namespace=&quot;..&quot;})</p>
