A high-availability Grafana Mimir deployment for Docker Swarm
You might need to create swarm-scoped overlay network called dockerswarm_monitoring for all the stacks to communicate if you haven't already.
$ docker network create --scope=swarm --driver overlay --attachable dockerswarm_monitoringWe provided a base configuration file for Grafana Mimir. You can find it in the config folder.
Please make a copy as configs/mimir.yaml, make sure to change the following values:
common:
storage:
backend: s3
s3:
endpoint: minio:9000
region: us-east-1
bucket_name: mimir
access_key_id: access_key_id
secret_access_key: secret_access_key
insecure: true
alertmanager:
external_url: http://alertmanager:9093/alertmanagerAnd add any additional configuration you need to configs/mimir.yaml.
You need to create the following buckets in your object storage:
mimirmimir-blocksmimir-rulermimir-alertmanager
You can change the bucket names in the configs/mimir.yaml file. Look for the bucket_name property.
Example
blocks_storage:
s3:
bucket_name: mimir-blocks # Change this to your bucket nameTo deploy the stack, run the following command:
$ make deployTo destroy the stack, run the following command:
$ make destroy