Master RedisInsight: Visual Management & Monitoring of Redis with Docker and Grafana
This guide walks you through installing RedisMod via Docker, using the official RedisInsight visual tool to manage various data types, explore its CLI and Profiler features, and integrate advanced monitoring with Grafana and Prometheus for a comprehensive Redis workflow.
RedisInsight Overview
RedisInsight is the official visual management tool for Redis, offering dark and light themes, support for data types such as String, Hash, Set, List, and JSON, and a remote CLI for powerful operations.
RedisMod Overview
Redis has evolved beyond a simple in‑memory store; the RedisMod bundle adds several modules that extend its capabilities:
RediSearch – full‑text search engine
RedisJSON – native JSON support
RedisTimeSeries – time‑series database
RedisGraph – graph database
RedisBloom – probabilistic data structures
RedisGears – programmable data processing
RedisAI – real‑time machine‑learning model management
Installation
First, pull and run the full‑featured RedisMod image using Docker.
<code>docker pull redislabs/redismod:preview</code> <code>docker run -p 6379:6379 --name redismod \
-v /mydata/redismod/data:/data \
-d redislabs/redismod:preview</code>Using RedisInsight
After the Redis service is running, manage it with RedisInsight.
Basic Usage
Download RedisInsight from https://redis.com/redis-enterprise/redis-insight/ and install it.
In the main UI, click
Add Redis Database, then choose
Manual Add Databaseand enter the connection details.
The interface displays the enabled Redis modules and lets you create keys of various types:
CLI
If the graphical UI is insufficient, open the built‑in CLI tab.
RedisInsight includes a Command Helper that lets you search command documentation, e.g., searching for
hget.
Profiler
The Profiler shows command execution logs. For example, adding a key
testKeywill appear in the log.
Visualization Monitoring
RedisInsight provides basic monitoring, but for richer metrics you can use Grafana.
Installing Grafana and Prometheus
Pull the Grafana Docker image:
<code>docker pull grafana/grafana</code>Run Grafana:
<code>docker run -p 3000:3000 --name grafana \
-d grafana/grafana</code>Pull the Prometheus image and create a
prometheus.ymlconfiguration file (example snippet shown).
<code>global:
scrape_interval: 5s</code>Run Prometheus with the configuration mounted:
<code>docker run -p 9090:9090 --name prometheus \
-v /mydata/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml \
-d prom/prometheus</code>Enter the Grafana container and install the Redis datasource plugin:
<code>docker exec -it grafana /bin/bash
grafana-cli plugins install redis-datasource</code>After restarting Grafana, add a Redis datasource using the RedisMod container’s IP address and the credentials
admin:admin, then select the Redis dashboard to view comprehensive metrics.
Conclusion
RedisInsight, as an official visual tool, offers the best user experience for managing Redis and its new modules, though its built‑in monitoring is limited; pairing it with Grafana provides a more complete monitoring solution.
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.