Redis Coronavirus map demo is an example of the integration of RedisTimeSeries and Grafana Worldmap Panel using Redis Data Source. Redis Data Source plug-in is not officially supported by Grafana Worldmap, but there's a little workaround how to do it.
For this demo we are using United States coronavirus statistics from Coronavirus API website.
Besides standard graph representation, data are also drawn on the map. After you configure the Datasource and specify the query, you need to do the following:
- Apply the Transformation “Labels to fields” to TimeSeries output result.
- Change the map parameter “Location Data” to table mode and map the relevant fields accordingly, including the
geohash
field.
- coronavirusapi_exporter.py - Python application to create time series from weather metrics using http://coronavirusapi.com/.
- Redis database with RedisTimeSeries module - to store the time series. We also use Redis Set to keep the list of states to use them in Grafana dashboard variable.
- Grafana with Redis Data Source - to display the data.
The project provides docker-compose.yml
to start Redis with RedisTimeSeries module, Grafana 7.0 and data exporter.
docker-compose up
We love to hear from users, developers and the whole community interested by Redis Data Source plug-in. These are various ways to get in touch with us:
- Ask a question, request a new feature and file a bug with GitHub issues.
- Star the repository to show your support.
- Apache License Version 2.0, see LICENSE