<p>I want to show the percentage of the server (or service) uptime in Grafana for the last month.
The monitoring service collects data with Prometheus node exporter.</p>
<pre><code>uptime % = ( up / down ) * 100
</code></pre>

Mohammad Reza Mousavi
<p>As <a href="https://stackoverflow.com/users/4653675/marcelo-%C3%81vila-de-oliveira">MarceloÁviladeOliveira</a> said I used Black-Box Exporter with this PromQL :</p>
<pre><code>avg_over_time(probe_success{job=&quot;$job&quot;,instance=~&quot;$instance&quot;}[30d]) * 100
</code></pre>
