Image created by the author

Setup Redis Monitoring with Grafana in Docker Compose

A setup guideline for Redis monitoring

Szilárd Mátis
3 min readJun 9, 2024

--

If you are not a member, you can read the article here.

This tutorial guides you trough with the setup of Redis monitoring with Grafana in Docker Compose. The source code of this tutorial is available on Github here. This article is part of a tutorial series, you can read more about it here.

In a previous article, I went trough the setup of Redis and RedisInsight in Docker Compose.

We can use the official Docker Image to run Redis and Grafana. We need to create the folloeing Docker Compose file:

services:
redis:
image: redis:latest
ports:
- 6379:6379
networks:
- tutorials
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
- GF_INSTALL_PLUGINS=redis-datasource
volumes:
- ./grafana:/etc/grafana/provisioning/datasources…

--

--