Kubernetes observability in Switzerland: metrics, logs and traces

Kubernetes observability in Switzerland: metrics, logs and traces

SoKube connects the metrics, logs and traces of your clusters and applications, defines SLOs with you, and replaces alert storms with alerts that matter.

Updated on

At a glance

SoKube, a consulting company based in Geneva, sets up Kubernetes observability for organisations across western Switzerland, on Kubernetes clusters designed and run as code or on their existing clusters. Its consultants instrument applications with OpenTelemetry and deploy Prometheus, Grafana, Loki, Tempo, and Mimir, Thanos or VictoriaMetrics for long-term storage, or the Elastic stack. Dashboards, alerts and SLOs (Service Level Objectives) are versioned in Git and deployed through GitOps. The same approach extends to applications built on LLMs and AI agents: token cost, latency and errors are traced for every model call. SoKube is a CNCF Kubernetes Certified Service Provider (KCSP).

Where our engagements usually start

Why rethink Kubernetes observability

Teams often have plenty of data and few answers.

Alert storms

Hundreds of alerts a week, most of which need no action. The on-call engineer ends up ignoring them, including the one that matters.

3 tools, 3 versions of the truth

Logs sit in one tool, metrics in another, traces nowhere. Linking an error to its cause takes hours.

Users report the outage first

Dashboards stay green while the payment journey fails. The indicators being tracked do not measure what users experience.

Metrics that cannot keep up

One Prometheus per cluster, 15 days of retention, labels that blow up cardinality. Comparing 2 clusters or 2 quarters is impossible.

Hand-made dashboards

Built with the mouse, different in every environment, lost at the next migration. Nobody knows which one is the reference.

AI applications are black boxes

Token cost, model latency, agent tool calls, answer quality: nothing is measured until the bill or the complaint arrives.

Observability defined as code

Dashboards, alerts and SLOs live in Git just like the application. They are reviewed in merge requests, deployed through GitOps and recreated identically on every cluster.

observability/
├── collector/      # OpenTelemetry Collector configuration
├── dashboards/     # Grafana dashboards, provisioned through GitOps
├── alerts/         # Prometheus rules per service, including SLOs
└── runbooks/       # one procedure per alert

This Prometheus rule fires when the payment service burns its error budget 14.4 times faster than planned, over both 1 hour and 5 minutes. At that rate, 2% of the monthly budget is gone in 1 hour: worth paging the on-call engineer, unlike a single isolated error.

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  name: payment-api-slo
  namespace: payment
spec:
  groups:
    - name: slo-availability
      rules:
        - alert: PaymentApiErrorBudgetFastBurn
          expr: |
            (
              sum(rate(http_requests_total{job="payment-api",code=~"5.."}[1h]))
              / sum(rate(http_requests_total{job="payment-api"}[1h]))
            ) > (14.4 * 0.001)
            and
            (
              sum(rate(http_requests_total{job="payment-api",code=~"5.."}[5m]))
              / sum(rate(http_requests_total{job="payment-api"}[5m]))
            ) > (14.4 * 0.001)
          labels:
            severity: page
          annotations:
            summary: "payment-api is burning its error budget too fast (99.9% SLO)"
            runbook_url: "https://wiki.example.ch/runbooks/payment-api-slo"

Observing AI applications and agents

An LLM-based application adds metrics that the infrastructure cannot see: tokens consumed, cost per request, model latency, agent tool calls, answer quality. The OpenTelemetry semantic conventions for generative AI standardise this data (model called, input and output tokens, duration), and every agent step becomes a span in the trace. Langfuse or an equivalent tool adds quality evaluations.

This data works both ways. It makes AI applications operable like any other service, with their SLOs and their cost. It also feeds operations agents: NeuroKube reads metrics, logs and traces to investigate an incident, and its diagnosis gets sharper when observability is consistent.

Technologies we run in production

PurposeTechnologies
Instrumentation and collectionOpenTelemetry (SDKs and Collector), Prometheus
Long-term and multi-cluster metricsMimir, Thanos, VictoriaMetrics
LogsLoki, Elastic
TracesTempo, OpenTelemetry
Visualisation and alertingGrafana, Kibana, Alertmanager
eBPF network visibilityCilium Hubble
AI applicationsOpenTelemetry GenAI conventions, Langfuse

