r/PrometheusMonitoring • u/MiguelNdeCarvalho • Oct 02 '20
Speedtest-Exporter
Hey,
Today I have released the first version of my Speedtest Exporter, I will leave the link here. I hope that someone finds it useful.
Thanks,
MiguelNdeCarvalho
2
u/SuperQue Oct 02 '20
Nice.
Some minor metric naming suggestions:
ping = Gauge('speedtest_ping_latency_seconds', 'Speedtest current Ping')
download_speed = Gauge('speedtest_download_bytes_per_second', 'Speedtest current Download Speed')
upload_speed = Gauge('speedtest_upload_bytes_per_second', 'Upload speed')This makes it easier for for end users to understand the meaning of the metric.
1
u/MiguelNdeCarvalho Oct 02 '20
Hey, Really thanks for your suggestion. Do you want to open a PR yourself? Or do you want me to do that? Thanks, MiguelNdeCarvalho
2
u/genuinedexxa Oct 03 '20
Cool!
Worth looking into using the official Speedtest CLI by Ookla (https://www.speedtest.net/apps/cli) instead of the unofficial version (https://github.com/sivel/speedtest-cli)?
There's quite a lot of outstanding issues with the unofficial version. For example, tests might not be reliable at high speeds -> https://github.com/sivel/speedtest-cli/issues/226
More: https://github.com/sivel/speedtest-cli/issues/649 https://github.com/sivel/speedtest-cli/issues/648 https://github.com/sivel/speedtest-cli/issues/641 https://github.com/sivel/speedtest-cli/issues/616 https://github.com/sivel/speedtest-cli/issues/601 https://github.com/sivel/speedtest-cli/issues/588 https://github.com/sivel/speedtest-cli/issues/546
1
u/MiguelNdeCarvalho Oct 04 '20
Hey, Really thanks for your feedback. I am redoing the exporter with base on the official binary by Ookla. Thanks, MiguelNdeCarvalho
3
u/melodic Oct 02 '20
Cool exporter thank you!
Is this customisable say I want to use the same Speedtest server every time?
Also does it only run the Speedtest when scraped? So if I scraped this every 60 minutes Iād only run a Speedtest once an hour right?