Ubuntu
- Navigate to the agent config directory:
cd /opt/watchlog-agent sudo vim integration.json
- Locate the PostgreSQL object:
{ "service": "postgresql", "monitor": false, "host": "localhost", "port": "5432", "username": "", "password": "", "database": [] }
3. Change `"monitor"` from `false` to `true`:
```diff
- "monitor": false
+ "monitor": true
- Populate the fields:
host
,port
,username
,password
database
: list of database names, e.g.["db1","db2"]
- Save the file and reload the agent:
sudo pm2 reload watchlog-agent