Diagnosing a Prometheus scrape outage
DemoUnavailable fires and the target cannot be scraped.
Problem
DemoUnavailable fires and the target cannot be scraped.
Cause
In the lab the demo application is stopped.
Solution
Correlate the alert in Alertmanager with the outage in Grafana. Start the demo app again. Verify that Prometheus up returns to 1 and the alert clears.
docker compose ps app
docker compose logs app