Skip to main content
Previously you may have deployed Prometheus and Grafana by hand. That approach is useful to learn what’s under the hood, but it becomes hard to scale in production: separate lifecycles for Prometheus and Grafana, manually wiring dashboards and data sources, and editing prometheus.yml each time you add a scrape target quickly becomes tedious. Example of separate Deployments you might maintain:
And an example prometheus.yml you would normally edit manually:
It doesn’t scale well. There are several turnkey solutions to address this. In this article we cover kube-prometheus-stack — a community-maintained Helm chart that provides a pre-wired Prometheus + Grafana monitoring stack. It bundles the Prometheus Operator, Prometheus, Grafana (with an attached Prometheus data source), kube-state-metrics, and sensible defaults so you get Kubernetes observability immediately after install. kube-prometheus-stack is published in the Prometheus Community Helm repository:
A system architecture diagram of a kube‑Prometheus monitoring stack showing Prometheus pulling metrics from client libraries and exporters, storing data in local storage, and using service discovery. It also shows Alertmanager sending notifications to OpsGenie/PagerDuty and Grafana used for data visualization.
What kube-prometheus-stack gives you out of the box
  • Prometheus Operator: manages Prometheus instances and dynamic configuration via Kubernetes CRDs.
  • Prometheus: a production-ready server configured to store and query metrics.
  • Grafana: pre-configured with a Prometheus data source and optional dashboards.
  • kube-state-metrics: exports Kubernetes object-level metrics (Deployments, Pods, Services, PVCs, Namespaces, etc.).
  • Alertmanager and example alerting rules (configurable via values).
The big win: Kubernetes infrastructure metrics flow into Prometheus immediately after install.
A slide titled "Kubernetes Infrastructure Scraping Pre-Packaged" showing the kube-state-metrics logo in the center surrounded by names of Kubernetes resources (Pods, Deployments, Services, PersistentVolumes, Namespaces, etc.). Kubelet and API icons are shown to the left and right of the central graphic.
Without adding any custom scrape targets, kube-prometheus-stack will already collect metrics from:
  • kubelet and node-exporter (node-level CPU, memory, network)
  • kube-apiserver (request rates and latencies)
  • kube-state-metrics (object state such as pod_count, deployment_replicas, pvc_capacity)
  • Prometheus self-metrics
That means container CPU, memory, network metrics, API server request rates, pod states, and much more are available in Prometheus immediately.
A diagram titled "Kubernetes Infrastructure Scraping Pre-Packaged" showing Prometheus pulling metrics from Kubernetes components (kubelet, API) and storing them. The stored metrics listed include CPU, memory, network metrics, API-server request rates, pod states, etc.
Key operational difference: you do not edit prometheus.yml directly. The Prometheus Operator configures Prometheus dynamically using Kubernetes Custom Resources such as ServiceMonitor and PodMonitor. What is a ServiceMonitor? A ServiceMonitor is a Kubernetes manifest that tells Prometheus (via the Operator) what Service to scrape, which port/path to use, and the scrape interval. You can create ServiceMonitor resources alongside your application manifests so that Prometheus automatically discovers and scrapes your app. Example ServiceMonitor:
The Prometheus Operator watches for ServiceMonitors and updates Prometheus configuration automatically. Add a ServiceMonitor and Prometheus starts scraping; delete it and Prometheus stops — no restarts or manual edits required. This is the recommended pattern for production workloads because it keeps monitoring configuration declarative and lifecycle-aligned with your application.
Make sure Prometheus is configured to discover ServiceMonitors via its serviceMonitorSelector (controlled by chart values). Using labels such as release: prometheus-stack is common so Prometheus only selects ServiceMonitors created for that chart release.
Quick install example (Helm)
After installation:
  • Grafana will be deployed with a Prometheus data source already configured.
  • Prometheus and Alertmanager will be deployed and managing their configs via CRDs.
  • kube-state-metrics and node exporters will be scraping cluster-level metrics.
Table: manual deployment vs kube-prometheus-stack Apply your application and ServiceMonitor:
Links and further reading Summary kube-prometheus-stack significantly reduces operational overhead by bundling Prometheus, Grafana, and exporters with the Prometheus Operator to enable declarative monitoring with ServiceMonitors and PodMonitors. Install once and start observing your cluster and applications immediately; then add ServiceMonitors as part of your application manifests to scale monitoring safely and predictably.

Watch Video

Practice Lab