Monitoring Stack Troubleshooting Guide¶
What You'll Learn¶
- A debug order that finds the broken component quickly
- Fixes for empty dashboards, down targets, missing logs, and failing probes
- How to apply configuration changes and reset the lab safely
This page collects the most common issues you may hit while running the monitoring lab locally.
Grafana Starts but Shows No Data¶
Check:
- Prometheus is healthy
- Targets are up in Prometheus
- Grafana data sources loaded correctly
Prometheus Targets Show Down¶
Check:
- Exporter container names and ports
- Docker network connectivity
- Scrape job definitions in
prometheus/prometheus.yml
Loki Runs but Logs Do Not Appear¶
Check:
- The collector (Grafana Alloy, or Promtail in older setups) can read the Docker socket and
/var/log - Loki is healthy
- Grafana has the Loki data source
Blackbox Probes Fail¶
Check:
- The target endpoint is reachable
- Probe target names are correct
- Docker service networking resolves correctly
blackbox/blackbox.ymluses the expected module
Host Port Conflicts¶
This usually happens when something else already uses 3000, 8080, or 9090.
Check:
- Which local process already owns the port
- Whether the
docker-compose.ymlhost mapping needs to change
Config Changes Do Not Take Effect¶
Try:
If you need a full reset:
Practical Debug Order¶
- Check container status.
- Review service logs.
- Test health endpoints.
- Review Prometheus targets.
- Check Grafana data sources and dashboards.
Common Mistakes¶
- Restarting everything before checking which component is actually failing.
- Running
docker compose down -vto "fix" a problem and deleting all stored metrics, logs, and dashboards. - Debugging Grafana panels before confirming Prometheus targets are up.
- Editing configuration inside running containers instead of the mounted files, then losing the change on restart.
Interview Questions¶
- Grafana shows no data. What do you check, in order?
- A Prometheus target shows as down. What are the likely causes?
- Logs aren't appearing in Loki. How do you narrow down whether the collector or Loki is at fault?
Next¶
Continue to Kubernetes Observability & Health to apply the same signals inside a cluster.