Self-host Grafana Mimir with Levelrail

Horizontally scalable long term storage for Prometheus metrics, run here as one process on local disk. The install form carries mimir.yaml as an editable file.

  • Authorgrafana
  • LicenceAGPL-3.0-only
  • Memory512 MiB
  • Services1

How to self-host Grafana Mimir

  1. Pull the images

    One image is pulled on your server.

    Show images
    • grafana/mimir:3.2.4
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 9009.

  3. Fill in the secrets

    You do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

After the first start

  • Point a Prometheus remote_write at /api/v1/push on this address and add the same address with /prometheus as a data source in Grafana.

Grafana Mimir requirements

Memory
About 512 MiB
Architectures
amd64 unknown, arm64 unknown
Ports
9009
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
AGPL-3.0-only, network copyleft (agpl) license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Grafana Mimir. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Grafana Mimir docs page.

Deploy Grafana Mimir your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Grafana Mimir from the CLI

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain mimir=app.example.com.

levelrail-cli templates install mimir --name my-mimir

Deploy Grafana Mimir with the API

Create a token in the dashboard first. Name, env and domains are the request fields.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/mimir/install \
  -d '{
    "name": "my-mimir"
  }'

Grafana Mimir configuration

Grafana Mimir services

ServiceImagePortsVolumes
mimir grafana/mimir:3.2.4 9009 data -> /data

Grafana Mimir environment variables

The catalog lists no environment variables for this template.

Ports and volumes

Ports
9009
Volumes
1 named mount: data -> /data

Grafana Mimir FAQ

How much memory does Grafana Mimir need?

The catalog lists about 512 MiB of memory for Grafana Mimir.

Does Grafana Mimir run on arm64?

For Grafana Mimir, arm64 support is not confirmed; amd64 is unknown.

What licence is Grafana Mimir under?

Grafana Mimir is licensed under AGPL-3.0-only, which is network copyleft, so source sharing also applies when it is offered as a hosted service.

Does Grafana Mimir need configuration before it starts?

No. The template fills in its own defaults.

Which ports does Grafana Mimir use?

Grafana Mimir listens on port 9009 inside the stack.

Where does Grafana Mimir keep its data?

In a named volume: data mounted at /data.

Can I deploy Grafana Mimir on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Grafana Mimir, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image grafana/mimir:3.2.4 is what you deploy there.

levelrail-cli templates install mimir --name my-mimir