Installing and running a Docker agent on a remote host
You must install the resource monitoring Docker agents on the target host for which you want to monitor the resources and collect the metrics. You need to run an agent to establish a connection with Rational® Test Automation Server.
Before you begin
- The resource monitoring service does not require access to the agent host but the agent must have reached the service host over HTTPS.
- The Docker agent must have been launched in a Docker container and requires Docker 19.03.
Procedure
- Click Set up Agents to extend Resource Monitoring service link in IBM® Rational® Test Automation Server to access the agents page where you can find the instructions and commands that are to be used to install and run the agents.
-
Expand Configure the Docker agent and click
Download Dockerfile to download a Docker agent.
You can also use the curl or wget commands to download the agent without accessing the resource monitoring web UI.
For more facility, use the code snippets to copy and fill in the commands with the valid offline token and the Docker file name.
For Windows:
curl -O -J https://hostName/rm/agent-Dockerfile
For Linux:
wget --content-disposition hostName/rm/agent-Dockerfile
-
Copy the build command that is under Build the Docker
image, paste it in your console and run it to build a resource
monitoring Docker image.
Before you start the a Docker agent, you must build a Docker image.
docker build --network=host --rm -t rmagent
-
Follow these steps to run the agent: