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
- VictoriaMetrics
- InfluxDB
- OpenTelemetry Collector
- Graphite
- Zabbix
- Thanos
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
- VictoriaMetricsApache-2.0VictoriaMetrics is a Go-based time-series database and monitoring stack for teams collecting Prometheus-compatible metrics at scale. The community core uses Apache-2.0, while VictoriaMetrics Inc sells enterprise features and support. VictoriaMetrics Cloud is hosted, with pricing starting at approximately $190 to $200 per month for the smallest documented tier.
- InfluxDBMIT or Apache-2.0 for Core; Enterprise commercialInfluxDB is a time-series database for metrics, events, monitoring, IoT, and analytics. InfluxDB 3 Core is free and open source under MIT or Apache-2.0. InfluxDB 3 Cloud offers hosted deployment, including usage-based Serverless and custom-priced Dedicated options, while Enterprise provides commercial deployment features. InfluxData maintains the project, whose repository uses Rust, Python, Shell, and Dockerfile.
- GraphiteMIT OR Apache-2.0Graphite is a free, open-source 2D graphics editor for illustrators, designers, and technical artists who want nondestructive layers plus procedural node graphs. Its community funds development, and the code is dual-licensed MIT or Apache-2.0. The browser editor is hosted at no charge, while native desktop builds remain in release-candidate testing.
- ZabbixAGPL-3.0Zabbix is an open source monitoring platform for infrastructure, applications, virtual machines, and cloud services, aimed at operations teams managing large environments. It is released under AGPL-3.0, which permits commercial use subject to copyleft conditions. Organizations can self-host it, use official deployment formats, or choose Zabbix Cloud, with pricing starting at $50 per month.
- ActiveloopApache-2.0Activeloop Deep Lake is an Apache-2.0 multimodal AI data runtime, database, and vector store for teams building retrieval and training systems around text, images, audio, video, metadata, and embeddings. The Python-centered open-source package supports local and customer-cloud storage, while Activeloop offers hosted storage, a managed tensor database, Knowledge Agents, and enterprise deployment options.
- Apache DruidApache-2.0Apache Druid is an Apache-licensed real-time analytics database for event-oriented data, fast aggregations, and highly concurrent applications. It suits teams building analytical applications, operational dashboards, and APIs over streaming or batch data. Teams can self-host it, while Imply Polaris offers managed Druid service from $100 per month plus usage charges.