Skip to content
nexovia

DevOps and cloud

Observability and monitoring

Observability and monitoring show what a system is doing while it runs. We instrument applications with OpenTelemetry, collect metrics in Prometheus, build Grafana dashboards and track errors in Sentry, with structured logs that can be searched. Alerts are tied to symptoms users feel, such as failed payments or slow pages, so the person on call is paged for real problems.

Observability and monitoring: an overview

Monitoring tells you that something is wrong. Observability lets you find out why, by following one slow request through the API, the queue and the database, and seeing the error and the log lines that belong to it. We set up observability and monitoring with OpenTelemetry so that traces, metrics and logs share the same identifiers and can be read together.

The stack we suggest is built on open tools and adjusted to what you already run: OpenTelemetry in the application, Prometheus for metrics, Grafana for dashboards and Sentry for errors, with each error linked to the release that introduced it. Logs are structured JSON with a request ID and, where allowed, a user or tenant ID, and with no secrets or personal data that should not be there. If you prefer a hosted vendor, OpenTelemetry sends the same data there without changes to the application.

Alerts get the most care. An alert should wake someone only when users are affected now or soon will be: checkout errors rising, the login page slowing down, a queue growing faster than it drains. High CPU on one node belongs on a dashboard, not on someone's phone. Each alert comes with a runbook that says what to check first.

What the service covers

  • Application instrumentation

    OpenTelemetry in each service, with automatic instrumentation for HTTP, database and queue calls and manual spans around important business steps. Trace context passes between services, queues and background jobs.

  • Metrics and dashboards

    Prometheus metrics for traffic, errors, latency and saturation, plus a few business metrics such as orders or sign-ups. Grafana dashboards per service and one overview of the whole system.

  • Structured logging

    JSON logs with a request ID, a trace ID and the context needed to debug, collected in one searchable place. Personal data and secrets are filtered out before logs leave the application.

  • Error tracking

    Sentry for the backend, the web front end and the mobile apps where you have them, with source maps and releases attached. A new error after a deployment points straight to the release that introduced it.

  • Alerting and on-call

    Alerts on user-facing symptoms, routed by severity to a pager or to a team channel. Each alert has an owner and a runbook.

  • External checks

    Synthetic checks load key pages and call key endpoints from outside your network. They catch what internal metrics cannot see, such as an expired certificate or a broken DNS record.

When it is the right call

  • 01

    You learn about outages from customers or from a message in a support channel.

  • 02

    Your team receives so many alerts that the important ones get ignored.

  • 03

    A request is slow and nobody can tell whether the time goes in the API, the database or a third-party call.

  • 04

    Your logs are plain text spread across servers, and searching them means connecting to each machine.

What you get

  • Instrumentation with OpenTelemetry: traces, metrics and structured logs

  • Prometheus metrics and Grafana dashboards for each service

  • Error tracking with Sentry, linked to releases

  • Alerts tied to user-facing symptoms, with a runbook for each

How we work on it

  1. Step 1

    Define healthy

    We list the user flows that matter, such as sign-in, search and payment, and agree on what healthy looks like for each. Those definitions become the indicators that dashboards and alerts are built on.

  2. Step 2

    Instrument the code

    OpenTelemetry is added to each service, with automatic instrumentation for common calls and manual spans where business logic needs them. Logs move to a structured format at the same time.

  3. Step 3

    Collect and store

    We set up the collector, Prometheus or a managed equivalent, log storage and Sentry, with retention and sampling decided up front. The data stays in your accounts.

  4. Step 4

    Dashboards and alerts

    Grafana dashboards show traffic, errors and latency for each service, and alerts are written for user-facing symptoms. Sentry is connected to your releases.

  5. Step 5

    Test every alert

    Each alert is triggered on purpose in staging, and someone follows its runbook. Alerts that fire without a real problem are tuned or removed.

Alerts tied to what users feel

