Docker Container
Create an integration.json file and mount it as a volume:
[
{
"service": "mongodb",
"monitor": true,
"host": "127.0.0.1",
"port": "27017",
"username": "",
"password": ""
}
]
Then run the container:
docker run -d \
--name watchlog-agent \
--network host \
-v /path/to/integration.json:/app/app/config/integration.json \
-e WATCHLOG_APIKEY="YOUR_APIKEY" \
-e WATCHLOG_SERVER="https://log.watchlog.io" \
watchlog/agent:latest
Multiple MongoDB Instances
You can monitor multiple MongoDB instances by adding multiple entries with the same service name. Each instance is automatically identified by its host:port combination.
