Database Monitoring: The Five Numbers That Matter

Monitor too few and you miss issues; too many and they drown in noise. Five is the right number.

Why five

One metric misses cases. Twenty metrics drown signal. Five is the sweet spot that catches most production database problems without overwhelming the dashboard.

The five metrics

Dashboard pattern

One dashboard per database, structured the same way every time. Standardisation lets engineers parse the page in seconds.

Alert thresholds

Each metric needs an explicit threshold. Without one, the metric is a chart; with one, it is an alert that fires before the user notices.

Antipatterns

What to do this week

Three moves. (1) Apply this pattern to your most-loaded table. (2) Measure query latency / write throughput before/after. (3) Document the win and the constraint so the next refactor inherits the knowledge.