Back to directory

Infrastructure & Operations · Databases

Prometheus

Pull-based metrics, PromQL, alerting, and time-series storage

Prometheus is an Apache-2.0 monitoring system and time-series database for infrastructure and services. It is aimed at engineers operating machines, containers, and dynamic service architectures. The software is free to run and self-host, while managed Prometheus offerings are available from third-party vendors rather than from the independent core project itself.

Key facts

License
Apache-2.0
Main language
Go, TypeScript, JavaScript, HTML, Shell
Maintainer
Prometheus community under CNCF governance
First released
2012
Latest release
v3.15.1, October 21, 2026
GitHub stars
66.7k, October 2026
Hosted option
No official project-hosted service; managed offerings from third-party vendors

What Prometheus is

Prometheus began at SoundCloud in 2012 and became an independent open-source project under Cloud Native Computing Foundation governance. It is a monitoring and alerting system that scrapes configured targets, stores numeric samples as time series, evaluates rules, and sends alerts through Alertmanager. The repository showed about 66,691 stars at the stated cutoff, with contributors and maintainers including Bryan Boreham, Ayoub Mrini, Julien Pivotto, György Krajcsovits, Bartłomiej Płotka, and Arve Knudsen. Prometheus is widely used in cloud-native operations and became the second CNCF project to graduate after Kubernetes. Its repository remains active and publishes regular stable releases. Its community governance, broad adoption and wide integration support make it a default choice across infrastructure and application monitoring environments.

How it works

Prometheus normally runs as a standalone server. An operator defines scrape jobs in YAML, identifies instrumented applications or exporters, and Prometheus pulls HTTP metrics at configured intervals. The server stores samples locally, exposes a web interface and HTTP API, and evaluates recording and alerting rules. PromQL queries dimensions such as service, instance, and status code, while Grafana or another consumer can visualize results. Alertmanager handles grouping, routing, silencing, and notification delivery. Service discovery can find Kubernetes, Consul, cloud, or other targets, and Pushgateway provides an intermediary for short-lived batch jobs. Federation and remote storage extend the basic single-server model for broader collection and retention arrangements.

Architecture and recent releases

Prometheus is primarily written in Go and ships as static binaries for major operating systems, with Docker images on Quay.io and Docker Hub. Its local TSDB stores data on disk and does not require a distributed database or network storage for a single server. Exporter, client-library, Alertmanager, and Pushgateway repositories supply surrounding components. Prometheus 3.15.1 was published on October 21, 2026, and the 3.13.5 line was published the same day as an LTS release. The project schedule targets roughly six-week pre-release intervals. PromQL, native histograms, remote write, federation, and OpenTelemetry translation continue to shape current releases and affect integration, storage, and query decisions.

License and pricing

Prometheus is licensed under Apache License 2.0, allowing commercial use, modification, redistribution, and SaaS operation subject to its notice and attribution terms. The core project is free and has no official hosted subscription or enterprise edition maintained by the project itself. Companies can run it on their infrastructure, deploy it through Kubernetes operators, or buy managed Prometheus from vendors such as Grafana Cloud, Amazon Managed Service for Prometheus, Google Cloud Managed Service for Prometheus, and other providers. Managed prices depend on samples, retention, storage, and query volume. Self-hosters must budget for disk, retention, high availability, remote storage, alert routing, and exporter maintenance rather than a software license.

Limitations and how it compares

Prometheus is excellent for numeric operational metrics but is not a complete log, trace, or billing system. Its local storage and high-cardinality labels require capacity planning, and long retention usually needs remote storage or a compatible long-term system. VictoriaMetrics offers a Prometheus-compatible metrics backend with different storage and scaling tradeoffs. InfluxDB provides another time-series model, while Datadog supplies a proprietary managed monitoring suite with less operational work. OpenTelemetry Collector can gather and route broader telemetry, but it does not replace Prometheus's query and alerting workflow by itself. Choose Prometheus when pull-based metrics, PromQL, service discovery, and independent failure-resistant servers matter most.

