Docker Integration

Docker Integration for Watchlog

Follow these steps to set up and configure Docker integration for Watchlog. This integration enables monitoring of Docker metrics, such as container status, resource usage, and logs.

Step 1: Install the Watchlog Agent

If you haven't already installed the Watchlog Agent, download and install it on your server. Refer to the installation guide for detailed instructions.

Step 2: Configure Docker in integration.json

Locate the integration.json file and enable Docker integration by adding or updating the following configuration:

  {
      "monitor": true,
      "service": "docker"
  }
                

On an Ubuntu Agent, this file is typically located at /opt/watchlog-agent/integration.json.

For the Source Agent, it is found in the Watchlog Agent directory.

Step 3: Restart Watchlog Agent

Restart the Watchlog Agent to apply the changes:

For Ubuntu Agent:

  sudo systemctl stop watchlog-agent
  sudo systemctl start watchlog-agent
                

For Source Agent:

  pm2 reload watchlog-agent
                

Step 4: Verify Integration

Log in to the Watchlog panel and navigate to the Docker integration section. Verify that metrics from Docker containers are being displayed correctly.