Watchlog DocsWatchlog Docs
Home
Get Started
Integrations
Log Watchlist
Home
Get Started
Integrations
Log Watchlist
  • All Integrations
  • NGINX

    • Nginx Integration
    • Ubuntu
    • Docker
    • Windows
    • Kubernetes
    • Source Code
  • IIS

    • IIS Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • REDIS

    • Redis Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • POSTGRESQL

    • PostgreSQL Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • MONGODB

    • MongoDB Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • MYSQL

    • MySQL Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • PM2

    • PM2 Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code
  • DOCKER

    • Docker Integration
    • Ubuntu
    • Docker Container
    • Windows
    • Kubernetes
    • Source Code

Docker Container

To enable MySQL monitoring and specify databases, modify the 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_MYSQL=false \
  -e MYSQL_HOST="127.0.0.1" \
  -e MYSQL_PORT="3306" \
  -e MYSQL_USERNAME="root" \
  -e MYSQL_PASSWORD="" \
  -e MYSQL_DATABASES="db1,db2" \
  watchlog/agent:latest

Change MONITOR_MYSQL to true and list databases:

- -e MONITOR_MYSQL=false \
+ -e MONITOR_MYSQL=true \
- -e MYSQL_DATABASES="" \
+ -e MYSQL_DATABASES="db1,db2" \
Last Updated:: 8/8/25, 2:02 AM
Contributors: mohammad
Prev
Ubuntu
Next
Windows