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 PostgreSQL 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_POSTGRESQL=false \
  -e POSTGRESQL_HOST="127.0.0.1" \
  -e POSTGRESQL_PORT="5432" \
  -e POSTGRESQL_USERNAME="" \
  -e POSTGRESQL_PASSWORD="" \
  -e POSTGRESQL_DATABASES="db1,db2" \
  watchlog/agent:latest

Change MONITOR_POSTGRESQL to true and list databases comma-separated:

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