Downtime of servers

Greetings, everyone.

I need some help. I would like to obtain the downtime of my servers through a Grafana dashboard. Could someone guide me on how to implement this or suggest the best approach?

do you have logs or metrics somewhere you can leverage? or some other datasource that shows dowtimes

We can achieve this using Grafana + Prometheus + Blackbox Exporter
Grafana itself doesn’t calculate downtime directly, so you need a datasource that continuously probes the servers
I implemented it locally by
Using blackbox to monitor server availability (probe_success)
Prometheus scraping the metrics
Grafana visualising uptime/downtime
probe_success = 1 → server up
probe_success = 0 → server down
Queries which i used
Current status → probe_success


Uptime % → avg_over_time(probe_success[1h]) * 100

Downtime minutes → (1 - avg_over_time(probe_success[1h])) * 60

Outage detection → probe_success == 0

This works well for real-time downtime monitoring