In this blog post, I will outline the steps to set up Grafana to monitor your Redis database.
Install Grafana
Go to Grafana website download page.
Example: For Red Hat, CentOS, RHEL, and Fedora(64 Bit).
Execute the following commands to make Grafana start automatically when the server is booted up.
sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server.service
Install Redis Plugin
The Redis Data Source for Grafana is a plugin that allows users to connect to any Redis database On-Premises and in the Cloud. It provides out-of-the-box predefined dashboards and lets you build customized dashboards to monitor Redis and application data.
grafana-cli plugins install redis-datasource
Start Grafana
Start Grafana.
sudo systemctl start grafana-server.service
Check Grafana Status.
sudo systemctl status grafana-server.service
Access Grafana Monitor Dashboard
Paste the server’s IP, plus port 3000 on your web browser to access Grafana Dashboar<Ipd.
<ServerIPaddress>:3000
The initial username and password is admin/admin.
Configure Data source
Go to Configuration > Data sources.
Add data source.
Search for “Redis“, then select the data source below.
Enter a name and address in the following format.
redis://your-redis-endpoint.ng.0001.sae1.cache.amazonaws.com:6379
Click Save and test and verify that the data source is working as expected.
Import Dashboard
This step will be performed one time only.
Go to Dashboards. Then click Import for both Redis and Redis Streaming.
View Dashboard
Go to Dashboard > Manage.
Choose Redis or Redis Streaming.
Leave a Reply