Sorry, it's count_over_time <https://prometheus.io/docs/prometheus/latest/querying/functions/#aggregation_over_time> .
count_over_time(up[5m]) will show the number of attempted scrapes over 5 minutes (regardless of whether they were successful or not) There's also a subquery <https://prometheus.io/docs/prometheus/latest/querying/basics/#subquery> variation: count_over_time((up == 1)[5m:]) -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/c332e7ac-a8f0-41d3-83cc-f87410f45aae%40googlegroups.com.

