MiguelNdeCarvalho / speedtest-exporter

Speedtest Exporter made in python using the official speedtest bin
https://docs.miguelndecarvalho.pt/projects/speedtest-exporter/
GNU General Public License v3.0
197 stars 56 forks source link

feat: ability to delay the speedtest (via env var SPEEDTEST_DELAY) #177

Open Easen opened 2 years ago

Easen commented 2 years ago

Added the env var SPEEDTEST_DELAY to delay the running of the speedtest.

What does this fix?

I've been trying to run multiple instances of this speediest export as I currently have multiple internet connections (VPN's, etc.).

Prometheus doesn't have a way to stagger the scapes, I did try and use a different internals, but this was difficult to scale to 3 speedtest exporters.

Adding a delay means I can run multiple exporters with a 15 second gap between each at regular interval (every 30m)