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

Add Influxdb Connection #515

Open
MDHMatt opened this issue Mar 3, 2021 · 10 comments
Open

Add Influxdb Connection #515

MDHMatt opened this issue Mar 3, 2021 · 10 comments

Comments

@MDHMatt
Copy link

MDHMatt commented Mar 3, 2021

Would be great if we could get a output to influxdb.

@fenpaws
Copy link

fenpaws commented Mar 6, 2021

+1 i did something like this a while ago but your solutions seem way better. My newer try and my older one

@henrywhitaker3
Copy link
Owner

Not merging the PR yet (need to write the wrapper for the influxdb version 2 client first), but have a look here. This the info you want in influx?

@root9191
Copy link

How can i check if the Settings for InfluxDB are correct?
I made Docker, the port is reachable - but there is no connection i think.
Do i have to use another "driver" in the docker-compose.yml? Now i use the standard File from your Page.

@henrywhitaker3
Copy link
Owner

henrywhitaker3 commented Apr 19, 2021

I'll add a test connection button next time I work on this. To manually check this atm, you can get a shell in the container and run:

php /config/www/artisan tinker
App\Utils\InfluxDB\InfluxDB::connect()

If the output looks something like this:

>>> App\Utils\InfluxDB\InfluxDB::connect()
=> App\Utils\InfluxDB\InfluxDB {#3553}

Then the connection works, if it doesn't you should see an error in there

@root9191
Copy link

Thank you for your Help!
Unfortunately i do not have a connection to the DB. Can you show how you made it work?

@henrywhitaker3
Copy link
Owner

Which version of influx are you using? I've only written the adapter for v1 so far

@funnelcloudservices
Copy link

funnelcloudservices commented May 29, 2021

My output is:
App\Exceptions\InfluxDBNotEnabledException

Curiously, when I enable or disable the INflux integration in settings the pop-up windows always says "enabled or disabled heathchecks.io" section. I'm not sure if that's just an incorrect message or if the entire integration isn't enabled.

@NigelVanHattum
Copy link

Hey @funnelcloudservices,

Just started using speedtest, you have to disable Influx in the UI (The checkbox is enabled) and after that re-enable it. This got the connection working for me

@srobert72
Copy link

Works with InfluxDb 1.8.10
I tried shell commands mentionned by @henrywhitaker3
Didn't work at first, but ok after some disabled/enabled as @NigelVanHattum said

root@09085a37bca5:/# php /config/www/artisan tinker
Psy Shell v0.10.6 (PHP 7.4.15 — cli) by Justin Hileman

>>> App\Utils\InfluxDB\InfluxDB::connect()
App\Exceptions\InfluxDBNotEnabledException

>>> App\Utils\InfluxDB\InfluxDB::connect()
App\Exceptions\InfluxDBNotEnabledException

>>> App\Utils\InfluxDB\InfluxDB::connect()
=> App\Utils\InfluxDB\InfluxDB {#3524}

>>> App\Utils\InfluxDB\InfluxDB::connect()
=> App\Utils\InfluxDB\InfluxDB {#3557}

>>> App\Utils\InfluxDB\InfluxDB::connect()
=> App\Utils\InfluxDB\InfluxDB {#3585}

@ttenroK
Copy link

ttenroK commented Jan 1, 2022

It would be very nice if support for InfluxDB 2 would be added too. Is it planned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants