Skip to main content

Monitor OpenLM Platform

To find out why a page of OpenLM Platform is slow, why a service keeps restarting, or whether the cluster has room for an upgrade, look inside the running platform. The pages in this section show you how to collect that data and where to look.

OpenLM Platform can send two kinds of data about its own work to an OpenTelemetry collector:

  • Traces: the record of each request as it passes from service to service, with how long each step took.
  • Metrics: numbers that each service reports, such as request durations, open connections and .NET memory use.

Kubernetes adds a third kind: what runs on the cluster, how much CPU and memory each pod uses, and why a pod restarted.

What you can find out​

Start from the question you have. The following table shows which tool answers it:

You want to knowLook inWhere the answer comes from
What runs, what is broken, why a pod restartedHeadlampThe Kubernetes API, live. Headlamp stores nothing.
How much CPU and memory each service uses, and how that changed over the last hoursGrafanaPrometheus, which collects numbers every 30 seconds
Which service is slow, and where one request spent its timeGrafana, with TempoTempo, which keeps each trace for a set time
Which services call which, and how oftenGrafana, service graphTempo counts the calls in the traces and writes them to Prometheus
Logs aren't part of this setup

These tools don't collect logs. kubectl logs shows a service's log since its last start, and kubectl logs --previous the log of the run before, but nothing older. To keep logs for longer, add a log collector, for example Grafana Loki.

How the data travels​

The OpenLM Platform services push traces and their own metrics to the OpenTelemetry collector while they work. The collector sends traces to Tempo and keeps the metrics for Prometheus. Prometheus pulls numbers from Kubernetes, the nodes and the collector every 30 seconds. Grafana stores nothing itself: it asks Prometheus and Tempo each time you open a panel. Headlamp talks only to the Kubernetes API.

OpenLM Platform services
│
│ traces and metrics (OTLP, port 4317)
v
OpenTelemetry collector ───── traces ─────> Tempo
│ │
│ metrics (port 8889) │ call counts
v v
Prometheus <──────────────────────────────────┘
^
│ pulled every 30 s
Kubernetes, nodes

Grafana ──── queries ────> Prometheus and Tempo
Headlamp ─── live ───────> Kubernetes API

Choose your setup​

Choose the setup that matches what your organization already runs:

Your situationWhat to do
You already run an OpenTelemetry collector, or an observability service that accepts OTLPTurn on telemetry and point it at your collector. Skip the rest.
You have no monitoring on the cluster yetInstall the monitoring tools: Headlamp, Prometheus, Grafana, Tempo and an OpenTelemetry collector. The page ends with turning on telemetry.
Monitoring runs, and you want to find a problemFind problems with monitoring

The documentation team might draft this page using a large language model. A technical writer reviews every page and verifies it against the product before publishing it. A human makes the final decision.