Installation
Install the ServerWatch agent on your servers to start collecting metrics, traces, and logs. The agent is lightweight (less than 1% CPU overhead) and runs on Linux, Windows, and macOS.
1. Install the Agent
Run the following command to install the agent:
$ curl -sSL https://install.serverwatch.io | bash
2. Configure Your API Key
Add your API key to the configuration file:
# /etc/serverwatch/config.yaml
api_key: "YOUR_API_KEY"
hostname: "my-server"
tags:
- "env:production"
- "service:api"
3. Start the Agent
Start the agent and enable it on boot:
$ sudo systemctl start serverwatch-agent
$ sudo systemctl enable serverwatch-agent
Data will start appearing in your dashboard within 60 seconds.
API Reference
The ServerWatch API lets you programmatically access your monitoring data and automate common tasks.
/api/v1/metrics
Query time-series metrics for any host or container.
/api/v1/alerts
Create or update alert configurations.
/api/v1/traces
Search and retrieve distributed traces.
/api/v1/logs
Query and search log data with full-text search.