13.7 Grafana — one calm dashboard
Grafana turns PromQL (or other data sources) into panels.
Steps — first badge API lab dashboard
- Install/run Grafana and log in with the credentials you set (change defaults; never leave default admin passwords on a public host).
- Add a Prometheus data source pointing at your Prometheus URL (often
http://localhost:9090in local labs — confirm yours). - Create a dashboard named
badge API lab host. - Add panels: CPU %, memory available/used, disk used % for
/. - Save the dashboard; refresh while you run
stressor a safe CPU loop only on a lab machine. - Screenshot for your notes (no PDFs required on the website — keep images in your own repo README if you want a portfolio).
What you see: lines move when load changes. If panels are empty, debug Prometheus targets first, then data source URL, then PromQL.
| Panel idea | Why |
|---|---|
| CPU % | Saturation |
| Memory | Catch pressure before OOM |
Disk used % on / |
Today's alert story |
| Uptime / scrape success | Is monitoring itself healthy? |
Ravindra Bagale's Tip
Dashboard var 40 panels — alert fatigue chi cousin. Teen clear panels + ek alert > wallpaper. Lakshat theva!