Skip to content
This repository has been archived by the owner on Nov 7, 2021. It is now read-only.

RedisGrafana/redis-coronavirus-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo project to display RedisTimeSeries data on the Worldmap in Grafana

Grafana 7 RedisTimeSeries Grafana-Redis-Datasource plugin

Introduction

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:

  1. Apply the Transformation “Labels to fields” to TimeSeries output result.
  2. Change the map parameter “Location Data” to table mode and map the relevant fields accordingly, including the geohash field.

The Docker container runs the following applications

  • 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.

Run using docker-compose

The project provides docker-compose.yml to start Redis with RedisTimeSeries module, Grafana 7.0 and data exporter.

docker-compose up

Feedback

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.

Other interesting resources

License

  • Apache License Version 2.0, see LICENSE