How to monitor Redis with Prometheus and Grafana for Real-Time Analytics

When do you use a time-series database?

  • When your application needs data that accumulates quickly and your other databases aren’t designed to handle that scale.
  • For financial or industrial applications.
  • When your application needs to perform real-time analysis of billions of records.
  • When your application needs to perform online queries at millisecond timescales, and support CPU-efficient ad-hoc queries.

Challenges with the existing traditional databases

What is RedisTimeSeries?

Get Access to 80+ Redis Sample Apps ~

Notables features of RedisTimeseries includes:

  • High volume inserts, low latency reads
  • Query by start time and end-time
  • Aggregated queries (Min, Max, Avg, Sum, Range, Count, First, Last, STD.P, STD.S, Var.P, Var.S) for any time bucket
  • Configurable maximum retention period
  • Downsampling/Compaction — automatically updated aggregate time series
  • Secondary index — each time series has labels (field value pairs) which will allows to query by labels

Why Prometheus?

Prometheus remote storage adapter for RedisTimeSeries

Getting Started


  • Install GIT
  • Install Docker
  • Install Docker Compose

Step 1. Clone the repository

Step 2. Examining the Docker Compose File

  1. Prometheus
  2. Adapter
  3. Grafana
  4. Redis


Storage Adapter



Step 3. Run the Docker Compose

Step 4. Accessing the Grafana

Step 5. Add Prometheus Data Source

Step 6. Importing Prometheus Data Source

Step 7. Adding Redis Datasource

Step 8. Running the Sensor Script

Step 9. Accessing Prometheus Dashboard

Further References:



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ajeet Singh Raina

Ajeet Singh Raina

Docker Captain, Docker Community Leader, Tip of the Captain’s Hat Award Winner, Docker Meetup India Regional Lead, Founder of DockerLabs