Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leucos/covina
docker compose setup with grafana, influxdb to display coronavirus graphs per country
https://github.com/leucos/covina
covid-19 golang grafana influxdb
Last synced: about 1 month ago
JSON representation
docker compose setup with grafana, influxdb to display coronavirus graphs per country
- Host: GitHub
- URL: https://github.com/leucos/covina
- Owner: leucos
- Created: 2020-03-13T17:24:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T19:58:23.000Z (over 4 years ago)
- Last Synced: 2023-03-10T21:43:33.507Z (almost 2 years ago)
- Topics: covid-19, golang, grafana, influxdb
- Language: Go
- Size: 306 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Covina
Displays infection data in Grafana
Source: https://www.ecdc.europa.eu/en/publications-data/download-todays-data-geographic-distribution-covid-19-cases-worldwide
## Quick start
### Insecure impatient mode
```bash
echo "INFLUXDB_HTTP_AUTH_ENABLED=false" > .env
docker-compose up --build
```Check http://127.0.0.1:3000 and login with `admin`/`admin`.
### Better
Copy `.env.sample` to `.env`
Define those variables in `.env`:
- `GF_SECURITY_ADMIN_USER`: grafana admin user
- `GF_SECURITY_ADMIN_PASSWORD`: grafana admin pass
- `INFLUXDB_READ_USER`: influxdb grafana user
- `INFLUXDB_READ_USER_PASSWORD`: influxdb grafana user password
- `INFLUXDB_WRITE_USER`: covina user
- `INFLUXDB_WRITE_USER_PASSWORD`: covina user password
- `INFLUXDB_ADMIN_USER`: influx admin user (not used, but required)
- `INFLUXDB_ADMIN_PASSWORD` influx admin password (not used, but required)```bash
docker-compose up --build
```Check http://127.0.0.1:3000 and login with `GF_SECURITY_ADMIN_USER` /
`GF_SECURITY_ADMIN_PASSWORD`.## Contributions
Send PRs !!
## Source format
Unfortunately, the source format is very unstable. Format changes every other
day. At this commit's date, it has been changed at least 5 times...For the record, on 20200420, the CSV format is the following:
```
dateRep day month year cases deaths geoId continentExp countryterritoryCode popData2018 countriesAndTerritories
20/04/2020 20 4 2020 88 3 AF Asia AFG 37172386 Afghanistan
...
```Changed on 20200421:
```
dateRep,day,month,year,cases,deaths,countriesAndTerritories,geoId,countryterritoryCode,popData2018,continentExp
22/04/2020,22,4,2020,61,1,Afghanistan,AF,AFG,37172386,Asia
```## Disclaimer
I am no expert at anything. Do not take anything here for granted.
Be safe out there.