DEV Community

Abhishek Gupta
Abhishek Gupta

Posted on β€’ Originally published at abhishek1987.Medium

4 1

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.

API Trace View

Struggling with slow API calls? πŸ•’

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more β†’

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay