All eyes on AI: 2026 predictions – The shifts that will shape your stack.

Read now

Tutorial

How to add Redis as a datasource in Grafana and build customize dashboards for Analytics

February 26, 20267 minute read
Ajeet Raina
Ajeet Raina
TL;DR:
Install the Redis Data Source plug-in for Grafana, point it at your Redis instance, and import the predefined dashboard to start visualizing Redis metrics. You can also create custom panels to monitor the specific data points that matter to your application.
The Redis Data Source for Grafana is a plug-in that allows users to connect to the Redis database and build dashboards in Grafana to easily monitor Redis and application data. It provides an out-of-the-box predefined dashboard, but also lets you build customized dashboards tuned to your specific needs.

#What you'll learn

  • How to install Grafana and the Redis Data Source plug-in using Homebrew, Docker, or Docker Compose
  • How to connect Redis as a Grafana datasource and configure connection settings
  • How to import the predefined Redis dashboard for instant data visualization
  • What Redis commands are supported by the Grafana Redis connector
  • How to build custom analytics dashboards with Redis data in Grafana

#Prerequisites

  • A running Redis instance (local, self-hosted, or Redis Cloud)
  • One of the following installed on your system:
  • Basic familiarity with Grafana concepts (datasources, dashboards, panels)
Grafana dashboard displaying Redis data visualization with key metrics and custom panels

#What features does the Redis Grafana datasource support?

  • Grafana 7.1 and later with a new plug-in platform supported.
  • Data Source can connect to any Redis database. No special configuration is required.
  • Redis Cluster and Sentinel supported since version 1.2.
  • Data Source supports:
  • Redis Time Series: TS.GET, TS.INFO, TS.MRANGE, TS.QUERYINDEX, TS.RANGE
  • Search: FT.INFO

#How do you install the Redis Grafana datasource with Homebrew?

#Step 1. Install Grafana

#Step 2. Install the Redis datasource plug-in

Homebrew downloads and untars the files into /usr/local/Cellar/grafana/version.

#Step 3. Start the Grafana service

#Step 4. How do you access the Grafana dashboard?

Open https://IP:3000 to access grafana. The default username/password is admin/admin.
Grafana login screen and initial dashboard overview after first launch

#Step 5. Open the Configuration menu

Clicking the Configuration gear icon in the Grafana sidebar navigation

#Step 6. Add Redis as a data source

Adding a new data source from the Grafana Configuration page

#Step 7. Select "Redis" as the data source type

Selecting the Redis data source type from the list of available Grafana datasources

#Step 8. How do you configure the Redis connection?

Add the Redis database name, endpoint URL, and password. This assumes you already have a Redis server and database up and running in your infrastructure. You can also use Redis Cloud as shown in the example below.
Configuring Redis data source connection settings including endpoint URL, database name, and password

#Step 9. Import the predefined Redis dashboard

Importing the pre-built Redis analytics dashboard from the data source settings page

#Step 10. View the Redis datasource dashboard

The imported Redis data source dashboard showing real-time metrics and data visualization panels

#What Redis commands does the Grafana datasource support?

Data Source supports various Redis commands using custom components and provides a unified interface to query any command.
Grafana query editor showing the list of supported Redis commands for building dashboard panels

#Further references for Homebrew

#How do you set up the Redis Grafana datasource with Docker?

You can install and run Grafana using the official Docker image.

#Step 1. Install Docker

The first step is to install Docker for your operating system. Run the docker version command in a terminal window to make sure that Docker is installed correctly.
NOTE
On Windows and Mac, install Docker version 18.03 or higher. You can run docker version to find out your Docker version.

#Step 2. How do you run Grafana with the Redis datasource in Docker?

Specify the plugins you want installed to Docker as a comma-separated list in the GF_INSTALL_PLUGINS environment. This sends each plugin name to grafana-cli plugins install ${plugin} and installs them when Grafana starts. In our case, we will be using redis-datasource.

#Step 3. Access the Grafana dashboard

Open https://IP:3000 to access Grafana. The default username/password is admin/admin.
Grafana login screen and initial dashboard overview when running in Docker

#Step 4. Open the Configuration menu

Clicking the Configuration gear icon in the Grafana sidebar when using Docker

#Step 5. Add Redis as a data source

Adding a new data source from the Grafana Configuration page in a Docker deployment

#Step 6. Select "Redis" as the data source type

Selecting the Redis data source type from the available Grafana datasources list in Docker

#Step 7. How do you configure the Redis connection in Docker?

Add the Redis database name, endpoint URL, and password. This assumes you already have a Redis server up and running in your infrastructure. You can also use Redis Cloud as demonstrated below.
Configuring Redis data source connection settings including endpoint, database, and password in Docker

#Step 8. Import the predefined Redis dashboard

Importing the pre-built Redis analytics dashboard in a Docker-based Grafana deployment

#Step 9. View the Redis datasource dashboard

The imported Redis data source dashboard displaying real-time metrics in Docker

#What Redis commands does the Docker datasource support?

Data Source supports various Redis commands using custom components and provides a unified interface to query any command.
Grafana query editor showing supported Redis commands for custom panel creation in Docker

#Further references for Docker

#How do you set up the Redis Grafana datasource with Docker Compose?

Assuming that Docker Compose is already installed on your system, follow these steps:

#Step 1. Clone the repository

#Step 2. Start the services with Docker Compose

The project provides a docker-compose.yml file that starts Redis with all modules and Grafana.

#Step 3. Access the Grafana dashboard

Grafana login screen and initial dashboard overview when using Docker Compose

#Step 4. Open the Configuration menu

Clicking the Configuration gear icon in the Grafana sidebar with Docker Compose

#Step 5. Add Redis as a data source

Adding a new data source from the Grafana Configuration page in a Docker Compose deployment

#Step 6. Select "Redis" as the data source type

Selecting the Redis data source type from the available Grafana datasources in Docker Compose

#Step 7. How do you configure the Redis connection in Docker Compose?

Add the Redis database name, endpoint URL, and password. This assumes you already have a Redis server up and running in your infrastructure. You can also use Redis Cloud as shown below:
Configuring Redis data source connection settings including endpoint, database, and password in Docker Compose

#Step 8. Import the predefined Redis dashboard

Importing the pre-built Redis analytics dashboard in a Docker Compose Grafana deployment

#Step 9. View the Redis datasource dashboard

The imported Redis data source dashboard displaying real-time metrics in Docker Compose

#What Redis commands does the Docker Compose datasource support?

Data Source supports various Redis commands using custom components and provides a unified interface to query any command.
Grafana query editor showing supported Redis commands for custom panel creation in Docker Compose

#Further references for Docker Compose

#Next steps