Monitoring
Collect CPU and memory metrics for servers and containers, and get alerts when a server crosses a threshold.
Monitoring collects CPU and memory metrics for your servers and containers and shows them in the panel. It can also send an alert to your notification providers when a server exceeds a threshold.
Before you start
- Complete the server setup: open Servers › your server › Overview, click Open setup under Set up server and confirm every section has a green checkmark.
- Open port
4500on the server. The metrics server listens there, and monitoring doesn't work without it.
Enable monitoring
In the same dialog, open the Monitoring tab and set the options below.
Click Save changes.
| Setting | What it does | Default |
|---|---|---|
| Server refresh rate | How often server metrics are collected. Lower values give finer data and add load. | 20 seconds |
| Container refresh rate | How often container metrics are collected. | 20 seconds |
| Server retention days | How long metrics are kept. A cron job deletes older data. | 2 days |
| Port | Port of the metrics server. | 4500 |
| Include services | Services to monitor: all, specific Compose services, specific applications, or both. | All |
| Exclude services | Services to skip, chosen the same way. | None |
| CPU threshold (%) | CPU usage that triggers an alert. 0 disables it. | 0 |
| Memory threshold (%) | Memory usage that triggers an alert. 0 disables it. | 0 |
| Metrics token | Authenticates metrics requests. Use the generated token or generate a new one in the server section. | Generated |
| Metrics callback URL | Endpoint that receives the metrics. Use the default or set your own. | Panel URL |
The default callback URL is your panel's own address:
https://your-wtree-cloud-domain.com/api/trpc/notification.receiveNotificationAlerts
Alerts go to every enabled notification provider that has server threshold events turned on. They compare the server's total usage against the threshold, not individual services.
Verify
Open the server's Metrics tab and a service's Metrics tab, and check that the charts show data. "Failed to fetch metrics" or "No data available" right after enabling is normal: the server needs a few minutes to collect its first samples.
