Practical SRE Monitoring with Prometheus and Grafana
How to turn golden signals into SLOs, error budgets, and alerts that page only when error budget burn matters.
- Difficulty
- intermediate
- Prerequisites
- Prometheus and Grafana running, Instrumented services
- Tools
- Prometheus, Grafana
On this page
Dashboards are not monitoring. A polished Grafana screen with five panels is not an alert system, and both are symptoms of skipping the part that actually protects users: service level objectives, error budgets, and disciplined alerting.
Define SLOs before dashboards
Start with a single user journey and one SLO, such as successful requests per second above a target. Derive the error budget from it, then alert on budget burn instead of raw red dashboards.
# Error ratio per service over a 5 minute window
sum(rate(http_server_requests_total{status=~"5.."}[5m])) by (service)
/
sum(rate(http_server_requests_total[5m])) by (service)
Collect the signals that matter
Request rates, error ratios, and latency histograms give you the three golden signals with enough fidelity for most services. Keep histograms per service so percentiles are interpretable.
histogram_quantile(0.99,
sum(rate(http_server_request_duration_seconds_bucket[5m])) by (le, service)
)
Alert on burn rate, not on noise
Page on sustained burn. A single spike that self-heals within minutes is worth an annotation, not a page. Record the alert so the SLO, the signal, and the response stay in one place.
groups:
- name: service-slos
rules:
- alert: HighErrorRate
expr: sum(rate(http_server_requests_total{status=~"5.."}[5m])) by (service) / sum(rate(http_server_requests_total[5m])) by (service) > 0.02
for: 15m
labels:
severity: warning
annotations:
summary: High error rate on service {{ $labels.service }}
Structure dashboards around SLOs
Dashboard essentials
- Done: One overview dashboard with service health and error budget burn
- To do: One detail dashboard per critical service
- Done: Latency percentiles, not averages
- To do: Alert state visible without paging
An SLO-driven monitoring stack starts with a small number of well-chosen metrics, one error budget, and alerts tied to burn. Add panels as services earn them.
References
- Google SRE workbook — Error budgets and alerting.
- Prometheus documentation — Query model and recording rules.
- Grafana documentation — Dashboards and alerting.