Skip to main content
This guide walks through installing Helm and deploying the kube-prometheus-stack Helm chart to provision Prometheus, Alertmanager, and related Kubernetes monitoring components. You’ll learn how to install Helm, add the Prometheus Community chart repository, inspect and customize chart values, and install/uninstall the chart.

Prerequisites

  • A Kubernetes cluster with kubectl configured to talk to it.
  • Sufficient RBAC permissions to create the monitoring components (or use a cluster-admin account for initial testing).

Install Helm

Follow the official Helm installation instructions: https://helm.sh/docs/. A quick cross-platform installer script is available for Linux/macOS:
You can also run the script via a pipe (less secure):
If you prefer a package manager:
Or extract a tarball and move the binary:
Verify Helm is installed:
Example output:

Quick reference: Installation methods

If you manage machines with configuration management or CI, install Helm using your package manager or extract the tarball and add the helm binary to your PATH for consistent, auditable installs.

Add the Prometheus Helm repository

Add the Prometheus Community charts repository and update the local index:
Expected output when the repo already exists:

Inspect chart values (customization)

Charts expose configurable values to tailor deployments. To view the default values for kube-prometheus-stack:
The output is extensive. Save the defaults to a local file to edit:
Open values.yaml to customize namespaces, service types, ports, resource requests, and more. Example excerpts from the defaults:
Service configuration excerpt:
If you plan to customize the chart, edit values.yaml and pass it when installing or upgrading the release with -f values.yaml.

Install the kube-prometheus-stack chart

Install using the chart defaults:
Notes:
  • prometheus is the Helm release name; choose any valid release name (for example monitoring or prom-stack).
  • To apply your custom values:
Uninstall the release:

Example install session

Example successful install output:
After installation, verify deployed resources:

Chart documentation and files

To understand how the chart templates resources (Deployments, StatefulSets, Services, CRDs, and ConfigMaps) and how the Operator configures Prometheus and Alertmanager, inspect the chart files (templates, crds, Chart.yaml, values.yaml, README).
A GitHub repository page for prometheus-community/helm-charts showing the kube-prometheus-stack chart. The screen displays the chart's file list (folders like templates, crds and files such as Chart.yaml, values.yaml) and the README with prerequisites.

Next steps

  • Examine the Kubernetes resources created by the chart: Deployments, StatefulSets, Services, CRDs, ConfigMaps, ServiceMonitors, and PodMonitors.
  • Review the values.yaml you generated and iterate on resource sizing, persistence, and alerting rules.
  • Configure ingress or port-forwarding to access Grafana and Prometheus UI, and secure access with RBAC and secrets.

Watch Video