Main features

  • Multi-dimensional metrics. Labels combine with metric names to describe services, instances, regions, and other dimensions in a flexible time-series model.
  • PromQL queries. PromQL selects, aggregates, transforms, and joins time series for dashboards, investigations, recording rules, and alert conditions.
  • HTTP pull model. Prometheus periodically scrapes instrumented targets and exporters, making collection configuration explicit and allowing target health inspection.
  • Service discovery. Static configuration and integrations discover targets in Kubernetes, Consul, cloud environments, and other dynamic infrastructures.
  • Rules and alerting. Recording rules precompute series and alerting rules send firing conditions to Alertmanager for grouping and notification routing.
  • Federation and remote write. Federation and remote write connect Prometheus servers to hierarchical, long-retention, or horizontally scaled monitoring deployments.

Self-hosting Prometheus

Prometheus can be self-hosted using a precompiled binary, a source build, or a Docker image. A basic installation requires the Prometheus binary, a YAML configuration file, and persistent local storage, with the default web interface on port 9090. Docker deployments should mount a named volume or host directory at /prometheus, since container restarts otherwise erase the database. Operators configure scrape targets, retention, rule files, and Alertmanager separately. Kubernetes is optional, although community operators and persistent volumes are commonly used. Resource needs vary with scrape frequency, series count, query load, and retention. Back up configuration and rules, monitor disk growth, test restores, and consider remote write or federation when local retention is insufficient.

Strengths

  • PromQL makes dimensional metric analysis and alert expressions concise.
  • A standalone server remains useful when other infrastructure is failing.
  • Static binaries and official containers make deployment straightforward.
  • Service discovery supports rapidly changing cloud-native targets.

Drawbacks

  • High-cardinality labels can consume substantial memory and storage.
  • Long retention and high availability require additional systems.
  • Prometheus focuses on metrics rather than logs, traces, or exact billing data.

What teams replace with it

Teams usually evaluate Prometheus when they want to move off Datadog, New Relic, AppDynamics, SolarWinds Observability.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Prometheus

Frequently asked questions

Is Prometheus free?

Yes. The Prometheus server, official components, exporters, and client libraries are open-source projects, and the server is licensed under Apache 2.0. You can run it without a software fee on your own infrastructure. Managed Prometheus services charge for ingestion, storage, queries, and retention, but those prices belong to the provider rather than to the independent Prometheus project.

Can Prometheus be used commercially?

Apache License 2.0 permits commercial use, modification, redistribution, and operation as part of a commercial service, subject to the license's notices and conditions. Companies can embed Prometheus in an internal platform or offer monitoring around it. They should preserve required copyright and license notices and review the licenses of exporters, dashboards, operators, and other components included in a distribution.

What does a Prometheus server require?

A basic server requires a Prometheus binary or container, a YAML configuration file, and persistent disk. It listens on port 9090 by default and stores its local TSDB on disk. CPU, memory, and disk requirements depend on target count, scrape interval, label cardinality, query load, and retention. Alertmanager, exporters, remote storage, and service discovery are optional additions rather than core prerequisites.

How does Prometheus compare with VictoriaMetrics?

Prometheus is the reference implementation for PromQL, pull-based scraping, service discovery, and alerting workflows. VictoriaMetrics is often selected for lower storage cost, longer retention, or a more centralized metrics backend, while retaining substantial Prometheus compatibility. Prometheus suits teams wanting the canonical CNCF tool and autonomous servers. VictoriaMetrics can suit teams prioritizing storage efficiency and simpler long-term scaling.

Does Prometheus store logs or traces?

Prometheus stores numeric time series with timestamps and labels. It does not function as a general log or distributed-tracing store. Grafana Loki, Elasticsearch, OpenSearch, Tempo, and Jaeger cover adjacent log or trace use cases, while OpenTelemetry can collect and route multiple signal types. Prometheus can correlate metric alerts with those systems through labels, links, dashboards, and operational workflows.

Similar projects to compare

Sources

Last updated 2026-10-22.