Docker Environment Deployment

Agent Deployment

1. Deploy MA on the Host

MA supports Docker directly. Install MA on the host machine to fetch the monitoring data of applications in Docker (Install MOF first). Please refer to installation steps on the host. Modify properties below in agent.properties:

  • Start Http scan and modify the property value of feature.monitoragent.detector.container.scan.enable into true,
  • Configure the scanning port and congfigure the property value of feature.monitoragent.detector.container.ports to be an outbound port (i.e. the port that is mapped onto the host from Docker). Separate multiple ports with comma.

2. Install MA in Docker

Alternatively, install MA into Docker in the following two methods.

2.1. Mount MA into the Container via Volume

  1. Add parameters below when starting the container:
    -v {location}/uav/uavagent: {dockerLocation}/uavagent
    
    wherein ‘{location}’ is the unzipped directory of MA in the host and {dockerLocation} is the unzipped directory of MA in Docker. The directory can be customized. /app/uav/ is recommended.
  2. Modify the scanning mode and scanning port (be noted that the port here shall be the outbound port of Docker) in the agent.properties file as in 1.
  3. Start MA in the general mode after entering the container and check whether the startup is successful or not.

2.2. Build the MA File into the Image via Dockerfile

  1. Unzip MA under the directory at the same level as that of Dockerfile.
  2. Grant the exectution access to the script file under the bin directory.
  3. Modify the agent.properties file. Please refer to the method in 2.1.
  4. Add the statements below into Dockerfile:
    ADD uavagent {dockerLocation}/uavagent
    
    5 . Construct images with Dockerfile
  5. Start MA in the general mode after entering the container and check whether the startup is successful or not.

results matching ""

    No results matching ""