How to monitor Kubernetes clusters
Send cluster metrics to Flare with the OpenTelemetry Collector's kubeletstats
and k8s_cluster receivers, and see them on the Kubernetes page. The page
has five tabs: Nodes, Namespaces, Workloads (Deployments,
StatefulSets, DaemonSets, Jobs, and CronJobs), Pods, and Volumes. Nodes,
workloads, pods, and volumes each have drill-down charts.
The Kubernetes page is separate from Resources. Resources polls the Kubernetes API and lists only Flare's own pods. The Kubernetes page shows your whole cluster, as reported by your collector over OTLP.
Prerequisites
- A running Flare instance with its OTLP port (
4317gRPC or4318HTTP) reachable from the cluster. - The OpenTelemetry Collector Contrib
distribution (
otelcol-contrib), deployed in the cluster. The OpenTelemetry Helm chart is the easiest way to deploy it.
Configure the collector
The two receivers report different things, and each fills different columns:
| Receiver | Runs as | Reports |
|---|---|---|
kubeletstats |
A DaemonSet (one collector per node) | Node and pod CPU and memory usage, pod volume usage |
k8s_cluster |
A single-replica Deployment | Node readiness, allocatable CPU, pod phase, container restarts, workload replica and job counts, namespace phase |
With the Helm chart, the kubeletMetrics preset adds kubeletstats to a
DaemonSet collector, and the clusterMetrics preset adds k8s_cluster to a
Deployment collector. You can run only one of them; the columns the other one
feeds show —.
DaemonSet collector (kubeletstats)
receivers:
kubeletstats:
auth_type: serviceAccount
endpoint: "https://${env:K8S_NODE_NAME}:10250"
insecure_skip_verify: true
collection_interval: 60s
metric_groups: [node, pod, container, volume]
processors:
k8sattributes: {}
exporters:
otlp:
endpoint: flare.example.internal:4317 # your Flare.Ingest host
tls:
insecure: true # or configure TLS
service:
pipelines:
metrics:
receivers: [kubeletstats]
processors: [k8sattributes]
exporters: [otlp]
The k8sattributes processor is recommended. It adds each pod's node name and
owning workload (Deployment, StatefulSet, DaemonSet, Job, or CronJob), which the
Pods table shows in its Node and Workload columns. The Workloads table
also needs it to count a workload's pods and sum their CPU and memory.
metric_groups is optional. The volume group is off by default; add it to
fill the Volumes tab.
Deployment collector (k8s_cluster)
receivers:
k8s_cluster:
collection_interval: 60s
allocatable_types_to_report: [cpu]
service:
pipelines:
metrics:
receivers: [k8s_cluster]
exporters: [otlp]
allocatable_types_to_report: [cpu] is optional. Without it, the CPU %
alloc. column stays empty.
To tell clusters apart, set a k8s.cluster.name resource attribute on both
collectors, for example with the resource processor. The Nodes table then
gets a cluster filter.
If you've enabled ingest API keys, add the key
to the exporter's headers.
Read the Nodes table

Open the ⋯ menu at the top right and pick Kubernetes. Nodes appear within one collection interval.
| Column | Source metric | Meaning |
|---|---|---|
| Status | k8s.node.condition_ready |
The latest reported readiness |
| CPU | k8s.node.cpu.usage |
CPU in use, averaged over the window, in millicores (250m) or cores |
| CPU % alloc. | k8s.node.allocatable_cpu |
CPU as a share of the node's allocatable CPU |
| Memory | k8s.node.memory.working_set |
Memory working set, averaged over the window |
| Memory % | k8s.node.memory.available |
Working set as a share of working set plus available memory |
| Pods | any k8s.pod.* metric |
Distinct pods that reported on this node during the window |
| Last seen | any k8s.node.* metric |
When the node last reported |
Flare also reads k8s.node.cpu.utilization, the older name for the same CPU
figure that older collectors send.
- Drill down by clicking a node name. This opens charts of CPU, CPU %, memory, and memory % over the selected window.
- See a node's pods by clicking its Pods count, or View pods on this node in the drill-down.

Read the Pods table

Switch to the Pods tab, or open /kubernetes?tab=pods.
| Column | Source metric | Meaning |
|---|---|---|
| Workload | k8s.deployment.name and similar resource attributes |
The owning Deployment, StatefulSet, DaemonSet, CronJob, Job, or ReplicaSet |
| Node | k8s.node.name |
The node the pod last reported from |
| Status | k8s.pod.phase |
The latest phase: Pending, Running, Succeeded, Failed, or Unknown |
| Restarts | k8s.container.restarts |
The latest restart count, summed across the pod's containers |
| CPU | k8s.pod.cpu.usage |
CPU in use, averaged over the window, plus the share of the pod's limit when reported |
| Memory | k8s.pod.memory.working_set |
Memory working set, averaged over the window, plus the share of the pod's limit when reported |
The share of limit comes from the kubeletstats receiver's opt-in
k8s.pod.cpu_limit_utilization and k8s.pod.memory_limit_utilization
metrics. See How to monitor hosts
for how to enable them.
Filter pods by name (substring, case-insensitive), namespace, or node. Click a pod name for its CPU and memory charts.
View logs in a pod's drill-down opens Logs filtered to that pod's
k8s.namespace.name and k8s.pod.name resource attributes. It finds only logs
that carry those attributes, so run the k8sattributes processor in your logs
pipeline too.
Read the Namespaces table
Switch to the Namespaces tab, or open /kubernetes?tab=namespaces. A
namespace appears when any k8s.* metric carries its k8s.namespace.name.
| Column | Source metric | Meaning |
|---|---|---|
| Status | k8s.namespace.phase |
Active or Terminating |
| Pods | any k8s.pod.* metric |
Distinct pods that reported in the namespace during the window |
| CPU, Memory | k8s.pod.cpu.usage, k8s.pod.memory.working_set |
The namespace's pods' total usage (see below) |
Click a namespace to open the Pods tab filtered to it. The Workloads, Pods, and Volumes tabs share one namespace filter.
Read the Workloads table