We start from symptoms: the rate of failed requests, the latency of the pages and endpoints people use most, and the success of flows such as payment or sign-up. These are what users notice, and they rarely fire for nothing. Causes such as disk, memory or a restarting container go on dashboards, and become alerts only when they predict a symptom, like a disk that will be full before morning.

Each alert has an owner, a severity and a link to its runbook. Paging alerts go to the person on call, and the rest go to a channel read during working hours. An alert that keeps firing without anyone needing to act is changed or deleted, because an ignored alert teaches people to ignore the next one.

Traces, metrics and structured logs with OpenTelemetry

Metrics are cheap and good at showing trends. Traces show the path of a single request across services, which is how you find the slow database query behind a slow page. Logs carry the detail. With OpenTelemetry all three carry the same trace ID, so from a spike on a Grafana chart you can open an example trace, and from that trace the logs of the exact request.

Volume drives the cost. We sample traces, keep detailed logs for a short period and aggregates for longer, and avoid metric labels with unbounded values such as user IDs, which multiply the number of series Prometheus has to store.

Service level objectives and error budgets in practice

A service level objective puts a number on healthy for one flow, for example the share of checkout requests that succeed fast enough over a rolling period. You set the number from what your users expect and what the product can afford, and we do not pick it for you from a template. What matters is what follows from it: alerts fire when the objective is being used up quickly, not on every single error.

The margin left under the objective, called the error budget, becomes a planning tool. When a service stays well inside it, the team can ship riskier changes. When it is close to the limit, reliability work comes before new features. We set objectives only for the few flows that matter most, because an objective on every endpoint is noise of a different kind.

Technologies

  • Docker
  • Kubernetes
  • Helm
  • Argo CD
  • Terraform
  • GitHub Actions
  • AWS
  • Google Cloud
  • Grafana

How you can work with us

  • Fixed-scope project

    The scope of the first version is written down, split into milestones and priced per milestone. It suits a product or a feature with a clear outline.

  • Dedicated team

    A team works on your product over the long run, with its own planning and release cadence. It suits a product that keeps changing.

  • Team extension

    One or more of our engineers join your team and work with your tools and routines. It suits a company that knows where it is going but lacks people or a specific skill.

  • Monthly support

    A monthly retainer covers maintenance, updates and small changes, with an agreed response time. It suits a product in production that needs upkeep more than new features.

Questions about Observability and monitoring

What drives the cost of monitoring?

Mostly volume: how many log lines you keep and for how long, how many traces you store and how many metric series you create. Hosted tools charge on these, and self-hosted ones need storage for them. Sampling, sensible retention and careful metric labels keep the cost in line with what you actually look at.

Should we self-host Prometheus and Grafana or use a managed service?

Self-hosting makes sense if you already run Kubernetes and someone looks after it. Otherwise a managed Prometheus and Grafana, or a hosted observability vendor, saves you from monitoring the monitoring. Instrumenting with OpenTelemetry keeps the choice open, because the application code stays the same when the backend changes.

Can you add monitoring to an application you did not build?

Yes. Automatic instrumentation covers most HTTP, database and queue calls without touching business code, and we add manual spans and structured logging where they help. We read enough of the code to know which flows matter and where failures are likely to start.

What is the difference between monitoring and observability?

Monitoring watches for known problems with the checks, dashboards and alerts you defined in advance. Observability is the ability to answer questions you did not plan for, such as why one customer's requests are slow, by exploring traces, metrics and logs that are connected. You need both, and OpenTelemetry provides the data for both from the same instrumentation.

How do you avoid alert fatigue?

By alerting on symptoms users feel rather than on every cause, and by deleting alerts that nobody acts on. Each alert is tested and has a runbook, so whoever is paged knows what to do. After a period of real traffic we go through the alert history with your team and tune or remove the noisy ones.

Can logs contain personal data?

They should contain as little as possible. We log identifiers rather than names, email addresses or payment details, filter known sensitive fields in the application before logs are shipped, and restrict who can read production logs. Detailed logs are kept for a short period, which also helps when a user asks for their data to be deleted.

In the same service area

Design, build and ship your project

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