Learn › Monitoring

Monitoring Fundamentals: Metrics, Logs, Traces and Alerts

Monitoring basics: metrics vs logs vs traces, the four golden signals, and how good alerting works. The foundation for any monitoring tool.

Beginner 9 min read
By Gopinath Karthikeyan

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?

  1. Detect problems early – ideally before users notice.
  2. Diagnose – find out what’s wrong quickly.
  3. Plan – see growth trends before disks fill or servers max out.
  4. 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):

  1. Latency – how long requests take (watch the slow ones, e.g. 95th percentile, not just the average)
  2. Traffic – how much demand: requests per second, logins per minute
  3. Errors – the rate of failed requests (HTTP 5xx, failed jobs)
  4. 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.

Monitoring: metrics, logs and traces feed golden signals, dashboards and alerts Servers and applications Servers மற்றும் applications Metrics Numbers over time Metrics நேரத்தோடுஎண்கள் Logs Events in detail Logs விரிவானevents Traces One request’s path Traces ஒரு request-ன்பாதை Four golden signals Latency · Traffic · Errors · Saturation நான்கு golden signals Latency · Traffic · Errors · Saturation Dashboards “Is it healthy?” Dashboards “நலமாக உள்ளதா?” Alerts Only when a human must act Alerts மனிதர் செயல்படவேண்டியபோது மட்டும்
Collect metrics, logs and traces; watch the four golden signals; use dashboards for understanding and alerts only for problems that need action now.Metrics, logs, traces சேகரித்து, golden signals-ஐ கவனியுங்கள்; புரிதலுக்கு dashboards, உடனடி செயல் தேவைப்படும்போது மட்டும் alerts.

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 questions

MonitoringObservabilityAlertingSREBeginner

Gopinath Karthikeyan

Gopinath Karthikeyan – Windows Site Reliability Engineer with about 12 years in enterprise Windows Server infrastructure, and founder of WinOps Academy. YouTube · LinkedIn

More in Monitoring