Observability ties the other areas together:

Our observability services

Our observability services

  1. 1
    Observability assessment : coverage of metrics, logs and traces, alert quality, retention, storage costs and a prioritised action plan.
  2. 2
    Design : collection and storage architecture, multi-cluster and long-term storage, naming conventions, per-service SLOs, alerting policy.
  3. 3
    Implementation : OpenTelemetry instrumentation, collectors, storage, dashboards and alerts delivered as code and deployed through GitOps.
  4. 4
    Level 3 support and ongoing improvements : stack upgrades, new SLOs, diagnosis of complex incidents escalated by your teams.
  5. 5
    Skills transfer : pairing, documented dashboards and alerts, and our Grafana course.
Let's talk about your project
How we work, in 5 steps

How we work, in 5 steps

  1. 1
    Define what matters : critical user journeys and the indicators that measure them (SLIs, Service Level Indicators).
  2. 2
    Unified collection : OpenTelemetry Collector and Prometheus collect metrics, logs and traces with the same service labels.
  3. 3
    SLOs and useful alerts : one objective per service, alerts on error budget burn, one runbook per alert.
  4. 4
    Self-service : every new service gets its dashboards and alerts when it is created, through the internal platform.
  5. 5
    Continuous improvement : incident reviews, removal of useless alerts, objectives adjusted with product teams.
Published field experience

Published field experience

  1. 1
    Kubernetes Certified Service Provider (KCSP) : a status granted by the CNCF to service companies with CKA-certified engineers.
  2. 2
    Isovalent partner : Cilium and Hubble for eBPF-based network observability.
  3. 3
  4. 4
    NeuroKube : SoKube’s AI platform uses metrics, logs and traces to diagnose Kubernetes incidents.
See our training courses

Kubernetes observability: frequently asked questions

What is the difference between monitoring and observability?

Monitoring checks conditions known in advance: a full disk, a stopped service. Observability lets you answer questions you had not anticipated, by correlating the metrics, logs and traces of the same request. On Kubernetes, where pods come and go all the time, that ability becomes necessary to understand an incident.

Why adopt OpenTelemetry?

OpenTelemetry is the CNCF’s open standard for producing and shipping metrics, logs and traces. An application instrumented once can send its data to Prometheus, Grafana, Elastic or a commercial product without rewriting code. Your choice of storage backend becomes reversible again.

Grafana stack or Elastic stack?

Both work well and the choice depends on your context. The Grafana stack (Prometheus or Mimir, Loki, Tempo) grew up with Kubernetes and stores logs cheaply by indexing only their labels. The Elastic stack excels at full-text search and security analytics, and is often already in place. We start from your use cases, your volumes and the skills you have.

How do you keep metrics across several clusters and several months?

One Prometheus per cluster collects locally, then Thanos, Mimir or VictoriaMetrics centralises the data in object storage, with months of retention and queries across every cluster at once. Keeping cardinality, the number of label combinations, under control drives both cost and performance.

What are an SLO and an error budget?

An SLO (Service Level Objective) sets the target reliability of a service, for example 99.9% of requests succeeding over 30 days. The error budget is the remaining 0.1%. As long as the budget lasts, the team ships freely. If it burns too fast, an alert fires and reliability takes priority over new features. The method comes from Google’s SRE (Site Reliability Engineering) practice.

How do you avoid alert fatigue?

By alerting on symptoms users experience rather than on every possible cause. Error budget burn alerts page the on-call engineer only when an SLO is at risk. Every alert has an owner and a runbook, and an alert that never leads to action is removed.

How do you observe an application built on LLMs or AI agents?

With the OpenTelemetry semantic conventions for generative AI: every model call becomes a span carrying the model used, tokens consumed, latency and errors, and every step of an agent (reasoning, tool call) shows up in the trace. Langfuse or an equivalent tool adds answer quality tracking and evaluations on top.

Does observability also help AI operations agents?

Yes, it determines how effective they are. An agent diagnosing an incident reads the same metrics, logs and traces as an engineer. The better correlated and consistently labelled the data, the more accurate the diagnosis. NeuroKube, the AI platform built by SoKube, relies on this data to investigate Kubernetes incidents.