# Cortex

> Horizontally scalable, highly available, multi-tenant, long term storage solution for Prometheus and OpenTelemetry Metrics

Source: https://talira.ai/catalog/cortex-20vp05mm
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Database, Infrastructure
- Categories: [devops / observability / metrics / long term storage](https://talira.ai/categories/devops/observability/metrics/long-term-storage), [devops / observability / metrics](https://talira.ai/categories/devops/observability/metrics)
- Platforms: linux, docker, kubernetes[^6][^8]
- Licence: Apache-2.0[^4][^5]
- Pricing: Free and open source[^4]
- Pricing notes: Free and open source under Apache-2.0.
- Free tier: yes[^4]
- Self-hostable: yes[^6]
- API: yes[^7]
- Supports: [OpenTelemetry (OTLP)](https://talira.ai/standards/opentelemetry.md)[^7][^9]
- Backed by: [Cloud Native Computing Foundation](https://talira.ai/orgs/cncf.md)
- Funding: non-profit[^10][^11]

Cortex is a clustered, multi-tenant backend that receives [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md) remote write and OpenTelemetry (OTLP) metrics, keeps them in object storage (S3, GCS, Azure, Swift) and answers PromQL queries across recent and long-term data. It is built from separate services (distributor, ingester, querier, store gateway, compactor, plus an optional query frontend, ruler and multi-tenant Alertmanager) that scale out independently, and it can run as one binary for testing. Each tenant's data is isolated and limited separately, so one cluster can serve many teams or Prometheus servers. It is a CNCF incubating project under Apache-2.0; Grafana Labs forked it in 2022 to create [Grafana Mimir](https://talira.ai/catalog/grafana-mimir-z0v9m2c8.md), and the README lists [Amazon Managed Service for Prometheus](https://talira.ai/catalog/amazon-managed-service-for-prometheus-6qk4t9k9.md) as a hosted offering.

## Links

- Website: https://cortexmetrics.io/
- GitHub: https://github.com/cortexproject/cortex
- Docs: https://cortexmetrics.io/docs/

## Ways to install

### On Kubernetes

- [Artifact Hub](https://talira.ai/catalog/artifact-hub-s43pzyps.md): <https://artifacthub.io/packages/helm/cortex/cortex>[^1]

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/cortex>[^2]

## Problems it solves

- keep a year or more of Prometheus metrics in S3 instead of a few weeks on local disk
- run one central metrics store that many Prometheus servers remote write into
- give each team or customer its own isolated metrics with separate limits in a shared cluster
- Prometheus is a single machine and we need metrics storage that keeps working when a node dies
- query metrics from all our clusters in one place with PromQL from Grafana
- deduplicate samples from a pair of HA Prometheus replicas before storing them
- scale metrics ingestion horizontally as the number of active series grows
- slow PromQL range queries over months of data need splitting and caching
- send OpenTelemetry metrics over OTLP to a self-hosted backend that speaks PromQL
- evaluate recording and alerting rules centrally for every tenant instead of on each Prometheus
- run a multi-tenant Alertmanager for many teams from one deployment
- build a Prometheus-as-a-service platform for internal teams on Kubernetes
- delete all of one tenant's metrics when a customer leaves

## Features

- Prometheus remote write ingestion with Snappy-compressed protobuf
- OTLP over HTTP ingestion, with experimental OTLP over gRPC
- blocks storage based on Prometheus TSDB, kept in Amazon S3, Google Cloud Storage, Azure Storage, OpenStack Swift or a local filesystem
- multi-tenancy with per-tenant TSDBs and limits, chosen by a tenant header on every request
- replication across ingesters with consistent hashing
- HA tracker that deduplicates samples from Prometheus HA pairs
- query frontend that splits queries by time, caches results (memcached, Redis or in memory) and queues work
- ruler for per-tenant recording and alerting rules
- multi-tenant Alertmanager
- compactor and store gateway for querying long-term blocks
- tenant deletion API (experimental)
- single binary mode for testing and microservices mode for production
- Helm chart from the Cortex project

## Limitations

- Doesn't scrape targets itself: Prometheus or another agent scrapes them and sends samples to Cortex with remote write[^3]
- Doesn't authenticate requests itself: authentication and authorization are left to a reverse proxy in front of it[^3]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.56 out of 1.
Signals: backing 0.75, extensibility 0.40.

- backed by Cloud Native Computing Foundation
- funding: non-profit
- used by AWS, DigitalOcean, Platform9

Warnings:

- GitHub activity not fetched yet

## Forks

- [Grafana Mimir](https://talira.ai/catalog/grafana-mimir-z0v9m2c8.md): Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus. Its own project since 2022.

## Related

- Works with [Prometheus](https://talira.ai/catalog/prometheus-198e2rss.md)
- Works with [Grafana](https://talira.ai/catalog/grafana-y52f1g3g.md)

## Alternatives

- [Amazon Managed Service for Prometheus](https://talira.ai/catalog/amazon-managed-service-for-prometheus-6qk4t9k9.md): Serverless, Prometheus-compatible monitoring service for container metrics
- [Thanos](https://talira.ai/catalog/thanos-6p0s15z4.md): Open source, highly available Prometheus setup with long term storage capabilities
- [Grafana Mimir](https://talira.ai/catalog/grafana-mimir-z0v9m2c8.md): Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus
- [VictoriaMetrics](https://talira.ai/catalog/victoriametrics-96s76n81.md): Fast, cost-effective and scalable time series database for monitoring, and long-term storage for Prometheus
- [Backstage](https://talira.ai/catalog/backstage-xvg9zfsr.md): An open framework for building developer portals
- [GreptimeDB](https://talira.ai/catalog/greptimedb-scbnvh3h.md): The open-source observability database

## Sources

[^1]: https://cortexmetrics.io/docs/getting-started/microservices/ (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://cortexmetrics.io/docs/architecture/ (checked 20 Nov 2026)
[^4]: https://github.com/cortexproject/cortex/blob/master/LICENSE (checked 20 Nov 2026)
[^5]: https://cortexmetrics.io/ (checked 20 Nov 2026)
[^6]: https://cortexmetrics.io/docs/getting-started/ (checked 20 Nov 2026)
[^7]: https://cortexmetrics.io/docs/api/ (checked 20 Nov 2026)
[^8]: https://github.com/cortexproject/cortex/releases/latest (checked 20 Nov 2026)
[^9]: https://cortexmetrics.io/docs/guides/use-opentelemetry-collector-to-send-metrics-to-cortex/ (checked 20 Nov 2026)
[^10]: https://www.cncf.io/about/charter/ (checked 20 Nov 2026)
[^11]: https://www.cncf.io/ (checked 20 Nov 2026)
