Browse docs
On this page

Kubernetes Observability

Monitor your Kubernetes clusters - nodes, workloads, pods, containers, services, volumes and autoscalers with their health, each one's events and YAML, a map of which workloads run on which nodes, dashboards and sixteen ready-made alerts - from the OpenTelemetry Operator you install with one Helm command.

The Kubernetes Observability add-on adds a Kubernetes area for the clusters you send us. It answers three questions:

  • Is the cluster healthy? Nodes ready, pods by phase, container restarts, node CPU and memory, deployments short of replicas, and the latest warning events.
  • What is running, and where? Every node, namespace, workload, pod, container, service, ingress, volume, autoscaler and ConfigMap the cluster reported in the last hour, and a map of which workloads run on which nodes.
  • What is one pod doing? Its CPU and memory, per container, its restarts, the warning events about it and its newest log lines.

The Kubernetes area has five screens:

  • Overview: one cluster at a glance, picked with the Cluster filter.
  • Resources: everything the cluster runs, one kind per tab, each opening its details, its Kubernetes events and its YAML.
  • Resource Map: the cluster's workloads linked to the nodes their pods run on.
  • Dashboards: three dashboards that ship with the add-on, Cluster Overview, Nodes and Pods.
  • Alert Rules: sixteen alerts that ship with the add-on, switched on when you turn it on.

Powered by OpenTelemetry. The data comes from the OpenTelemetry Operator and stock OpenTelemetry Collectors running in your cluster, installed with one Helm command. There is no agent of ours in the cluster and no second destination. See Connect a Kubernetes cluster.

Turn it on

It is an add-on like every other. A workspace Owner or Admin turns it on from Add-ons in the app, and turning it on or off affects only that workspace. It costs nothing extra: the cluster's logs, metrics and events are billed on the same per-GB meter as the rest of your data.

If your workspace is already receiving Kubernetes data and the add-on is off, Owners and Admins see a Kubernetes data detected suggestion under the Notifications bell at the top of the app. Turn on Kubernetes Observability there switches the add-on on in one click. Dismiss hides the suggestion for you only; other Owners and Admins still see it.

The add-on controls the Kubernetes pages and dashboards, and nothing else. A cluster's data is accepted, stored and searchable in the Log Explorer whether it is on or off, and turning it on later shows the history you already sent, within your retention. While it is off, the Kubernetes pages say so and the Kubernetes section is hidden from the navigation.

Connect a cluster

Turning the add-on on does not collect anything by itself. The pages fill in once a cluster sends its telemetry. Connect Your Data in the app has a Kubernetes option that gives you one helm upgrade --install command with an ingest key already filled in. Connect a Kubernetes cluster walks through it: what the command installs, what it collects, what it is allowed to do in your cluster, and how to change or remove it.

A cluster appears on the Kubernetes pages a minute or two after its Collectors start. Until one has reported in the last hour, the pages say so and link to the setup.

Overview

Overview shows one cluster. Pick another with the Cluster filter, beside the time range; the choice stays in the page's address, so a link opens the same cluster.

The page is the Cluster Overview dashboard, narrowed to that cluster:

  • Nodes, running pods, pods that were Pending or Failed, and warning events.
  • CPU and memory by node over time.
  • Pods by phase and pods by namespace.
  • The most restarted pods.
  • Kubernetes events over time, Normal and Warning.
  • Deployments, with desired and available replicas. Available below desired means pods are not ready.
  • Warning events by reason and the kind of object they are about.

Resources

Resources lists what the selected cluster reported in the last hour, one kind per tab: Nodes, Namespaces, Workloads, Pods, Containers, Services, Ingresses, Volumes, Autoscalers and ConfigMaps. It opens on Nodes, and the tab you pick stays in the page's address, so a link opens the same tab.

Above each tab's table are a few figures about that kind: pods by phase, nodes not ready, containers with restarts, volumes still pending, autoscalers at their maximum. A figure that needs a look is highlighted. The figures are counted from the same list as the table, before any search.

TabColumns
NodesReady or Not ready, pods, CPU, memory
NamespacesPods, CPU, memory, restarts
WorkloadsKind (Deployment, StatefulSet, DaemonSet, CronJob, Job or Pod), namespace, pods, CPU, memory, restarts
PodsPhase, namespace, CPU, memory, restarts
ContainersReady or Not ready, pod, CPU, memory, restarts
ServicesType, namespace, ports, created
IngressesHosts, namespace, load balancer address
VolumesThe PersistentVolumeClaim's phase, namespace, space used of its capacity
AutoscalersIn range, at minimum or at maximum, namespace, what it scales, replicas now and its range
ConfigMapsNamespace, created

