---
title: Monitor OpenLM Platform
description: See what runs, what slows down and what fails in a self-hosted OpenLM Platform on Kubernetes, with traces, metrics and a cluster view.
product: 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 know | Look in | Where the answer comes from |
|---|---|---|
| What runs, what is broken, why a pod restarted | Headlamp | The Kubernetes API, live. Headlamp stores nothing. |
| How much CPU and memory each service uses, and how that changed over the last hours | Grafana | Prometheus, which collects numbers every 30 seconds |
| Which service is slow, and where one request spent its time | Grafana, with Tempo | Tempo, which keeps each trace for a set time |
| Which services call which, and how often | Grafana, service graph | Tempo counts the calls in the traces and writes them to Prometheus |

:::note[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.

```text
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 situation | What to do |
|---|---|
| You already run an OpenTelemetry collector, or an observability service that accepts OTLP | [Turn on telemetry](https://www.openlm.com/documentation/cloud/deployment-operations/on-premise/deployment-guide/kubernetes/monitoring/turn-on-telemetry/) and point it at your collector. Skip the rest. |
| You have no monitoring on the cluster yet | [Install the monitoring tools](https://www.openlm.com/documentation/cloud/deployment-operations/on-premise/deployment-guide/kubernetes/monitoring/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 problem | [Find problems with monitoring](https://www.openlm.com/documentation/cloud/deployment-operations/on-premise/deployment-guide/kubernetes/monitoring/find-problems/) |
