Redis Monitoring Setup: Prometheus and Grafana with Redis Exporter
In this guide, you will learn how to centrally monitor your Redis servers.
You will detect performance problems early.
You will be able to track real-time metrics.
📌 Technical Summary
This guide explains how to install Redis monitoring.
The goal is to monitor bottlenecks and resource consumption.
Steps followed:
- Redis Exporter installation
- Prometheus integration
- Grafana dashboard setting
- Secure configuration
- Troubleshooting
🚀 What Will You Learn in This Guide?
- Install Redis Exporter
- systemd service configuration
- Prometheus target identification
- Grafana panel installation
- Encrypted Redis integration
🛠️ Requirements
Before you start:
- Ubuntu server (tr1-node01)
- Running Redis service
- Prometheus and Grafana
- SSH and sudo access
✅ Step 1: Creating a Prometheus User
This command creates a secure system user.
sudo groupadd --system prometheus
sudo useradd -s /sbin/nologin --system -g prometheus prometheus
✅ Step 2: Redis Exporter Installation
- This command downloads the latest version.
curl -s https://api.github.com/repos/oliver006/redis_exporter/releases/latest \
| grep browser_download_url \
| grep linux-amd64 \
| cut -d '"' -f 4 \
| wget -qi -
tar xvf redis_exporter-*.linux-amd64.tar.gz
sudo mv redis_exporter-*.linux-amd64/redis_exporter /usr/local/bin/
Setup Control
- This command shows the version.
redis_exporter --version
✅ Step 3: Creating systemd Service
- This file automatically starts the service.
sudo nano /etc/systemd/system/redis_exporter.service
[Unit]
Description=Prometheus Redis Exporter
After=network-online.target
[Service]
User=prometheus
Group=prometheus
ExecStart=/usr/local/bin/redis_exporter \
--log-format=txt \
--namespace=redis \
--web.listen-address=:9121 \
--web.telemetry-path=/metrics
Restart=always
[Install]
WantedBy=multi-user.target
Activating the Service
- This command starts the service.
sudo systemctl daemon-reload
sudo systemctl enable redis_exporter
sudo systemctl start redis_exporter
✅ Step 4: Prometheus Configuration
Backup
- This script backs up the file.
cp /etc/prometheus/prometheus.yml \
/etc/prometheus/prometheus.yml.backup
Adding Redis Target
- This setting enables metrics collection.
sudo nano /etc/prometheus/prometheus.yml
scrape_configs:
- job_name: redis_sunucusu
static_configs:
- targets: ['192.168.1.50:9121']
labels:
alias: genixnode-redis-01
Prometheus Reboot
- This command applies the settings.
sudo systemctl restart prometheus
✅ Step 5: Grafana Dashboard Installation
Login to Grafana Panel
http://sunucu-ip:3000
Adding Data Source
-
Configuration > Data Sources
-
Add Data Source
-
Choose Prometheus
URL: http://localhost:9090
Redis Dashboard Import
- Dashboard ID: 763
Provides ready-made panel installation.
📊 Metrics You Can Track
- With this structure:
-
Memory usage
-
Command/second
-
Active links
-
Uptime
-
Replication status
is followed.
🧩 Troubleshooting
Service Check
sudo systemctl status redis_exporter
Port Control
ss -tulnp | grep 9121
Firewall Control
sudo ufw allow from PROMETHEUS_IP to any port 9121
❓ Frequently Asked Questions
1. What should I do if Redis is encrypted? Add password to systemd file:
2. --redis.password=yourpassword What is the default port? 9121 is used.
3. Can more than one Redis be monitored? Yes, it is added to the targets list.
4. Does it make sense to use scripts? It is suitable for small systems. Manual is recommended for corporate systems.
5. Will performance decrease? No, the impact is minimal.
🎯 Result
With this guide: You set up Redis monitoring You provided central monitoring You made early error detection You increased system reliability
With the GenixNode infrastructure, you can install this structure immediately and monitor your Redis systems professionally. 🚀

