Skip to content

zuiye/wuhan2020-grafana

 
 

Repository files navigation

English | 简体中文

wuhan2020-grafana

Updated April 3,2020

China will hold a national mourning on April 4,2020 for martyrs who died in the fight against COVID19 and for compatriots who died from the disease, the State Council announced.

Summary

Use Grafana to display COVID-19 data

Quick Start

Requires Python 3.6 or later

git clone https://github.com/sunny0826/wuhan2020-grafana.git
cd wuhan2020-grafana
pip install -r requestment
python index.py

Run with docker

install Docker

Pull Image

docker pull guoxudongdocker/feiyan-datasource

Run Image

docker run -d --name datasource -p 8088:3000 guoxudongdocker/feiyan-datasource 

Stop Image

docker stop grafana

Import Grafana

Runing Grafana,And need install SimpleJson plugin.

Use docker runing Grafana(Recommend)

docker run \
        -d --name grafana  -p 3000:3000 \
        -e "GF_SECURITY_ADMIN_PASSWORD=qwe123" \
        -e "GF_INSTALL_PLUGINS=grafana-simple-json-datasource" \
        grafana/grafana grafana 

Add DataSource

Select SimpleJson as the DataSource and fill in the Name and URL:http://host.docker.internal:8088

Import Dashboard

Click on Upload.json file

select wuhan2020-grafana/dashboard.json

Deploy on K8S

kubectl apply -f deploy.yaml

About

使用 Grafana 展示疫情实时动态

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.9%
  • Dockerfile 4.1%