-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Connect to InfluxDB via a Unix Domain Socket #3366
Comments
@danielnelson Can we implement the same way as explained here influxdata/influxdb#7135 ? |
Yeah, probably just need to add a |
@danielnelson how about something like |
That config style works for me. You won't be able to add a path but it will work better with multiple servers which is more important. Certificates should work the same, you can use them if you want but there is not much of a point. |
Yeah true. However right now you can specify a certificate but opt to not use it for certain connections by specifying http vs https. I suppose with uds there are two ways to do it - 1) always try to use https if a certificate has been configured or 2) a config option |
We might need the option, since even with no cert options set we might need to do a https connection. One thing to check is if InfluxDB can even use https on the unix-socket. What if when the unix_socket option is set we use the socket for all localhost urls, then you could have https for remote and http or https for localhost. The unix_socket format is inspired by curl which looks like this: If we did this we would lose the ability to connect to both a tcp socket and unix socket on localhost in the same output. If we decide to use the socket path I think we should use "unix" as the scheme too: |
The |
Thanks @danielnelson ! Much appreciated :) |
Feature Request
Proposal:
Add support for connecting to InfluxDB over a unix domain socket
Current behavior:
We can connect to InfluxDB via UDP or HTTP(S) over TCP but not UDS. While Telegraf has support for a generic socket writer which supports UDS, InfluxDB's UDS socket listener expects HTTP.
See : influxdata/influxdb#7135
influxdata/kapacitor#1628
Desired behavior:
Be able to talk to InfluxDB on the same host via UDS.
Use case:
The text was updated successfully, but these errors were encountered: