Skip to main content
This guide shows how to enable and expose Cilium metrics so an external observability stack (Prometheus + Grafana) can collect and visualize them. Cilium can emit metrics for its datapath components, Hubble (flow telemetry), and the Cilium Operator — but these metrics are not enabled by default. Use Helm values to enable the relevant metric endpoints and ServiceMonitors so a Prometheus Operator can discover and scrape them.
A diagram of an observability setup where Prometheus scrapes metrics from Cilium running in a Kubernetes cluster (two nodes with pods) and Grafana queries Prometheus for visualization. A caption notes that Cilium, Hubble, and the Cilium Operator do not expose metrics by default.

Enable Cilium, Operator and Hubble metrics via Helm values

Below is a concise values file example for the Cilium Helm chart. Adjust the metric families in hubble.metrics.enabled to match the observability needs for your cluster and Cilium version.

What these values do

Check the official Cilium/Hubble metrics documentation for the complete and up-to-date list of metric families and any changes to Helm values: https://docs.cilium.io/en/stable/observability/metrics/

Install or upgrade Cilium with the metrics values

Add the Cilium Helm repository, update it, and apply your values file to install or upgrade Cilium:
Kubernetes rolling updates typically handle changes automatically. To ensure the new configuration is picked up immediately, restart the Cilium pods and the operator:

Verify Prometheus discovery and dashboards

Steps to validate metrics collection and visualization:
  • Deploy Prometheus and Grafana (for example, via the kube-prometheus-stack) or use an existing Prometheus instance that can discover ServiceMonitors.
  • If you use the Prometheus Operator / kube-prometheus-stack, the ServiceMonitors created by the Cilium chart will let Prometheus scrape Cilium, the operator, and Hubble.
  • In the Prometheus UI navigate to Status → Targets and look for cilium-*, cilium-operator, and hubble targets. Confirm they are UP and being scraped.
  • Import or create Grafana dashboards to visualize Cilium and Hubble metrics. There are community dashboards and templates for Cilium available that you can adapt.
Helpful troubleshooting checklist: Additional hands-on monitoring resources:
Metric names and Helm values may change across Cilium releases. Always verify keys, supported metric families, and the values schema against the documentation for your specific Cilium version before applying changes in production.

Watch Video