Skip to content
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

Incorrect Speedtest Unit Conversion #47

Open
willshen opened this issue May 10, 2022 · 1 comment
Open

Incorrect Speedtest Unit Conversion #47

willshen opened this issue May 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@willshen
Copy link

Describe the bug
Looks like the speedtest library used returns speed in Megabit per second, but the exporter assumed it was given megabytes per second when converting to bytes per second .

Expected behavior
Seems like the metric name should either be download_speed_bps (lower case b to indicate bits per second) or that the conversion should include a divide by 8 to convert the speedtest result, which is bits per second, to bytes per second (since the metric name is Bps).

@willshen willshen added the bug Something isn't working label May 10, 2022
@genofire
Copy link

genofire commented Jul 24, 2022

Looks for me, like something get miss over prometheus -> the metric-names are uppercase (bytes), so it looks correct.

# HELP speedtest_download_speed_Bps Last download speedtest result
# TYPE speedtest_download_speed_Bps gauge
speedtest_download_speed_Bps{} 1.61xxx
# HELP speedtest_latency_seconds Measured latency on last speed test
# TYPE speedtest_latency_seconds gauge
speedtest_latency_seconds{} 0.017xxx
# HELP speedtest_scrape_duration_seconds Time to preform last speed test
# TYPE speedtest_scrape_duration_seconds gauge
speedtest_scrape_duration_seconds{} x.xxx
# HELP speedtest_up Was the last speedtest successful.
# TYPE speedtest_up gauge
speedtest_up{test_uuid="xxxxxxx-xxx-xxxx-xxxxx"} 1
# HELP speedtest_upload_speed_Bps Last upload speedtest result
# TYPE speedtest_upload_speed_Bps gauge
speedtest_upload_speed_Bps{} 1.xxxx

but it should be improve the description, to see this error.

A breaking change in dashboard would be to rename the metric-name to long name like:
speedtest_download_speed_bytes_per_sec or speedtest_rx_bytes_per_sec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

3 participants