Kapten
All guides

Operations

An observability starter kit for a small team

The four signals worth watching, health and readiness checks that mean something, structured logs, your first three alerts and the runbooks behind them.

Cover illustration for An observability starter kit for a small team, intermediate levelOperationsIntermediate · 4104
On this page9 sections
  1. 01Start small on purpose
  2. 02The four golden signals
  3. 03Health and readiness checks
  4. 04Structured logs
  5. 05Your first three alerts
  6. 06Runbooks
  7. 07Start from what changed
  8. 08How Kapten fits in
  9. 09Checklist

Start small on purpose

Observability tools can measure almost anything, and a new team often tries to. The result is a dashboard nobody looks at and alerts everybody mutes.

This guide is the opposite: the smallest set of signals, checks and alerts that will tell a small team when its users are having a bad time, and give it enough context to fix it. Add more only when an incident shows you something was missing.

The four golden signals

For every service that handles requests, watch:

  • Latency. How long requests take. Look at a high percentile (p95 or p99), not the average, because the average hides the users who are suffering.
  • Traffic. How many requests per second. A sudden drop is often a worse sign than a spike.
  • Errors. The rate of failed requests, usually 5xx responses. Track it as a percentage of traffic, not an absolute count.
  • Saturation. How full the service is: CPU, memory, connection pools, queue depth. It tells you what is about to break.

For background workers, adapt them: job duration, jobs processed, job failures, and queue depth or age of the oldest job.

Golden signals
Web service, Worker, Queue, Postgres feed into One schema, which produces a production health.
Web servicelatency · traffic · 5xx
Workerjob duration · failures
Queuedepth · oldest job age
Postgresconnections · storage
One schemaservice · env · signalmetricslogsdeploys
Figure 1. Each service reports the same four signals into one place, so one dashboard can read them all.Illustrative · sample data

Health and readiness checks

A check is only useful if it answers a real question.

  • Liveness: is the process stuck? Keep it trivial. If it fails, the platform restarts the container. Do not check dependencies here, or a database blip will restart every replica at once.
  • Readiness: can this instance take traffic now? Check what the service needs to do its job, usually its database connection. If it fails, traffic stops being routed to that instance until it recovers.

Rollouts are gated on readiness. A version that never becomes ready never receives traffic. In Kapten, health checks are set per application; see deploy a container image in the docs.

Two checks, two questions
CheckLivenessReadiness
Question it answersIs the process stuck?Can it take traffic now?
Checks dependenciesSuch as its databaseNoYes
When it failsContainer restartedTaken out of routing
Gates a rolloutNoYes
Figure 2. Keep the two apart. A dependency check inside liveness turns a database blip into a restart of every replica at once.

Structured logs

Write logs as JSON lines to standard output, with a consistent set of fields:

{"ts":"2026-10-13T09:41:07Z","level":"error","service":"api","env":"production","request_id":"9f2c…","route":"POST /orders","status":500,"duration_ms":812,"msg":"payment provider timeout"}
  • Always include timestamp, level, service, environment and a request or trace ID.
  • Log events, not narration. One line per meaningful event, with the data needed to understand it.
  • Never log secrets or personal data. Redact tokens, passwords and card numbers at the logger, not by hoping.
  • Use levels honestly. error means someone may need to act. If nobody would, it is warn or info.

Propagate the request ID across services, so one user action can be followed from the frontend to the worker.

Your first three alerts

Alert on symptoms users feel, not on every cause you can imagine. Three alerts are enough to start:

  1. Error rate too high. The percentage of 5xx responses on a public service stays above a threshold for several minutes.
  2. Latency too high. The p95 latency of a public service stays above a threshold for several minutes.
  3. Something is about to run out. Database storage, connection pool or disk is above a high-water mark.

Set the thresholds from a week of normal data, not from a guess. Require the condition to persist for a few minutes so a single slow request does not page anyone.

Every alert must answer three questions in its message: what is wrong, where, and where to start looking. Link to the runbook.

Runbooks

A runbook is a short page per alert:

  • What this alert means in one sentence.
  • First checks: the latest deployment, the dashboard for the service, the logs filtered to errors.
  • Common causes you have seen before, with the fix for each.
  • How to mitigate: roll back, scale, disable a flag, fail over.
  • Who to escalate to.

Write them after incidents, not before. The first version can be three lines; it gets better every time it is used.

Start from what changed

Most incidents are caused by a change: a deployment, a configuration update, a migration, a dependency that changed under you. The fastest first question is “what changed just before this started?”

Make that question easy to answer: keep deployments, config changes and migrations on the same timeline as your metrics, so a spike can be lined up against the release that preceded it.

p95 latency · api · production
p95 latency · api · production
Pointp95 latency (ms)Event
09:00182
09:30176
10:00190
10:30185
11:00188Deploy: v42 deployed
11:30262
12:00318Alert: p95 alert
12:30296
13:00205Rollback: back to v41
13:30186
14:00181
14:30179
Threshold: Alert threshold at 250 ms.
Figure 3. With releases drawn on the same axis as latency, the cause of the spike is the first thing you see.Illustrative · sample data

How Kapten fits in

Kapten gives you the “what changed” half of this setup, and the raw material for the rest:

  • Every deployment is a run, with its status, a timeline of its steps and its logs. The runs of a component are the release history you line up against a spike.
  • Logs are collected on your cluster. When you connect a cluster, Kapten’s agent installs collectors for logs and metrics alongside an ingress gateway and cert-manager. You can query the logs of a run, a component or a whole environment.
  • Every change is recorded in the organization’s activity log, with who made it and when, so a configuration change shows up as clearly as a release.
  • Health checks are part of the application. Readiness decides when an instance receives traffic; liveness restarts one that stopped responding.
  • A coding agent can do the first checks. Connected through MCP, it lists the latest runs and reads their logs for you. It acts with your rights, and your client asks before any change.

Alerting and runbooks stay with the monitoring tool you already use.

  1. 11:00
    Run: api 1.42 deployed to production, Live
    Readiness checks pass on every instance.
  2. 11:47
    p95 latency above threshold for 5 minutes, Failed
    Your monitoring fires the alert, with a link to the runbook.
  3. 11:49
    Runs and activity log checked
    1.42 is the only change in the window; its logs point to one new query.
  4. 11:52
    Previous tag redeployed, In progress
    api set back to 1.41 and deployed; a new run starts.
  5. 11:58
    Run succeeds, Live
    p95 back under the threshold.
  6. 12:30
    Incident notes written
    Cause, evidence and a follow-up for the runbook.
Figure 4. A sample latency incident: the runs and logs in Kapten answer “what changed”, a person decides the fix.Illustrative · sample data

Checklist

  • Each service exposes liveness and readiness checks that mean something.
  • Logs are structured JSON with service, environment and request ID.
  • Golden signals are visible per service and per environment.
  • Three alerts: error rate, latency, saturation of a critical resource.
  • Each alert links to a runbook.
  • Deployments and config changes appear alongside metrics.

Build with Kapten

Start with one service.
Build from there.

Tell us what you want to deploy. We review each request and follow up about fit and onboarding on your preferred cloud.

Free during early access. No card required. Cloud usage billed separately.