wtree Cloud

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 4500 on 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.

SettingWhat it doesDefault
Server refresh rateHow often server metrics are collected. Lower values give finer data and add load.20 seconds
Container refresh rateHow often container metrics are collected.20 seconds
Server retention daysHow long metrics are kept. A cron job deletes older data.2 days
PortPort of the metrics server.4500
Include servicesServices to monitor: all, specific Compose services, specific applications, or both.All
Exclude servicesServices 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 tokenAuthenticates metrics requests. Use the generated token or generate a new one in the server section.Generated
Metrics callback URLEndpoint 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.receiveNotification

Alerts

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.

Next steps

On this page