Docker Container
Create an integration.json file and mount it as a volume:
[
{
"service": "mysql",
"monitor": true,
"host": "127.0.0.1",
"port": "3306",
"username": "root",
"password": "your_password",
"database": ["db1", "db2"]
}
]
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 MySQL Instances
You can monitor multiple MySQL databases by adding multiple entries with the same service name. Each instance is automatically identified by its host:port combination.
