Skip to content

Monitoring glossary

The three pillars of observability

Logs, metrics and traces each answer a different question. Used together, and linked by shared IDs, they turn an alert into a diagnosis.

4 min read9 sectionsUpdated

On this page

Key points

  • Metrics answer "how much and how often": cheap, fast, ideal for alerts.
  • Logs answer "what exactly happened": detailed, but expensive at volume.
  • Traces answer "where did the time go": one request across every service it touched.
  • The value is in the links: trace IDs in logs, and the same service and version attributes on everything.

Each pillar at a glance

AspectMetricsLogsTraces
ShapeNumbers in time seriesTimestamped text or JSON recordsTrees of spans per request
Best questionIs it getting worse?What exactly happened?Where is it slow or failing?
Cost at scaleLowHighMedium, controlled by sampling
DetailAggregated, little contextFull detail per eventFull detail per request
Typical useDashboards and alertsDebugging and auditLatency and dependency analysis

Metrics

A metric is a number with a name, a timestamp and a few labels, such as http.server.duration{route="/checkout",status="500"}. Because they are aggregated, metrics stay small no matter how much traffic you have, which is why they are the right basis for alerts and long-term trends.

Their weakness is detail. A metric can tell you p95 latency for checkout rose from 300 ms to 2 s; it cannot tell you which request was slow or why. Watch the number of distinct label combinations too: putting user IDs in labels causes a cardinality explosion.

Logs

Logs are the oldest pillar and still the most detailed. A good log line is structured (JSON), has a level, a message, the service name and, crucially, the trace ID. See structured logging best practices.

Logs get expensive because every event is stored. The usual answers are to log at the right level, drop noisy debug output in production, and keep detailed logs for a shorter retention period than metrics.

Traces

A trace records one request as a tree of spans: the incoming HTTP request, the database queries inside it, the calls to other services. Drawn as a waterfall, the longest bar is usually the answer.

Traces join up across services through context propagation. On busy systems you keep a share of them with sampling.

Linking the pillars

The pillars become observability when you can move between them without searching by timestamp:

  1. An alert fires on a metric: error rate on POST /checkout above 2%.
  2. You open the failing requests: the APM endpoint view lists traces that errored in that window.
  3. You open one trace: the payment span failed with a timeout after 10 s.
  4. You read its logs: because each log line carries the trace ID, the log lines from that exact request are one click away.

In VitalRix, logs that include the trace ID appear on the trace, and every log line links back to its trace. Add service.version and each chart can show deploy markers too.

Frequently asked questions

Are there more than three pillars?

Some people add events, profiles or real-user data. The three-pillar model is a starting point, not a rule. What matters is that your signals share context.

Which pillar should I start with?

For a web service, traces give the most insight per hour of setup because automatic instrumentation covers HTTP and databases. Add metrics for alerting and logs with trace IDs next.

Can metrics be derived from traces?

Yes. Request rate, error rate and latency histograms are commonly computed from spans, which is how APM overviews stay fast.

  • Kubernetes observability: Kubernetes observability for application teams: pod resources against limits, restarts and OOM kills, and traces with Kubernetes metadata.
  • Nginx monitoring: status, logs and alerts: Monitor Nginx with stub_status and JSON access logs: active and dropped connections, request rate, 5xx share, upstream time and alerts to set.
  • Dashboards: Build your own dashboards from metrics, logs, monitor status, APM and SLOs on a 12-column grid, with template variables, TV mode, clone and JSON export.
  • What is observability?: Observability explained in plain words: what it means, how logs, metrics and traces fit together, how it differs from monitoring and how to start.
  • DevOps monitoring: Monitoring for DevOps teams: deploy markers and release comparisons, SLOs and error budgets, and alerts routed to the owning team.
  • Log management: Centralized log management: send structured logs over HTTPS, search and filter them, watch them live, parse with pipelines and open the trace behind a line.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.