CPU and memory are averages over the hour. A namespace or a workload adds up its pods' CPU and memory and takes their highest restart count. A workload is what owns the pods; a ReplicaSet created by a Deployment is shown as that Deployment, and a pod nothing owns is its own workload.

Search matches any part of a name, and the list is paged, 10 rows at a time by default. On a phone, a row keeps its name and one or two figures.

A resource's details

Select a row to open its details beside the list:

  • Overview: its facts, such as a pod's node and owner, a container's image and limits, a service's ports or a volume's size, with Open dashboard (for nodes, namespaces, workloads, pods and containers) and Explore telemetry, which opens its logs, metrics and events from the last hour in the Log Explorer.
  • Events: the newest Kubernetes events about it from the last day, Warning or Normal, with how many times each happened.
  • YAML: its manifest as the cluster last reported it, laid out the way kubectl get -o yaml prints it, with a copy button. A container shows its pod's manifest. Environment variable values are hidden, and a ConfigMap never includes its data, which the chart removes before it leaves the cluster.

Services, ingresses, volumes and ConfigMaps, and every YAML tab, come from the manifests the chart sends from version 0.2.0. A cluster on an older version shows those tabs empty until you upgrade the chart.

The lists are built from the first 5,000 pods, or 5,000 objects of a kind, a cluster reported in the hour. A larger cluster shows a note saying so: some resources may be missing, and a search only looks through the ones shown. The dashboards and the Log Explorer are not limited this way.

Resource Map

Resource Map shows how the selected cluster's workloads fit onto its nodes: each workload, named as namespace/name, is linked to every node its pods ran on in the time range, and a thicker link means more pods. Narrow it to one namespace with the filter above the map. To look at one pod, find it on Resources and open its dashboard.

Dashboards

Dashboards under Kubernetes in the navigation lists the three dashboards that ship with the add-on:

  • Cluster Overview: the dashboard on the Overview page. Cluster and Namespace filters.
  • Nodes: nodes, nodes not ready, CPU in use, CPU and memory by node, pods per node, and peak CPU and memory per node. Cluster and Node filters.
  • Pods: pods, container restarts, peak pod memory, CPU and memory by pod and by container, restarts by container, warning events about pods by reason, and the newest log lines from the matching pods. Cluster, Namespace and Pod filters.

They are read-only; Duplicate adds an editable copy to your own dashboards. Favourite adds one to your sidebar and Hide takes it off your own list, the same as the other managed dashboards. Every panel opens in the Log Explorer with its query.

Alerts

Alert Rules under Kubernetes lists sixteen alerts that ship with the add-on. They are all switched on when you turn the add-on on, and notify your default notification groups. Switch off any you do not want; one you switch off stays off. Each fires once per cluster and per node, pod or workload it is about, so two failing pods are two alerts. Open one to change its threshold, how long it looks back and how long the problem must last before it fires, or to send it somewhere of its own. Alert settings applies to all of them.

AlertFires when
Cluster stopped reportingA cluster that was sending data sends no node readings for 5 minutes.
Node not readyMost of a node's readings over 5 minutes say it is not Ready, for 2 minutes more.
Node memory pressureThe kubelet reports the node is running out of memory.
Node disk pressureThe kubelet reports the node is running out of disk space.
Pod crash loopingThe kubelet is backing off restarting a container that keeps failing.
Image pull failingA pod cannot pull one of its images.
Pod stuck pendingA pod has been Pending for nearly all of 15 minutes, and 5 minutes more.
Pod in an unknown stateA pod's phase has been Unknown for most of 5 minutes, and 5 minutes more.
Pod failedA pod is reported Failed.
Deployment missing replicasA Deployment has had fewer available replicas than it wants for 10 minutes.
StatefulSet missing replicasA StatefulSet has had fewer ready pods than it wants for 10 minutes.
DaemonSet pods not readyA DaemonSet has had fewer ready pods than nodes it should run on for 15 minutes.
DaemonSet misscheduledA DaemonSet has pods on nodes they should not be on.
Job failedA Job has failed pods.
Autoscaler at its maximumAn autoscaler has been at its maximum replicas for 15 minutes.
Volume almost fullA PersistentVolumeClaim has less than 10% of its space free.

Every alert explains why its default is what it is and lists what to check when it fires. You can also alert on anything else on these pages: run its query in the Log Explorer and choose Create Alert.

Tenant Isolation & Data Boundaries

The ingest key in the install command decides which workspace a cluster's data lands in, as it does for every other source; nothing a Collector sends can name another workspace. The Kubernetes pages read only the signed-in workspace's own data, through the same workspace-scoped queries as the Log Explorer. Two workspaces can each have a cluster called prod, and each sees only its own. Nothing we run connects into your cluster: the Collectors only send out. See Tenant Isolation for the full model.