Skip to main content

Find problems with monitoring

Use the monitoring tools to answer the questions that come up when you run OpenLM Platform. Each section starts from a problem and shows where to look. The section assumes the tools from Install the monitoring tools, with telemetry turned on.

A service keeps restarting​

When a page of OpenLM Platform stops loading, or loads only now and then, find out whether a service restarted and why:

  1. In Headlamp, open Overview and choose openlm in Namespaces. The Events list shows the warnings Kubernetes raised, such as failed health checks.

    Headlamp Overview with CPU and memory use of the cluster and the warning events of the openlm namespace The API gateway failed its readiness check while the node was busy starting services

  2. Open Workloads, then Pods. The Restarts column shows how often each pod restarted and how long ago.

    Headlamp Pods list of the openlm namespace with the Restarts, Status, CPU and Memory columns The API gateway restarted three times, the last time 11 minutes ago

  3. Select the pod to read its events and its log.

With kubectl, the same checks are:

kubectl -n openlm get pods
kubectl -n openlm describe pod <pod> # Last State, Reason and Events
kubectl -n openlm logs <pod> --previous # the log of the run before the restart

Kubernetes keeps only these two logs, and the monitoring tools don't collect logs. When a service restarts several times, the log that explains the first restart can be gone.

The following table lists the reasons you're most likely to see in describe pod:

You seeMeaningWhat to do
Last State: Terminated, Reason: OOMKilledThe service used more memory than its limitRaise the component's resources.limits.memory in your values file. See Values reference.
Events Unhealthy with Liveness probe failedThe service didn't answer its health check in time, so Kubernetes restarted it. This happens when a node is short of CPU, for example while many services start at once.Check the node's CPU in Headlamp or Grafana. If the restarts stop when the node is quiet, the node is too small for peak times.
CrashLoopBackOffThe service stops each time it startsRead logs --previous. See Troubleshooting.

Kubernetes keeps events for about an hour, and Headlamp shows only what Kubernetes has now. For older restarts, use the Pod restarts (last hour) table on the OpenLM services dashboard, or the restart history in Prometheus: increase(kube_pod_container_status_restarts_total{namespace="openlm"}[24h]) > 0.

A page is slow​

To find which service makes a page slow, and where it spends the time:

  1. In Grafana, open the OpenLM services dashboard. In 95th percentile response time by service, find the service whose line goes up when the page is slow. The chart shows, for each service, the time within which 95% of its requests finish.

    OpenLM services dashboard with services sending traces, requests per second, failed requests, response time per service and the service graph The OpenLM services dashboard. The high line in the response time chart is the first calls of a service after a restart

  2. In Slowest operations, find the request of that service that takes the longest. Slow requests lists single traces over 300 ms.

  3. To read one request, open Explore, choose the Tempo data source, and search for traces of the service, or paste a trace ID.

A trace shows one request as it passes from service to service. Each bar is one step, called a span, placed where it started and as long as it took.

Trace of one request in Grafana Explore with the License Manager span and two shorter spans of the security and products services One request to License Manager, which called two other services near its end

In this example, the request to License Manager took 856 ms. License Manager asked the security service for a token (73 ms) and the products service for data (96 ms). The rest of the time passed inside License Manager, with no spans to say on what. Time without spans is often database work that the service doesn't record in its traces. To see which calls a service records, read the configuration line described in What OpenLM Platform sends.

The cluster runs out of room​

Kubernetes places a pod by its requests, the CPU and memory reserved for it, not by what it uses. A node can show plenty of free memory and still refuse new pods because its requests are used up. The new pods then stay Pending with Insufficient memory or Insufficient cpu. Check both figures:

  1. Use: in Headlamp, Overview shows the CPU and memory the cluster uses now. In Grafana, the Kubernetes / Compute Resources / Namespace (Pods) dashboard, with openlm in namespace, shows each pod's use over time, next to its requests and limits.

    Grafana Namespace (Pods) dashboard for the openlm namespace with CPU use per pod over one hour CPU of the openlm namespace. The peak is the topic setup job during an upgrade

  2. Requests: run kubectl describe node <node> and read Allocated resources. It shows the requests of all pods on the node as a percentage of what the node can give.

When the memory requests come close to 100%, a rolling restart or an upgrade can't start the extra pod it needs. Add a node or memory. Sizing shows how much your installation needs.

Which services depend on which​

To see which services call which, and how often, look at the service graph. The Who calls whom panel on the OpenLM services dashboard shows it for all services. In Explore, with the Tempo data source, you can also filter it to a few services.

Service graph in Grafana Explore with six services, Redis and MongoDB, each with its average response time and requests per second The service graph filtered to six services. Redis is the busiest dependency

Each circle is a service or a data service, with its average response time and requests per second. Each arrow is a call. A green ring means the calls succeed, and red marks failed calls. Tempo draws the graph from call rates, so a call that happened only once in the time range can be missing.

Monitoring shows no data​

If a dashboard is empty, find the symptom in the following table:

SymptomCheck
Services sending traces shows 0The services print Telemetry:: Telemetry enabled in their logs, as described in Check that data arrives. If they do, read the collector's log: kubectl -n openlm-telemetry logs deploy/otel-collector
The Kubernetes dashboards are emptyIn Prometheus, Status, then Target health: every target shows UP
Traces arrive, but the service graph and the OpenLM services dashboard stay emptyPrometheus accepts what Tempo writes (enableRemoteWriteReceiver: true), and Tempo's log shows no errors: kubectl -n openlm-telemetry logs tempo-0
The node exporter doesn't startAnother program on the node uses its port. Give it the port 9110, as in the kps-values.yaml file of Install the monitoring tools.
The Grafana target is down after you serve Grafana under a sub-pathSet grafana.serviceMonitor.path to the sub-path followed by /metrics, for example /grafana/metrics

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.