RousselTMLEARNING

Observability

Kubernetes Monitoring in Grafana Cloud

Kubernetes Monitoring in Grafana Cloud: k8s-monitoring Helm chart (v4) and Alloy Operator, cluster metrics, logs, events, costs, navigation from cluster to container, resource efficiency, alerts and troubleshooting.

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.

Kubernetes Monitoring

What is collected #

SourceData
kube-state-metricsobject state: deployments, replicas, pending pods, restarts
node-exporternode CPU, memory, disk and network
kubelet / cAdvisoractual usage of each container
Pod logsread on nodes by Alloy, sent to Loki with Kubernetes labels
Kubernetes eventsOOMKilled, scheduling failures, failing probes
OpenCostestimated cost per namespace, workload and pod
OptionsOTLP 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: Alloy objects.
  • 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 #

  1. In Grafana Cloud, open Kubernetes Monitoring › Configuration, name the cluster and choose features (metrics, logs, events, costs, application traces).
  2. Create an access token with write permissions; the wizard produces the values.yaml file and the Helm command.
  3. 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=50
Best 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.9

4. 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 #

  1. Missing cluster: check the cluster name in the values and the Alloy pod logs (401 errors = token, 429 = limit).
  2. No costs: OpenCost must be enabled and the cloud provider (or default pricing) configured.
  3. 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 collection
  • kubectl -n monitoring get alloy : Alloy instances managed by the Alloy Operator
  • kubectl -n monitoring logs -l app.kubernetes.io/name=alloy : collector logs
  • kubectl top pods -A : instant usage (metrics-server)
  • helm get values grafana-k8s-monitoring -n monitoring : currently deployed values

Your turn #

  1. Create a test cluster (kind, k3d) and install k8s-monitoring with the wizard.
  2. Deploy an app with a pod exceeding its memory limit: find the OOMKilled event and the memory graph.
  3. 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.

Related articles

Time-based vs event-based SLO: understanding, computing and choosing (with the Qonto example)

Differences between time-based SLOs (time slices, uptime) and event-based SLOs (good events over total): defi…

The observability trilemma: cost, completeness and performance, and how solutions resolve it

Understanding the observability trilemma (cost, data completeness, query performance), its three trade-offs, …

Grafana administration and security: organizations, teams, RBAC, service accounts and authentication

Running Grafana in a company: organizations, teams, folders, roles and RBAC, data source permissions, service…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!