-
Notifications
You must be signed in to change notification settings - Fork 476
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
RabbitMQ monitoring app shows load balancer IP instead of client IP #98
Comments
@creactiviti as far as RabbitMQ is concerned, the connection to it is indeed from the load balancer. There is no way for it to know how many proxies are involved. The same is true for client libraries. |
That's true, @michaelklishin, but perhaps the ability to put the origin IP in a client property would help, for debugging purposes at least. Is that your motivation, @creactiviti? |
That's exactly right @squaremo -- thank you for clarifying that. Being able to provide an arbitrary suffix (in my case it would be the client's host ip) to the client property, visible on the console would totally work. |
OK, the code in master will let you supply additional clientProperties when you connect. It looks like this: var amqp = require('amqplib');
amqp.connect('amqp://localhost', {clientProperties: {'IP': '10.0.0.3'}}).then(...); The client property is visible in the management console if you go look at that specific connection; and, it'll be output by e.g., |
This is perfect. Thank you very much @squaremo. Any ETA on when it will be available on npmjs ? |
I'll have a look at the backlog and see if there's anything else I want to include -- otherwise, it can be a v0.2.2 pretty soon. |
When behind a load balancer, the RabbitMQ admin console shows the IP address of the load balancer for each connection -- instead of the original client IP. Would be great if there was a way to pass it along somehow when creating the connection.
The text was updated successfully, but these errors were encountered: