Skip to content

RedisGrafana/redis-pop-up-store

Repository files navigation

Pop-up store demo using RedisTimeSeries, RedisGears and Redis plugins for Grafana

Pop-up

Grafana 8 Redis Data Source Redis Application

Introduction

The Pop-up store is using Redis Streams, RedisTimeSeries, RedisGears and Redis plugins to visualize data pipeline in Grafana.

Diagram

  • Node.js script adds random data to Customers and Orders streams
  • RedisGears is using StreamReader to watch all queue: keys and adding Time-Series samples
  • Another RedisGears script completes orders
    • adding data to queue:complete stream
    • deleting client's ordering
    • decreasing product amount
    • trimming Orders queue
  • Grafana query streams and Time-Series keys every 5 seconds to display samples using Grafana plugins.

Demo

Demo is available on demo.volkovlabs.io:

Requirements

  • Docker to start Redis and Grafana.
  • Node.js to run simulation script.

Start Redis, Grafana and Application simulation

npm run start

Grafana Dashboards

Open Grafana Dashboard using browser http://localhost:3000

Redis-cli

To start redis-cli and look at the keys please run

npm run redis-cli