[How much time was the given service (`node` job, in this case) `up` in the past period (`30d`)][]:
avg(avg_over_time(up{job="node"}[30d]))
...
...
@@ -906,19 +998,6 @@ day:
[How many hosts are online at any given point in time]:https://prometheus.torproject.org/graph?g0.expr=sum(count(up%3D=1))/sum(count(up))+by+(alias)
[How long did an alert fire over a given period of time]:https://prometheus.torproject.org/graph?g0.expr=sum_over_time(ALERTS{alertname%3D"MemFullSoon"}[1d:1s])
### Disk usage
This is a less strict version of the [`DiskWillFillSoon` alert][],
[Find disks that will be full in 6 hours]:https://prometheus.torproject.org/graph?g0.expr=predict_linear(node_filesystem_avail_bytes[6h],+24*60*60)+<+0
[Find disks that will be full in 6 hours]:https://prometheus.torproject.org/graph?g0.expr=predict_linear(node_filesystem_avail_bytes[6h],+24*60*60)+<+0