-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify which server to run speed tests against #3
Comments
Hi Daniel, just wondered if there was any timeline to implementing this? |
I have just added support to pick your own serverID. |
Thanks Daniel, that's brilliant. Please can you let me know where to config it - I can't find it. Also how do you find the relevant server id? I've looked and there are several lists, but Grantham isn't listed :( |
I used this endpoint, and Grantham is on it: https://www.speedtest.net/speedtest-servers-static.php Grantham ID is: 31464 You can now set the server ID with command line argument To use this in the Starlink monitoring setup (https://github.com/danopstech/starlink) you need to override the speedtest_exporter entrypoint by editing the speedtest_exporter:
image: "ghcr.io/danopstech/speedtest_exporter:latest"
+ entrypoint: ["/speedtest_exporter", "-server_id", "31464"]
restart: always
ports:
- "9092:9090" If you also want to fall back to any server if your chosen one is not available then the extra line will look like this: speedtest_exporter:
image: "ghcr.io/danopstech/speedtest_exporter:latest"
+ entrypoint: ["/speedtest_exporter", "-server_id", "31464", "-server_fallback"]
restart: always
ports:
- "9092:9090" For the new entrypoint to take effect: docker compose down && docker-compose pull && docker-compose up --remove-orphan |
Thanks Dan, it seems to be working, defers to my backup server - I’ll double check the config. Out of interest does your location correct - it seems to think I am in London..
… On 27 Jul 2021, at 09:54, Daniel Willcocks ***@***.***> wrote:
I used this endpoint, and Grantham is on it: https://www.speedtest.net/speedtest-servers-static.php <https://www.speedtest.net/speedtest-servers-static.php>
Grantham ID is: 31464
You can now set the server ID with command line argument -server_id and if you want it to fallback to the closest server if you chosen one is not available then -server_fallback
To use this in the Starlink monitoring setup (https://github.com/danopstech/starlink <https://github.com/danopstech/starlink>) you need to override the speedtest_exporter entrypoint by editing the docker-compose.yaml file:
speedtest_exporter:
image: "ghcr.io/danopstech/speedtest_exporter:latest"
+ entrypoint: ["/speedtest_exporter", "-server_id", "31464"]
restart: always
ports:
- "9092:9090"
If you also want to fall back to any server if your chosen one is not available then the extra line will look like this:
speedtest_exporter:
image: "ghcr.io/danopstech/speedtest_exporter:latest"
+ entrypoint: ["/speedtest_exporter", "-server_id", "31464", "-server_fallback"]
restart: always
ports:
- "9092:9090"
For the new entrypoint to take effect:
docker compose down && docker-compose pull && docker-compose up --remove-orphan
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#3 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AD4QIC4YTVD64UOPHSADGVTTZZX3XANCNFSM4372LOYQ>.
|
Hi, thanks for developing this exporter. I am having difficulties to specify a server by ID via the command line https://www.speedtest.net/speedtest-servers-static.php only returns 10 servers for me at the moment, none of which are geographically close and none of which matches my desired server. So the exporter regularly chooses a random server as a fallback instead of the one I specified via the command line (as I specified Any ideas? Thanks, |
Hello, same here. But the server is alive and returns "OoklaServer It worked!" to the web browser (Chrome). When I specify "-server_fallback", exporter chooses server ID 30315 which is 638km away. And speedtest_exporter works. Then, I use exporter with ID 30315 but without "-server_fallback" and exporter returns error: Any ideas? Thanks, |
Hello, I live in Prague / Czech Republic and found out, that nearest servers I get, when I use this URL: It must be HTTPS. When I use https://www.speedtest.net/speedtest-servers-static.php, I get mostly Polish servers. It seems, that the preferred URL is: https://c.speedtest.net/speedtest-servers-static.php This still does not solve the issue, that I'm unable to use any server, which is not in response from any mentioned URL / speedtest-servers-static.php. Sometimes, even when I use ID which is in the response of the servers-static.php, exporter doesn't use it as I described in my previous post. Edit: Thanks |
Is your feature request related to a problem? Please describe.
I would like to specify/pin which server the speed tests run against.
Describe the solution you'd like
I should be able to provide a speedtest.net server ID as a command line flag when starting the exporter.
The text was updated successfully, but these errors were encountered: