Simple Docker based app to monitor a machine's internet speeds.
I despise my home internet.
- Clone
- docker-compose up -d
- Point your browser at http://localhost:8080
- Grafana login is admin:admin
- Click the gear icon in the lower left
- We need to add a data source for our elastic search instance. Click the Add new Data source button.
- In the "Logging & document databases" section, click Elasticsearch
- Settings should be:
URL: http://elastic:9200 Index name: speedtests Time field name: timestamp
- Click "Save & test". This will result in an error about not being able to find the specified index. This will resolve itself after the first run of the cron script that is started when the scripts container comes up.
- Once saved, hover over the four box icon on the left and click "New Dashboard" and then click "Add a new panel"
- Make sure the Data Source selected is Elasticsearch. Change the following:
Metric should be "Extended Stats", select "download" to the right of it. Change "Stats" to Avg. In the right paneL
Title: whatever makes sense Connect null values: Always Show points: Always
Standard options section:
Unit: bits(IEC)
- Click Apply, you'll be taken to your new dashboard. You can duplicate the panel you just made and add different stats as you want. I have "Downloads", "Uploads", "Ping".
Removing volumes will delete any setup in Grafana you've done. Will also clear elasticsearch of any previous timeseries data.
Will look into:
- Preserving data through volume removal
- Dashboard and Data source configuration done and ready out of the box