Grafana Mimir — Horizontally Scalable Prometheus Storage
Long-term metrics store for Prometheus and OpenTelemetry: multi-tenant, highly available, and queryable at a billion active series.
What it is
Grafana Mimir is a horizontally scalable, highly available long-term metrics store for Prometheus and OpenTelemetry. It can handle a billion active series with multi-tenant isolation. Mimir accepts remote-write from Prometheus instances and provides a PromQL-compatible query endpoint.
Mimir targets platform teams and SREs who need to retain Prometheus metrics beyond the local retention period. It solves the problem of scaling Prometheus storage across multiple clusters, teams, and data centers.
How it saves time or tokens
Prometheus stores metrics locally with limited retention. Mimir provides unlimited retention with object storage (S3, GCS, Azure Blob) at a fraction of the cost of local SSDs. Multi-tenancy means one Mimir cluster serves multiple teams without interference. The PromQL-compatible API means existing Grafana dashboards work without modification.
How to use
- Start Mimir in monolith mode for testing:
docker run -d --name mimir -p 9009:9009 \
-v $(pwd)/mimir.yaml:/etc/mimir.yaml \
grafana/mimir:latest -config.file=/etc/mimir.yaml
- Configure Prometheus to remote-write to Mimir:
# prometheus.yml
remote_write:
- url: http://mimir:9009/api/v1/push
headers:
X-Scope-OrgID: my-tenant
- Point Grafana to Mimir as a Prometheus data source at
http://mimir:9009/prometheus.
Example
# mimir.yaml - minimal configuration
target: all
common:
storage:
backend: filesystem
filesystem:
dir: /tmp/mimir-data
blocks_storage:
backend: filesystem
filesystem:
dir: /tmp/mimir-blocks
tsdb:
dir: /tmp/mimir-tsdb
server:
http_listen_port: 9009
multitenancy_enabled: false
Related on TokRepo
- Monitoring Tools — Observability and monitoring solutions
- DevOps Tools — Infrastructure and deployment tools
This tool integrates with standard development workflows and requires minimal configuration to get started. It is available as open-source software with documentation and community support through the official repository. The project follows semantic versioning for stable releases.
For teams evaluating this tool, the key advantage is reducing manual work in repetitive tasks. The automation provided by the built-in features means less custom code to maintain and fewer integration points to manage. This translates directly to lower maintenance costs and faster iteration cycles. The combination of cost-effective object storage, PromQL compatibility, and multi-tenant isolation makes Mimir a practical choice for organizations operating multiple Prometheus clusters that need centralized long-term metric retention.
Common pitfalls
- Monolith mode is for testing only; production deployments should use microservices mode with separate ingester, querier, and compactor components for reliability.
- Object storage configuration is critical; misconfigured bucket permissions cause silent data loss. Test write and read access before sending production metrics.
- Multi-tenancy requires setting the
X-Scope-OrgIDheader on every request; missing headers cause writes to be rejected.
Frequently Asked Questions
Both provide long-term Prometheus storage. Mimir is built by Grafana Labs with a focus on multi-tenancy and horizontal scalability. Thanos uses a sidecar approach alongside existing Prometheus instances. Mimir typically offers simpler operations for large-scale multi-tenant deployments.
Mimir supports Amazon S3, Google Cloud Storage, Azure Blob Storage, and S3-compatible stores like MinIO. Object storage provides cost-effective, durable retention for metrics data at scale.
Yes. Mimir exposes a PromQL-compatible query API. Existing Grafana dashboards and alerting rules work without modification when you switch the data source from Prometheus to Mimir.
Each tenant is identified by the X-Scope-OrgID header. Metrics, rules, and queries are isolated per tenant. Tenants share the same cluster infrastructure but cannot access each other's data.
Yes. Mimir is open-source under the AGPL-3.0 license. Grafana Labs offers Grafana Cloud with managed Mimir for teams that prefer not to operate their own cluster.
Citations (3)
- Grafana Mimir Documentation— Mimir provides horizontally scalable long-term storage for Prometheus metrics
- Grafana Mimir GitHub— Mimir is open-source under AGPL-3.0
- Mimir Multi-Tenancy Docs— Mimir supports multi-tenancy with X-Scope-OrgID isolation
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.