https://github.com/petercinibulk/influxdb-v2-speedtest
Internet speedtest for InfluxDB v2 and Grafana
https://github.com/petercinibulk/influxdb-v2-speedtest
Last synced: about 1 year ago
JSON representation
Internet speedtest for InfluxDB v2 and Grafana
- Host: GitHub
- URL: https://github.com/petercinibulk/influxdb-v2-speedtest
- Owner: petercinibulk
- License: mit
- Created: 2021-08-07T22:30:31.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-07T23:36:24.000Z (almost 5 years ago)
- Last Synced: 2025-02-03T12:50:57.239Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# InfluxDB V2 Speedtest
Internet speedtest for ingesting upload, download, and ping speeds to InfluxDB V2.
Can be used to show internet speeds using Grafana.
Inspiration for this project came from [Speedtest-for-InfluxDB-and0Grafana](https://github.com/barrycarey/Speedtest-for-InfluxDB-and-Grafana)
## Docker-Compose Example
```
version: "3.5"
services:
influxdb:
image: influxdb:2.0.7
container_name: influxdb
restart: always
volumes:
- influxdb-volume:/var/lib/influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=adminpassword
- DOCKER_INFLUXDB_INIT_ORG=speedtest
- DOCKER_INFLUXDB_INIT_BUCKET=speedtest
- DOCKER_INFLUXDB_INIT_RETENTION=1w
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=token
speedtest:
image: petercinibulk/influxdb-v2-speedtest:latest
depends_on:
- influxdb
environment:
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_TOKEN=token
- INFLUXDB_ORG=speedtest
- INFLUXDB_BUCKET=speedtest
restart: always
volumes:
influxdb-volume:
```
### Enviroment Variables
- INFLUXDB_URL: Required. The url for InfluxDB
- INFLUXDB_TOKEN: Required. The token for InfluxDB
- INFLUXDB_ORG: Required. The org for InfluxDB
- INFLUXDB_BUCKET: Required. The bucket for InfluxDB
- TIMEOUT_IN_SEC: Optional. The timeout after running the speedtest. Defaults to 15 minutes
## Develeopment
Run:
```poetry export -f requirements.txt --output requirements.txt --without-hashes```
when there is a change to dependencies so the docker image can be created without poetry to reduce size
## License
This project is licensed under the [MIT License](LICENSE)