-
Notifications
You must be signed in to change notification settings - Fork 3.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
Add support for multiple UDP + JSON input plugins #591
Conversation
I tried to run the build and tests locally. It said there was an error … but the only one it showed was that there was already a port bound on 8083. Maybe tests conflict with a run influxdb instance? |
Support comes by way of [[input_plugins.udp_servers]] in config. A single port will map to a single database. * Update sample config to include [[input_plugins.udp_servers]] example * Change configuration.Configuration to hold config for array of udp servers * Change configuration.UdpInputPortString to accept a port int * Modify udp.NewServer to accept listenAddress string, database string * Modify server.Server struct to hold an array of udp.Server * Modify server.NewServer to not create any udp.Server * Update server.ListenAndServe to check and instantiate all instances of udp.Server
I would perhaps like to add integration tests for this. If that's required, I will investigate and this can be a WIP. |
All tests pass locally. Had to shut down my local influxdb. |
Oh, question: is there a way to mark the old configuration pattern as deprecated if this |
@tpitale do you mind signing the CLA really quick. You can find it on our website http://influxdb.com/community/cla.html |
Signing now. BRB. |
Done. |
Thanks |
Support comes by way of [[input_plugins.udp_servers]] in config.
A single port will map to a single database.