I'm trying to build a basic SRE dashboard in order to learn Prometheus/Grafana.
I want to calculate the number of hours the service has been running & the number of hours its been down since the 1st January of the current year so that I can reduce the downtime hours from the error budget. Could a PromQL query be used to calculate this?
I would prefer to use a metric such as up
which would be available regardless of the exporter/client library used.