MongoDB Integration

MongoDB Integration for Watchlog

The MongoDB integration enables real-time monitoring of your MongoDB databases, providing insights into key performance and health metrics such as connections, memory usage, operations, and network traffic. These metrics help ensure optimal performance and stability for your MongoDB instances.

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 MongoDB in integration.json

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

  {
      "service": "mongodb",
      "monitor": true,
      "username": "",
      "password": ""
  }
                

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 MongoDB integration section. Verify that metrics from your MongoDB instances are displayed correctly.