Good monitoring means you hear about problems from your dashboards, not from your users. Whatever tool your company uses – a commercial platform or open-source tools – the ideas underneath are the same. This guide covers them.
Why monitor?
- Detect problems early – ideally before users notice.
- Diagnose – find out what’s wrong quickly.
- Plan – see growth trends before disks fill or servers max out.
- Prove – show that a service met its targets (see SLOs).
Three kinds of data
| Type | What it is | Example | Good for |
|---|---|---|---|
| Metrics | Numbers sampled over time | CPU 72%, 340 requests/sec, disk 81% full | Trends, dashboards, alerts |
| Logs | Timestamped event records | “Login failed for user jdoe”, IIS request lines | Details and root cause |
| Traces | The path of one request through many services | Web → API → database, with timing for each | Finding which component is slow |
Observability is the umbrella term: being able to understand what a system is doing from the data it produces. Metrics tell you something is wrong; logs and traces tell you why.
What to measure: the four golden signals
For any service, start with these (from Google’s SRE book):
- Latency – how long requests take (watch the slow ones, e.g. 95th percentile, not just the average)
- Traffic – how much demand: requests per second, logins per minute
- Errors – the rate of failed requests (HTTP 5xx, failed jobs)
- Saturation – how full the resource is: CPU, memory, disk, connection pools, queue length
For servers specifically, the USE method helps: for each resource, check Utilisation, Saturation and Errors.
Black-box and white-box monitoring
- Black-box: test from the outside like a user – “does the login page load in under 2 seconds?” (synthetic checks, URL probes). Tells you users are affected.
- White-box: data from inside – metrics and logs from the server and app. Tells you why.
You need both: black-box to know that users are hurting, white-box to find out why.
Alerts: the hard part
An alert should mean “a human needs to act now”. Every alert that doesn’t meet that bar trains people to ignore alerts.
Good alerts:
- Are about symptoms users feel (error rate, latency, site down) rather than every possible cause.
- Have a clear owner and a runbook link: what to check, what to do.
- Fire on sustained conditions (“CPU above 90% for 15 minutes”), not single spikes.
- Have the right severity: page someone at night only for real outages; everything else becomes a ticket for working hours.
More in Designing alerts and dashboards.
Dashboards
A good dashboard answers one question at a glance: “Is the payroll service healthy right now?” Put the golden signals at the top, details below, and keep the time range consistent. Avoid “wall of 60 graphs” dashboards nobody can read.
Retention
Keep detailed metrics for weeks, summarised metrics for months (for trends and capacity planning), and logs as long as your security and audit policies require.
FAQ
Is monitoring the same as logging? No – logging is one input. Monitoring combines metrics, logs, checks and alerts into a picture of health.
What’s next
Next: Monitoring Windows with built-in tools.
Practise this topic
Test yourself with free questions on this topic – instant answers and explanations.
Start practice questionsMonitoringObservabilityAlertingSREBeginner