|
1 | 1 | # Pop-up store demo using RedisTimeSeries, RedisGears and Redis plugins for Grafana</h1> |
2 | 2 |
|
3 | | - |
| 3 | + |
4 | 4 |
|
5 | 5 | [](https://www.grafana.com) |
6 | 6 | [](https://grafana.com/grafana/plugins/redis-datasource) [](https://grafana.com/grafana/plugins/redis-app) |
7 | 7 |
|
8 | | -The Pop-up store demo 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. |
| 8 | +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. |
9 | 9 |
|
10 | 10 | ## How it works |
11 | 11 |
|
@@ -51,39 +51,35 @@ gb.register(prefix='queue:orders', batch=3, trimStream=True) |
51 | 51 |
|
52 | 52 | - Grafana query streams and Time-Series keys every 5 seconds to display samples using Grafana plugins. |
53 | 53 |
|
54 | | -## What is displayed on Grafana dashboard |
| 54 | +## Demo |
55 | 55 |
|
56 | | -- `Product Available` - the value of `product` key |
57 | | -- `Customers Ordering` - length of `queue:customers` |
58 | | -- `Orders Processing` - length of `queue:orders` |
59 | | -- `Orders Completed` - length of `queue:complete` |
60 | | -- `Customers Overflow` - the difference between customer submitted orders and orders completed |
61 | | -- `Customers Ordering` - change of `queue:customers` length |
62 | | -- `Orders In Queue` - change of `queue:orders` length |
63 | | -- `Completed Flow` - how many orders processed |
| 56 | +Demo is available on [demo.volkovlabs.io](https://demo.volkovlabs.io): |
| 57 | + |
| 58 | +- [Redis Overview dashboard](https://demo.volkovlabs.io/d/TgibHBv7z/redis-overview?orgId=1&refresh=1h) |
| 59 | +- [Pop-up Store dashboard](https://demo.volkovlabs.io/d/0LC0Sm7Ml/pop-up-store?orgId=1) |
64 | 60 |
|
65 | 61 | ## Requirements |
66 | 62 |
|
67 | 63 | - [Docker](https://docker.com) to start Redis and Grafana. |
68 | 64 | - [Node.js](https://nodejs.org) to run simulation script. |
69 | 65 |
|
70 | | -## Start Redis with RedisTimeSeries and RedisGears modules installed and Grafana |
| 66 | +## Start Redis with RedisTimeSeries, RedisGears modules installed and Grafana |
71 | 67 |
|
72 | 68 | ``` |
73 | 69 | npm run start |
74 | 70 | ``` |
75 | 71 |
|
76 | | -## Register [StreamReaders](https://oss.redis.com/redisgears/readers.html#streamreader) |
| 72 | +## Register RedisGears functions |
77 | 73 |
|
78 | 74 | Install Readers to add Time-Series and complete orders |
79 | 75 |
|
80 | 76 | ``` |
81 | 77 | npm run register |
82 | 78 | ``` |
83 | 79 |
|
84 | | -## Install [ioredis](https://github.com/luin/ioredis) module and run simulation |
| 80 | +## Install [ioredis](https://github.com/luin/ioredis) module and start simulation |
85 | 81 |
|
86 | | -Script `pop-up-store.js` will add customers to stream `queue:customers` and their orders to `queue:orders`. |
| 82 | +Script `pop-up-store.js` will add customers to stream `queue:customers` and their orders to the `orders` keys. |
87 | 83 |
|
88 | 84 | ``` |
89 | 85 | npm run simulation |
|
0 commit comments