Horizontally scalable, highly available, multi-tenant long-term storage for Prometheus
open sourceAGPL-3.0-onlyself-hostablefree
Forked from Cortex in 2022. Grafana Labs forked Cortex to combine it with what it built for Grafana Enterprise Metrics, clear out five years of technical debt and release it under AGPL-3.0, after cloud providers offered Cortex without contributing back
Grafana Mimir is an open source, horizontally scalable, highly available, multi-tenant time series database that gives Prometheus and OpenTelemetry metrics long-term storage in object storage (S3, GCS, Azure Blob Storage, Swift or any S3-compatible store). Prometheus, Grafana Alloy or the OpenTelemetry Collector remote-write to it, and you query it with PromQL from Grafana, with recording and alerting rules evaluated across tenants; it also accepts Influx, Graphite and Datadog formats. It runs as one binary in monolithic mode or as sharded microservices with Kafka between the write and read paths, and Grafana Labs says it has been tested to 1 billion active series. Grafana Labs announced it in 2022, building on its work on Cortex; it is AGPLv3 and also runs as the hosted Grafana Cloud Metrics.
Ways to install
On Kubernetes
Package managers
Problems it solves
- keep a year of Prometheus metrics without each Prometheus server's local disk filling up
- query metrics from many Prometheus instances in different clusters as one global view
- store metrics in cheap S3 object storage instead of expensive local SSDs
- our single Prometheus server can't handle the number of active series we have
- run a central metrics backend for several teams with separate tenants and per-tenant limits
- high-cardinality PromQL queries over months of data take forever
- make our metrics store highly available so a node failure doesn't lose samples
- migrate off Cortex or Thanos to something easier to scale
- send OpenTelemetry metrics and Prometheus remote-write to the same backend
- evaluate recording and alerting rules centrally across all our clusters' metrics
- upgrade or restart the metrics cluster with zero downtime for ingestion and queries
- ingest Graphite, Influx and Datadog metrics into a Prometheus-compatible store
Features
- 100% Prometheus compatible, including remote write, PromQL and alerting
- long-term storage on S3, GCS, Azure Blob Storage, OpenStack Swift or any S3-compatible store
- horizontally scalable, sharded query engine
- high availability through replication
- native multi-tenancy with per-tenant limits and quality-of-service controls
- tenant federation for queries, recording rules and alerting rules across tenants
- OTLP metrics endpoint, plus Influx, Graphite and Datadog ingestion
- monolithic mode with one binary and no other dependencies
- Kafka-based ingest storage architecture
- horizontally scalable compactor for high cardinality, tested to 1 billion active series
View 3 more
- bundled dashboards, alerts and runbooks for monitoring Mimir itself
- mimirtool CLI for rules, Alertmanager configs and metric usage analysis
- mimir-distributed Helm chart
Ways to run it
Grafana Mimir
You arrange
- object storage for metric blocks
- a Kafka-compatible backend for ingest storage in microservices mode (the Helm chart's default)
- Grafana for dashboards and queries
- Prometheus, Grafana Alloy or another remote-write client
Grafana Cloud Metrics
free up to 10k active series; Pro $19/month platform fee, metrics from $6.50 per 1k series78
Only in this edition
- Mimir-based metrics backend managed by Grafana Labs as part of Grafana Cloud
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what Grafana Mimir does.
- Amazon Managed Service for Prometheus Serverless, Prometheus-compatible monitoring service for container metrics
- Thanos Open source, highly available Prometheus setup with long term storage capabilities
- Cortex Horizontally scalable, highly available, multi-tenant, long term storage solution for Prometheus and OpenTelemetry Metrics
- GreptimeDB The open-source observability database
- VictoriaMetrics Fast, cost-effective and scalable time series database for monitoring, and long-term storage for Prometheus
- Cortex XCOR The next-generation, AI-driven observability platform
