DEV Community

Abhishek Gupta
Abhishek Gupta

Posted on • Originally published at abhishek1987.Medium

An easy to use monitoring solution for Redis

Recently, I discovered a nice way of plugging in monitoring for Redis using Grafana, thanks to this great Data Source plugin that works with any Redis database, including Azure Cache for Redis!

It's really easy to setup and try

Setup an Azure Cache for Redis instance

Start Grafana in Docker:

docker run -d -p 3000:3000 --name=grafana -e "GF_INSTALL_PLUGINS=redis-datasource" grafana/grafana
Enter fullscreen mode Exit fullscreen mode

Access Grafana dashboard - browse to http://localhost:3000/

Enter admin as the username and password

Add the Data Source

Alt Text

Choose Redis

Alt Text

Enter the host and access key for the Azure Cache for Redis instance.

Make sure you enable TLS

Alt Text

All set! You can now run queries from the Explore section.

Alt Text

This is just an example of the INFO command to retrieve basic Server info.

Alt Text

That's not all

There is a nice dashboard which comes with the Data Source - https://grafana.com/grafana/dashboards/12776.

To import it, just go to the Dashboards section of the Data Source.

Alt Text

To see it in action, first navigate to Dashboards and choose Redis

Alt Text

.. and here it is.

Alt Text

This is just the beginning...

I am not a Grafana expert, but pretty sure there is lots more to explore. I will try playing around with custom dashboards and other supported Redis Data structures such as Streams etc.

Top comments (0)