Add docker-compose override file for Traffic Monitoring #2224
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Sometimes it's invaluable to inspect and monitor the traffic between ui, rest_api and elasticsearch: E.g. ensuring request correlation, debugging elasticsearch problems, etc.). Till now there's no easy way to monitor traffic. A simple docker-compose override file makes it super easy for anyone without the need to fiddle with the own environment.
Proposed changes:
use_system_proxy
param toElasticSearchDocumentStore
to force use ofRequestsHttpConnection
in elasticsearch client which automatically uses the system proxy (e.g.HTTP_PROXY
andHTTPS_PROXY
env variable in linux)Usage:
Run
Watch traffic on localhost:8081.
(You might need to rebuild rest_api docker container, to enable
use_system_proxy
)Status (please check what you already did):