A project to scrape satellite data from tinygs and clean it, storing it in a pandas dataframe and then pushing it to an influxdb database. visualizing the data in grafana. where everything is containerized as services using docker compose: first is influxdb, second is grafana, and the third is a service for scraping and sending data to influxdb.
- docker
- docker-compose
git clone https://github.com/zachibs/SatelliteDataAnalysis.git
cd SatelliteDataAnalysis
cd scarping_service
docker-compose up
- Go to
http://LocalIPAddress:3000
- Set up InfluxDB as a data source in Grafana:
- Go to Configuration -> Data sources -> Add data source
- Select InfluxDB
- Set query as flux
- Set
URL=http://LocalIPAddress:8086
- Select basic auth and with credentials
- Set
User=DOCKER_INFLUXDB_INIT_USERNAME
,Password=DOCKER_INFLUXDB_INIT_PASSWORD
- Click on Custom HTTP Headers -> Add header
- Set
Header=token
,Value=DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
- InfluxDB Details:
organization=DOCKER_INFLUXDB_INIT_ORG
token=DOCKER_INFLUXDB_INIT_ADMIN_TOKEN
default Bucket=DOCKER_INFLUXDB_INIT_BUCKET
- Click on 'Save & test'
- Go to Dashboards -> Import
- Click on 'Upload dashboard JSON file'
- import the 'grafana-dashboard.json' file found in the repository directory
- Update each panel datasource to the correct one
- Click on a panel -> Edit
- Select Data source to InfluxDB
- Click on Query inspector
- Click on Refresh
- Click on Apply