1. What is Kubernetes Monitoring for? #
A ready-made view of your clusters.
The principle #
Available in: ✕ OSS ✕ Enterprise ✓ Cloud Helm chart: open source
Kubernetes Monitoring is Grafana Cloud's app for clusters. A single Helm chart, k8s-monitoring, deploys collection (Grafana Alloy and the usual exporters); the app then shows clusters, nodes, namespaces, workloads, pods and containers, with their metrics, logs, events and costs.
What is collected #
| Source | Data |
|---|---|
| kube-state-metrics | object state: deployments, replicas, pending pods, restarts |
| node-exporter | node CPU, memory, disk and network |
| kubelet / cAdvisor | actual usage of each container |
| Pod logs | read on nodes by Alloy, sent to Loki with Kubernetes labels |
| Kubernetes events | OOMKilled, scheduling failures, failing probes |
| OpenCost | estimated cost per namespace, workload and pod |
| Options | OTLP reception from applications, profiles (Pyroscope), Beyla, integrations (databases…) |
2. Installing with Helm #
The k8s-monitoring chart.
Chart versions #
- v3 replaced the Alloy subchart with the Alloy Operator, which deploys Alloy instances from
kind: Alloyobjects. - v4 (2026), described as the chart's biggest overhaul, removes hard-coded collector names (
alloy-metrics,alloy-logs…); a tool converts a v3 values file to v4.
Watch out : The values file structure changes between major versions: start from the file generated by the Grafana Cloud wizard for your version rather than an example found online.
Step by step #
- In Grafana Cloud, open Kubernetes Monitoring › Configuration, name the cluster and choose features (metrics, logs, events, costs, application traces).
- Create an access token with write permissions; the wizard produces the
values.yamlfile and the Helm command. - Install, then check that collector pods are ready and the cluster shows up in the app.
helm repo add grafana https://grafana.github.io/helm-charts && helm repo update
# values.yaml: generated by the “Kubernetes Monitoring › Configuration” wizard of your Grafana Cloud stack
helm upgrade --install grafana-k8s-monitoring grafana/k8s-monitoring \
--namespace monitoring --create-namespace --values values.yaml
kubectl -n monitoring get pods # Alloy collectors, kube-state-metrics, node-exporter…
kubectl -n monitoring logs -l app.kubernetes.io/name=alloy --tail=50Best practice : Put the token in a Kubernetes Secret managed by your secret tool (External Secrets, Sealed Secrets) rather than in clear text in a versioned values.yaml.3. Using the app #
From cluster to container.
Navigation #
- Clusters: overall health, firing alerts, nodes, resource usage.
- Namespaces and workloads: available replicas, restarts, usage compared with requests and limits.
- Pods and containers: metrics, logs, events and, if enabled, traces and profiles in one place.
- Costs: estimated cost and resources paid for but unused (oversized requests).
Resource efficiency #
The app compares actual usage with requests: a container requesting 2 CPUs and using 0.2 blocks paid capacity. These gaps guide right-sizing, now possible in place since Kubernetes 1.35.
# Containers using more than 90% of their memory limit
max by (namespace, pod, container) (container_memory_working_set_bytes{container!=""})
/ on (namespace, pod, container) max by (namespace, pod, container) (kube_pod_container_resource_limits{resource="memory"}) > 0.94. Alerts, collection costs and troubleshooting #
Staying useful without blowing up the bill.
Alerts #
Recommended alert rules are provided (crashing pods, saturated nodes, nearly full volumes, unavailable replicas). Enable them, then tune thresholds and routing in Grafana Alerting; add your business alerts alongside.
Controlling volume #
- By default the chart keeps a list of useful metrics: do not add all cAdvisor or kubelet metrics without a need.
- Filter noisy logs (health probes, system namespaces) in the chart configuration, and use Adaptive Metrics and Adaptive Logs afterwards.
Troubleshooting #
- Missing cluster: check the cluster name in the values and the Alloy pod logs (401 errors = token, 429 = limit).
- No costs: OpenCost must be enabled and the cloud provider (or default pricing) configured.
- No logs: Alloy log pods must run on every node (DaemonSet) with access to
/var/log.
Commands to know #
Commands to know
helm upgrade --install … grafana/k8s-monitoring: install or upgrade collectionkubectl -n monitoring get alloy: Alloy instances managed by the Alloy Operatorkubectl -n monitoring logs -l app.kubernetes.io/name=alloy: collector logskubectl top pods -A: instant usage (metrics-server)helm get values grafana-k8s-monitoring -n monitoring: currently deployed values
Your turn #
- Create a test cluster (kind, k3d) and install k8s-monitoring with the wizard.
- Deploy an app with a pod exceeding its memory limit: find the OOMKilled event and the memory graph.
- Find the most oversized workload in the cost view.
Sources #
Checked in November 2026: Grafana Cloud offerings change fast, check Grafana's “What's new” page before relying on a detail.
