Docker Container
To enable MongoDB monitoring, modify the Docker run command:
docker run -d \
--name watchlog-agent \
-p 3774:3774 \
-v watchlog-agent-config:/app/app/config \
-e WATCHLOG_APIKEY="YOUR_APIKEY" \
-e WATCHLOG_SERVER="https://log.watchlog.io" \
-e MONITOR_MONGODB=false \
-e MONGODB_HOST="127.0.0.1" \
-e MONGODB_PORT="27017" \
-e MONGODB_USERNAME="" \
-e MONGODB_PASSWORD="" \
watchlog/agent:latest
Change MONITOR_MONGODB
to true
:
- -e MONITOR_MONGODB=false \
+ -e MONITOR_MONGODB=true \
Adjust MONGODB_HOST
, MONGODB_PORT
, MONGODB_USERNAME
, and MONGODB_PASSWORD
as needed.