Speedtest-Tracker icon indicating copy to clipboard operation
Speedtest-Tracker copied to clipboard

[HELP] Guide for using Influx db with Speedtest-Tracker

Open nodecentral opened this issue 3 years ago • 26 comments

Hi

Does anyone have an idiots (noobs) guide to create a Docker influx db instance/container and the associated database to work with Speedtest-Tracker ? Many thanks …

nodecentral avatar Apr 25 '22 08:04 nodecentral

Also interesting if we can somehow adopt influxDBv1 to use with InfluxDBv2

masterwishx avatar May 01 '22 15:05 masterwishx

I am also having difficulties saving data in my InfluxDB. Speedtest does not seem to try to contact the database and I can't find any log entry in speedtest.

luisfocosta avatar May 06 '22 21:05 luisfocosta

Do you mean influxdb1 or influxdb2?

masterwishx avatar May 10 '22 18:05 masterwishx

I am also having difficulties saving data in my InfluxDB. Speedtest does not seem to try to contact the database and I can't find any log entry in speedtest.

Working fine here, nothing special in the config, just the server hostname/port and user/pw:

image

I then found a speedtest dashboard in grafana library that I had to modify/adapt to work with speedtest-tracker:

image

alexdelprete avatar May 22 '22 16:05 alexdelprete

Same... can't link them :/

1aranzant avatar May 25 '22 08:05 1aranzant

I am also having difficulties saving data in my InfluxDB. Speedtest does not seem to try to contact the database and I can't find any log entry in speedtest.

Working fine here, nothing special in the config, just the server hostname/port and user/pw:

image

I then found a speedtest dashboard in grafana library that I had to modify/adapt to work with speedtest-tracker:

image

Can you share your Grafana config?

richterscale17 avatar May 27 '22 00:05 richterscale17

Can you share your Grafana config?

I uploaded it to Grafana dashboard library: https://grafana.com/grafana/dashboards/16339

If @henrywhitaker3 wants, he can reference it in the install/config instructions.

alexdelprete avatar May 27 '22 12:05 alexdelprete

I uploaded it to Grafana dashboard library: https://grafana.com/grafana/dashboards/16339

Thank you!

richterscale17 avatar May 27 '22 23:05 richterscale17

Working fine here

Do you using influxdb1 right? But is it possible to use influxdb1 inside influxdb2?

masterwishx avatar Jun 01 '22 06:06 masterwishx

Speedtest Tracker has support for influxdb1.

I read that in some way you can use influxdb2 for apps designed for influxdb1 by passing the config parameters in a certain way, but I simply decided to have influxdb1 and influxdb2 in my homelab without doing weird stuff. :)

alexdelprete avatar Jun 01 '22 08:06 alexdelprete

Thanks, yes its simpliest way ti use influxdb1 . but im trying now to make influxdb1 in influxdb2 , and i made it by console commands like its wrote in docker page of influxdb when building docker but now im trying to connect it to grafana having some error

masterwishx avatar Jun 01 '22 09:06 masterwishx

Ohhh I was trying with db2... lol thanks

1aranzant avatar Jun 01 '22 09:06 1aranzant

i can see data from speedtracker in db2 but cant get it into grafana yet ...

image

masterwishx avatar Jun 01 '22 09:06 masterwishx

when you create a dash in grafana you simply have to select the influxdb2 connector. I use grafana with both influxdb1 and 2.

alexdelprete avatar Jun 01 '22 09:06 alexdelprete

i selected but cant see nothing in dashboard

masterwishx avatar Jun 01 '22 09:06 masterwishx

image

masterwishx avatar Jun 01 '22 09:06 masterwishx

check first if you have data in influxdb1, through its interface:

image

once you're sure there's data coming in influxdb1 from speedtest-tracker, then add the datasource to grafana like this:

image

alexdelprete avatar Jun 01 '22 09:06 alexdelprete

Hi, Does anyone have a working Docker run/Compose file they can share from InfluxdB ? I’ve tried various guides but it’s not worked, hoping someone has a tried and tested one they can share - Thanks in advance..

nodecentral avatar Jun 01 '22 10:06 nodecentral

Ok, managed to get influxdb installed on my QNAP (https://ac20202021.medium.com/how-to-setup-influxdb-and-grafana-on-qnap-nas-a70a3ae91ae5)

Flying a little blind here, but I’ve created a ‘bucket’ called ‘speedtest-tracker’ and added my influx config under Speedtest settings.

11B13ECF-92D9-41B3-BA12-214E332C1072

To get things going and help build out the dB structure, I assumed I could take a csv backup of my data and upload it - but it seems that’s not as straightforward as I hoped - as I get the following error.

3415A222-A977-402A-8E09-BFA0E5DF93A6

How did other people populate their dB?

nodecentral avatar Jun 01 '22 11:06 nodecentral

check first if you have data in influxdb1, through its interface:

im trying to use influxdbv2 bucket that using influxdbv1

masterwishx avatar Jun 01 '22 13:06 masterwishx

i dont have expirience with influxdb at all but will try make it working on influxdbv2 from influxdbv1 client speedtest-tracker

image

masterwishx avatar Jun 01 '22 13:06 masterwishx

check first if you have data in influxdb1, through its interface

i have it but in influxdb2 and if add it to grafana then i have all data but checking how more right to add it for now ...

also made dashboard in influxdbv2

image

masterwishx avatar Jun 01 '22 15:06 masterwishx

Finaly builded sppedtest tracker on bucket linked to influxdbv1 in influxdbv2 on grafana on 16339 if someone interested i can write the steps here its not the easyest way .... but the easy way just install influxdbv1 )

masterwishx avatar Jun 01 '22 15:06 masterwishx

image

masterwishx avatar Jun 01 '22 15:06 masterwishx

Ok, managed to get influxdb installed

You need to make dbv1 and auth for bucket from console ...

masterwishx avatar Jun 02 '22 06:06 masterwishx

Finaly uploaded my dashboard to Grafana with instructions Speedtest Tracker - InfluxDBv2 https://grafana.com/grafana/dashboards/16428

masterwishx avatar Jun 11 '22 14:06 masterwishx