Switch to the Workloads tab, or open /kubernetes?tab=workloads, and pick a
kind. The Status column depends on the kind:
| Kind | Status | Source metrics |
|---|---|---|
| Deployment | Available of desired replicas | k8s.deployment.available, k8s.deployment.desired |
| StatefulSet | Ready of desired pods | k8s.statefulset.ready_pods, k8s.statefulset.desired_pods |
| DaemonSet | Ready of desired nodes, plus a red badge when nodes are misscheduled | k8s.daemonset.ready_nodes, k8s.daemonset.desired_scheduled_nodes, k8s.daemonset.misscheduled_nodes |
| Job | Succeeded of desired pods, failed pods, active pods | k8s.job.successful_pods, k8s.job.desired_successful_pods, k8s.job.failed_pods, k8s.job.active_pods |
| CronJob | Active jobs | k8s.cronjob.active_jobs |
All of these come from the k8s_cluster receiver and show the latest reading
in the window. Flare also reads the newer semantic-convention names, such as
k8s.deployment.pod.desired. Sort by Status to put the most degraded
workloads first: the most replicas short of desired, or the most failed pods.
Pods, CPU, and Memory come from the pods that carry the workload's
name, which the k8sattributes processor adds. CPU and memory are the pods'
total usage: summed across pods at each moment, then averaged over the window.
Old and new pods of a rolling update only add up while both actually run.
Click a workload name for charts of its counts, CPU, and memory. View pods opens the Pods tab filtered to that workload. A Job's pods are found even when a CronJob owns the Job.
Read the Volumes table
Switch to the Volumes tab, or open /kubernetes?tab=volumes. Each row is
one volume mounted by one pod, from the kubeletstats receiver's volume
metric group.
| Column | Source metric | Meaning |
|---|---|---|
| Volume | k8s.volume.name, k8s.persistentvolumeclaim.name |
The volume, and its claim for a PVC-backed volume |
| Type | k8s.volume.type |
For example persistentVolumeClaim, emptyDir, or configMap |
| Used, Capacity | k8s.volume.capacity, k8s.volume.available |
Capacity minus available, and capacity |
| Used % | the same | Used as a share of capacity |
| Inodes % | k8s.volume.inodes, k8s.volume.inodes.used (or .free) |
Used inodes as a share of all inodes |
Volume figures are the latest reading in the window, not an average, so a filling volume shows its current level. The table sorts by Used %, fullest first. Search matches the volume or claim name. Click a volume for charts of its used bytes, used %, and inodes %.
Read the Events tab
Switch to the Events tab, or open /kubernetes?tab=events. It lists Kubernetes
events (BackOff, FailedScheduling, OOMKilling, and so on), newest first. They
come from the collector's k8sobjects receiver, which sends them as
logs. The collector needs RBAC to list and watch events:
receivers:
k8sobjects:
objects:
- name: events
mode: watch
group: events.k8s.io
service:
pipelines:
logs:
receivers: [k8sobjects]
exporters: [otlp]
Use mode: watch. Flare reads an event from the watch body (object.reason,
object.involvedObject.kind, and so on); events collected with mode: pull have
no object wrapper and don't show up.
Each row shows the time, Type (Warning or Normal), Reason, the involved
object, its namespace, and the message. A repeated event shows its count (×5). Use
the namespace and type pickers, or search the reason and message. Click a Pod or
Node to open its sheet.
A pod's or node's sheet has a View events button that opens this tab filtered to that object; clear the filter with the × on its chip. No new storage is involved: events are ordinary logs, so they also appear in the Logs explorer. The tab shows the newest 200 events in the window.
Limits and staleness
A — means Flare received no data for that metric in the window. It is never shown as 0.
A node or pod that hasn't reported for more than five minutes is marked stale. A deleted pod stays in the list, marked stale, until it falls out of the selected window.
The Nodes and Namespaces tables list up to 500 rows; the Workloads, Pods, and Volumes tables list up to 1,000. If more match, a notice asks you to narrow the filter.
Troubleshooting
No nodes or pods appear. Check the collector's logs for export errors. Flare
identifies nodes by the k8s.node.name resource attribute and pods by
k8s.pod.name plus k8s.namespace.name; both receivers set these by default.
The Node or Workload column is empty for some pods. kubeletstats doesn't
set a pod's node or owner itself. Add the k8sattributes processor, or run the
k8s_cluster receiver, which reports each pod's node.
Status, Restarts, and CPU % alloc. are empty. These come from the
k8s_cluster receiver. Deploy it as described above.
A workload's Status is empty, but its Pods, CPU, and Memory are filled. The
workload was found through its pods' attributes only. Deploy the k8s_cluster
receiver for replica and job counts.
A workload's Pods, CPU, and Memory are empty. Its pods don't carry the
workload's name. Add the k8sattributes processor to the kubeletstats
pipeline.
The Volumes tab is empty. Add volume to the kubeletstats receiver's
metric_groups.
Last updated: