If you want to configure your Agents to connect to BlazeMeter via a Proxy Server on your internal corporate network, here's what you should do:
- Follow the same process for installing an agent, but stop once you have generated the docker run command.
- NOTE: You can have a CA bundle also set up with a proxy setup, which is detail here.
- Copy the docker run command and add the following environment variables (using the same format and data in the variables above) to the command:
--env HTTP_PROXY=http://server:portIf you have authentication required for your proxy, then you will need to do the following to pass the username and password:
--env HTTP_PROXY=http://username:password@server:portThe full command with the additions will look like below:
docker run -d --env HTTP_PROXY=http://server:port --env HTTPS_PROXY=https://server:port --env NO_PROXY=127.0.0.1,localhost,myHostname.com --env HARBOR_ID=<Harbor ID> --env SHIP_ID=<Ship ID> --env AUTH_TOKEN=<Auth Token> --env AUTO_UPDATE=true --env DISTRIBUTION=stable --name=blazemeter-crane --restart=on-failure -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp --net=host blazemeter/crane python agent/agent.py
- Once you have made the edits above, copy the edited command, run it on the machine that you are installing the ship, and follow the final steps in the ship install to finish the installation.
NOTE: If you would like to run tests on external sites that are not contained within your proxy, you will need to set the proxy server and port (and if you use authentication, your username, and password) in your JMeter test, as shown below: