What is Prometheus?
An open-source metrics and alerting system. Prometheus scrapes metrics from Kubernetes components and applications, stores them in a time-series database (TSDB), and evaluates alert rules.
Prometheus explained
How it works. Prometheus scrapes metrics over HTTP from targets at a fixed interval and stores them as time series in its local TSDB. It evaluates recording and alerting rules and sends alerts to Alertmanager. Queries use PromQL.
In practice. On Kubernetes, the kube-prometheus-stack Helm chart installs Prometheus, Alertmanager, Grafana and exporters, with ServiceMonitor/PodMonitor resources to select targets. For long-term or multi-cluster storage, add Thanos, Mimir or a remote-write backend.
Common pitfalls.
- ›High-cardinality labels (user IDs, full URLs) multiplying series and memory.
- ›Retention sized by days without checking disk.
- ›Alerts without runbooks, or alerting on causes instead of symptoms.
Related tool
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Related Calculators
Prometheus Storage
Calculate Prometheus disk and RAM requirements based on active time series count, scrape interval, and retention period. Includes TSDB head, WAL, and chunk cache sizing.
Observability Sizing
Size your Prometheus, Grafana, Loki, and Alertmanager stack. Calculate RAM, disk, and CPU requirements based on your cluster size and retention period.
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.