title: Im trying to calculate uptime in Grafana based on the successful responses from Prometheus blackbox exporter
body: <p>I've tried counting the number of probe_success and multiplying it by the probe interval trying to get uptime in seconds and setting the value type to the total. the issue is the minimum step changes as the time frame changes not giving us a correct reading and nulling this option. What we are actually trying to do is get the percentage uptime based on successful probes in the time frame set for the dashboard. We are using singlestat to show the percentage</p>
  
  <pre><code>(probe_success{instance="www.google.com:443",job="clienttest"})*15
  </code></pre>
  
  <p>We tried dividing the value by an exporter its self to try to get a percentage that would also scale to no avail.</p>
  
  <pre><code>sum(probe_success{instance="www.google.com:443",job="clienttest"}) / sum(probe_success{instance="self",job="clienttest"}) *100
  </code></pre>