An easy to use monitoring solution for Redis

Using Redis Data Source for Grafana

Abhishek Gupta
ITNEXT

--

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

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

Enter admin as the username and password

Add the Data Source

Choose Redis

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

Make sure you enable TLS

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

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

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.

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

.. and here it is.

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.

--

--

Principal Developer Advocate at AWS | I ❤️ Databases, Go, Kubernetes