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 IBM® DevOps Test Hub (Test Hub).
- 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.
- Read and been familiar with the requirements to install and configure the
resource monitoring agents on Test Hub. See
Resource monitoring agents.
-
Click Set up Agents to extend Resource Monitoring
service link in Test Hub 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:
-
Click
to
fill in the appropriate command for Windows or Linux with the valid
offline token.
-
Click
to copy
the command to clipboard and paste the command in the console.
docker run -it --rm --privileged -e PROJECT_ID=230200 -e RTCP_OFFLINE_TOKEN=(Enter your offline token here) --network host -v //var/run/docker.sock:/var/run/docker.sock rmagent
docker run -it --rm --privileged -e PROJECT_ID=230200 -e RTCP_OFFLINE_TOKEN=(Enter your offline token here) --network host -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc -v /proc:/proc rmagent
-
Paste the command in the console and run the command.
When the agent is started, the agent is connected to Test Hub. The agent is displayed in
the list of connected resource monitoring agents with the hostname and status of the
agent. The agent is also added to the main page of the resource monitoring service in
Test Hub.
You can add a new resource monitoring source. It can be
collected from a service or from the named agents, depending on the capabilities
supported by the environment.