Sefism is free for learners. We are here to help you grow, one step at a time.Join for free
Sefism.

Best practices · Cloud and DevOps

Observability Best Practices

Opens with credits

A practical guide to observability best practices for teams running services in production. It covers choosing what to measure with SLIs and SLOs, designing metrics that stay cheap, writing logs you can search and join to traces, instrumenting with OpenTelemetry, running a telemetry pipeline, and alerting on user pain instead of noise.

Written by Tauseef Fayyaz6 chapters, 23 practicesAbout 17 min22 quiz questionsReviewed 13 October 2026

What you will learn

6 chapters · about 17 min

  1. 1Deciding what to measureStart from what users experience. These practices turn that into a small set of indicators and objectives that every other signal supports.4 practices · 3 min
  2. 2Metrics that stay useful and affordableHow to name, type and label metrics so queries are obvious and the time series count does not explode.4 practices · 3 min
  3. Logs you can search and joinHow to write logs that machines can filter, that connect to the trace of the same request, and that do not leak secrets or cost a fortune.4 practices · 3 minOpens with credits
  4. Distributed tracing with OpenTelemetryHow to instrument services so a single request can be followed end to end, using OpenTelemetry, its semantic conventions and sensible sampling.4 practices · 3 minOpens with credits
  5. The telemetry pipelineHow telemetry gets from your services to a backend: the OpenTelemetry Collector, resource attributes and protecting the pipeline itself.3 practices · 2 minOpens with credits
  6. Alerting that people trustHow to page only for real user impact, using SLO burn rates, and make every page something a human can act on.4 practices · 3 minOpens with credits

About this guide

Observability best practices exist to answer two questions quickly: is something wrong for users right now, and where is it coming from? Most teams collect plenty of data and still struggle with both. Dashboards show hundreds of graphs but no clear sign of user impact. Alerts fire on CPU spikes nobody needs to act on, so the real page at 3 a.m. gets ignored. Logs are free text that cannot be filtered, and the one request that failed cannot be followed from the load balancer to the database.

The fix is not more data, it is better chosen data. This guide starts with deciding what to measure, using service level indicators and objectives and the four golden signals from Google's SRE books. It then covers the three main signals in turn: metrics that follow the Prometheus naming and cardinality rules, structured logs that carry trace context, and distributed traces built with OpenTelemetry and its semantic conventions. The last chapters cover the collection pipeline (the OpenTelemetry Collector and sampling) and alerting on SLO burn rate, so pages are rare and always mean something.

Every practice was checked against primary sources: the Google SRE book and workbook chapters on monitoring, implementing SLOs and alerting on SLOs, the Prometheus instrumentation and naming guides, and the OpenTelemetry documentation. Numbers in this guide, such as burn rates and cardinality limits, come from those pages.

The practices are vendor neutral. They work the same whether your backend is Prometheus and Grafana, an open source tracing store, or a commercial observability platform, because OpenTelemetry lets you change the backend without re-instrumenting the code.

Common questions

What is the difference between monitoring and observability?

Monitoring usually means watching known signals and alerting when they cross thresholds. Observability is the wider ability to ask new questions about production from the telemetry you collect, such as following one slow request across services. In practice you need both: SLO-based alerts tell you something is wrong, and traces, logs and metrics tell you why.

What are the four golden signals?

Latency, traffic, errors and saturation, from the monitoring chapter of Google’s SRE book. If you can only measure four things about a user-facing system, measure these, and track latency for successful and failed requests separately.

What is an error budget burn rate alert?

It fires when you are spending your error budget faster than the SLO allows. The SRE workbook’s starting point for a 99.9% SLO pages at 14.4x burn over 1 hour (confirmed over 5 minutes) and 6x over 6 hours, and opens a ticket at 1x over 3 days.

Should I use OpenTelemetry?

For new instrumentation, yes in most cases. It is vendor neutral, auto-instrumentation covers most popular frameworks, and the Collector lets you change backends without re-instrumenting. Check the OpenTelemetry status page for your language, since signal maturity still varies.

How many labels should a Prometheus metric have?

As few as possible. The Prometheus instrumentation guide suggests keeping each metric’s cardinality below about 10, treating anything over 100 as a sign to find another approach, and never using unbounded values such as user IDs or emails as labels.

Do I need to sample traces?

Not at low volume. The OpenTelemetry docs suggest considering it around 1,000 or more traces per second. When you do, tail sampling lets you keep every error and slow trace while dropping routine ones.

Sources (8)

Checked against these, last on 13 October 2026.

  1. Monitoring Distributed Systems, Google SRE Booksre.google/sre-book/monitoring-distributed-systems/
  2. Implementing SLOs, Google SRE Workbooksre.google/workbook/implementing-slos/
  3. Alerting on SLOs, Google SRE Workbooksre.google/workbook/alerting-on-slos/
  4. Metric and label naming, Prometheusprometheus.io/docs/practices/naming/
  5. Instrumentation, Prometheusprometheus.io/docs/practices/instrumentation/
  6. Sampling, OpenTelemetryopentelemetry.io/docs/concepts/sampling/
  7. Collector, OpenTelemetryopentelemetry.io/docs/collector/
  8. OpenTelemetry semantic conventions, OpenTelemetryopentelemetry.io/docs/specs/semconv/

Picked from the other libraries by shared topics.

Work with me

Stuck on something specific?

Writing only gets you so far. If you want an answer to your situation rather than the general case, book a session and we will work through it together. Sessions are free for approved Sefism members, and a few slots open each week.

  • 1:1 Mentorship
  • Fresh Graduate Mentorship
  • Career Guidance

Brand deals, promos and partnerships: tauseeffayyaz@gmail.com