A simple utility that runs internet test using speedtest.net and reports the results with prometheus endpoint.
I used:
Inspired by
Consider this line:
sgp -b :8080 -i 60
sgp
is a compiled binary of this project-b
is for "bind", the address which will be passed to ListenAndServe, default is:8080
-i
is for "interval", the time between measurement in seconds, default is60
The server will start and will report metrics over /metrics
.
The metrics for speed test have a prefix speedtest
. Following metrics are available:
speedtest_latency
- a gauge, msspeedtest_download
- a gauge, MB/sspeedtest_upload
- a gauge, MB/s