Interview Prep/Monitoring & Observability/Rapid-Fire PromQL & LogQL

Which scrape targets are down right now?

BeginnerProductionRapid-Fire PromQL & LogQL
Answer
up == 0

As a ratio per job: avg by (job) (up) < 0.9 alerts when more than 10% of a job's targets are down.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on Rapid-Fire PromQL & LogQL