Skip to content
nexovia
All insights

DevOps

Observability for small teams: what to run and what to skip

A small team cannot watch fifty dashboards, and it does not need to. Structured logs, a few metrics, traces and error tracking are enough when the alerts follow what users feel.

The Nexovia team · · 4 min read

Start from three questions

Observability for startups and small teams comes down to answering three questions quickly: is the product broken for users right now, where, and why. Tools are chosen to answer them, not the other way around.

Each signal answers a different part. Metrics tell you that something is wrong and how widespread it is. Traces show where in the request path the time or the error comes from. Logs and error reports explain why. A small team needs all of them at a basic level before it needs any of them at an advanced level.

Structured logs

Logs written as free text are readable only by the person who wrote them. We log JSON, one event per line, to standard output and let the platform collect it. Every line carries the same fields, so searching and filtering work across services.

Passwords, tokens and card data never reach the logs. The logger itself filters them, so it does not depend on the discipline of each developer. Debug output stays off in production unless someone turns it on for an investigation.

  • Timestamp, level, service name and environment.
  • A request ID or trace ID that links all the lines of one request.
  • The account or tenant concerned, as an identifier and never as personal data.
  • For each request, one summary line with the route, the status code and the duration.

Metrics with Prometheus and Grafana

Prometheus collects metrics by scraping an HTTP endpoint that each service exposes, stores them as time series and queries them with PromQL. Grafana draws the dashboards. Both are open source, and both exist as managed offerings for teams that prefer not to operate them.

For each service we start with three measures: request rate, error rate and duration. Duration is recorded as a histogram and read as percentiles, because an average hides the slow requests that users complain about. For machines and databases we add utilization and saturation. One caution: every combination of label values creates a separate time series, so user IDs and full URLs do not belong in labels.

Traces and OpenTelemetry

A trace follows one request through every service, queue and database call it touches, as a tree of timed spans. It is the fastest way to see that a slow page is in fact one slow query repeated again and again.

We instrument with OpenTelemetry, the open, vendor-neutral standard for traces, metrics and logs. Its libraries instrument common web frameworks, HTTP clients and database drivers automatically, propagate context between services with the W3C traceparent header and export data over the OTLP protocol. Because the instrumentation is not tied to one vendor, you can start with a simple backend such as Jaeger or Grafana Tempo, or with a hosted product, and change later without touching application code. We write the trace ID into every log line, so a log line leads straight to its trace.

Error tracking with Sentry

If a team installs one thing first, it should be error tracking. Sentry captures unhandled exceptions in the backend, the browser and mobile apps, groups them into issues and shows the stack trace, the release and the events that led to the error.

Two settings make it useful. Upload source maps, so that a JavaScript stack trace points to your code and not to a minified bundle. Tag every event with its release, so that a new issue is tied to the deployment that introduced it. Then alert on new issues and on regressions, and keep the list short by resolving or archiving what you decide not to fix.

Alert on symptoms, keep causes on dashboards

An alert should mean that users are affected and that someone must act. We alert on symptoms: the error rate of the API, the latency of the main pages, failed payments, the age of the oldest job in a queue, an external check that cannot load the login page. High CPU or memory is a cause. It belongs on a dashboard, where it helps explain a symptom, and it should not wake anyone on its own.

Each alert has an owner, a severity and a link to a runbook with the first steps. Two severities are enough: handle it now, or open a ticket for working hours. Dashboards follow the same economy: one per service, with rate, errors and duration at the top, dependencies below and resources at the bottom, and every deployment marked on the graphs.

On-call that does not burn people out

On a small team the same few people carry the pager, so every useless page is expensive. We keep a written rotation with a primary and a backup, hand over at a fixed time and page only for problems that affect users and cannot wait. Israeli teams with customers abroad should decide explicitly who covers Friday and Saturday, instead of leaving it to whoever sees the message first.

Every page is reviewed in the following week with one question: fix the cause, tune the alert or delete it. Time spent on night incidents is given back to the person on call. After an incident we write a short review that looks for what the system allowed, not for who made the mistake. A rotation that people can sustain is part of the reliability of the system.

Keep reading

Strategy

MVP tech stack: how a startup should choose

An MVP's stack has one job: let a small team ship the product and change it quickly. Here is what we look at when choosing, what we buy ready-made and what we deliberately leave for later.

· 5 min read

Design, build and ship your project

Describe it in three lines. We reply with specific questions and a first take on how to proceed.