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

[Bug] Influx integration sends bytes sent rather than bandwidth measurement #82

Closed
adamus1red opened this issue Oct 24, 2022 · 5 comments · Fixed by #136
Closed

[Bug] Influx integration sends bytes sent rather than bandwidth measurement #82

adamus1red opened this issue Oct 24, 2022 · 5 comments · Fixed by #136
Assignees
Labels
🐛 bug Something isn't working

Comments

@adamus1red
Copy link
Contributor

adamus1red commented Oct 24, 2022

I configured influxdb2 integration and checked data after the first speedtest. These are the available fields I could choose from:

image

I picked download/upload, but I noticed very low values in influx:

image

so I checked the mariadb data (record #7):

image

So the data was ok. But the reported speed of that test was this:

image

I didn't understand at first...then I thought maybe those download/upload columns in the db represent the amount of data sent/received, and that you get the actual speed values from the json in the data column. Problem is that the data column is not exported to influx.

So, to integrate my OP, I think also the DL/UL speed values should be in their own columns, probably the quantity of data sent/received is not so important, and you could actually reuse those columns. :)

Originally posted by @alexdelprete in #48 (comment)

@alexjustesen
Copy link
Owner

alexjustesen commented Oct 24, 2022

SOB, I knew I forgot about that somewhere.

@alexjustesen alexjustesen self-assigned this Oct 24, 2022
@alexjustesen alexjustesen added the 🐛 bug Something isn't working label Oct 24, 2022
@alexdelprete
Copy link
Contributor

SOB, I knew I forgot about that somewhere.

I see same values in MariaDB and InfluxDB. If I multiply them by 8, I have the bandwidth in Mbits/s.

@alexjustesen
Copy link
Owner

I think the point is more that I should be reporting it consistently. If the panel reports bits, influxdb should get bits

@alexdelprete
Copy link
Contributor

alexdelprete commented Oct 24, 2022

I agree...let's stick to a representation then it will be converted as needed at UI level.

I mean: the storage db should contain the same value and representation of speedtest's json, and it should be the same also in influx, right?

@adamus1red
Copy link
Contributor Author

I was trying to figure out why my guagues in Grafana were off and ran across @alexdelprete's comment. Having it consistent would be a big plus

adamus1red added a commit to adamus1red/speedtest-tracker-1 that referenced this issue Nov 10, 2022
…en#82


Added as a new value rather than changing existing download/upload so current workarounds do not break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants