Set up the Watchlog Agent to start monitoring your server metrics effortlessly.
For Ubuntu servers, install the Watchlog Agent with a single command.
sudo apiKey="your-api-key" server='your-server' bash -c "$(curl -L https://watchlog.io/ubuntu/watchlog-script.sh)"
Replace your-api-key
and your-server
with the values provided in your dashboard.
Once installed, start the agent using the following command:
sudo systemctl start watchlog-agent.service
For other Linux distributions, such as CentOS, install the Watchlog Agent from source code.
git clone https://github.com/watchlogserver/watchlog-agent.git
cd watchlog-agent
npm install
.env
file with your credentials:
WATCHLOG_APIKEY=your-api-key
WATCHLOG_SERVER=your-server
Replace your-api-key
and your-server
with values from your dashboard. Start the Watchlog Agent using PM2 to keep it running in the background:
pm2 start watchlog-agent.js
The Watchlog Agent will now periodically send metrics to the Watchlog dashboard.