Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redisgrafana/redis-pop-up-store
Pop-up store demo using @RedisTimeSeries, @RedisGears, and Redis plugins for Grafana
https://github.com/redisgrafana/redis-pop-up-store
grafana-redis grafana-redis-datasource redis redisgears redistimeseries
Last synced: about 2 months ago
JSON representation
Pop-up store demo using @RedisTimeSeries, @RedisGears, and Redis plugins for Grafana
- Host: GitHub
- URL: https://github.com/redisgrafana/redis-pop-up-store
- Owner: RedisGrafana
- License: apache-2.0
- Created: 2020-07-12T16:54:39.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-25T15:19:15.000Z (almost 3 years ago)
- Last Synced: 2023-03-06T03:25:23.638Z (almost 2 years ago)
- Topics: grafana-redis, grafana-redis-datasource, redis, redisgears, redistimeseries
- Language: JavaScript
- Homepage: https://demo.volkovlabs.io
- Size: 10.6 MB
- Stars: 15
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Pop-up store demo using RedisTimeSeries, RedisGears and Redis plugins for Grafana
![Pop-up](https://github.com/RedisGrafana/redis-pop-up-store/blob/master/images/pop-up-dashboard.png)
[![Grafana 8](https://img.shields.io/badge/Grafana-8-orange)](https://www.grafana.com)
[![Redis Data Source](https://img.shields.io/badge/dynamic/json?color=blue&label=Redis%20Data%20Source&query=%24.version&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins%2Fredis-datasource)](https://grafana.com/grafana/plugins/redis-datasource) [![Redis Application](https://img.shields.io/badge/dynamic/json?color=blue&label=Redis%20Application&query=%24.version&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins%2Fredis-app)](https://grafana.com/grafana/plugins/redis-app)## Introduction
The Pop-up store is using [Redis Streams](https://redis.io/topics/streams-intro), [RedisTimeSeries](https://oss.redis.com/redistimeseries/), [RedisGears](https://oss.redis.com/redisgears/) and [Redis plugins](https://redisgrafana.github.io) to visualize data pipeline in Grafana.
![Diagram](https://github.com/RedisGrafana/redis-pop-up-store/blob/master/images/pop-up.png)
- 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](https://demo.volkovlabs.io):
- [Redis Overview dashboard](https://demo.volkovlabs.io/d/TgibHBv7z/redis-overview?orgId=1&refresh=1h)
- [Pop-up Store dashboard](https://demo.volkovlabs.io/d/0LC0Sm7Ml/pop-up-store?orgId=1)## Requirements
- [Docker](https://docker.com) to start Redis and Grafana.
- [Node.js](https://nodejs.org) 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
```