Server Monitoring
Depfloy can watch your server's CPU, memory, and disk usage and notify you when something crosses a threshold you set. A server's Monitoring section is where you turn this on, configure alerts, and review history; the Monitoring page in the sidebar shows the latest readings for every server.
Server monitoring requires the Business plan or above.
Install the monitoring agent #
A small Depfloy agent runs on each monitored server to collect metrics. Install it once per server:
- Open the server from System → Servers and pick Monitoring from its sections (
/servers/{server}/monitoring). - Click Install Monitoring Agent.
- Wait a few minutes while Depfloy installs and starts the agent.
The agent samples CPU, memory, and disk every 5 minutes. The interval is fixed for now.
Configure alerts #
Click Add Alert at the top of the section to add an alert rule, and save it with Create Alert. The available metrics are:
- CPU usage — average across cores
- RAM usage — used / total
- Disk usage — used / total on the root partition
For each rule, set:
- Alert name
- Metric — CPU, RAM, or disk usage
- Condition — Greater than (>), Less than (<), or Equal (=)
- Threshold (%) — a whole number from 0 to 100 (for example, CPU greater than 80)
An alert fires after two samples in a row cross its threshold and resolves after two samples in a row are back within it, so about ten minutes each way. While an alert is firing, another notification goes out when the value gets worse by more than 10 points for CPU or 5 points for RAM and disk since the last notification, and once an hour as a reminder.
Existing rules are listed under Alerts. Each row’s … menu has Deactivate (or Activate) and Delete.
The charts in the section cover the last 24 hours. Refresh data in the section’s More menu reloads them.
Every server on one page #
Monitoring in the sidebar lists every server you can see with its latest CPU, memory and disk reading and when it last reported. It’s the page you’d open if a teammate said “production looks weird right now”.
- Servers with a firing alert come first. Their status reads N Alerts, and the metric that crossed its threshold shows the threshold under the value.
- Search by name or IP, and filter by state: alerts firing, monitoring on, or monitoring off.
- Roles with
server:monitoringopen a server’s Monitoring section by clicking its name or its status. For other roles the name opens the server. - Servers that send database metrics get a Database column with connection use, and replica lag on replicas.
- The page refreshes every minute.
The alerts band #
While at least one server alert is firing, a one-line band sits under the header of Overview and of Projects. It shows the number of firing alerts, the first three as “server · alert name”, and View in Monitoring, which opens this page. The band counts alerts on every server you can see and disappears when the alert recovers.
Notifications #
When an alert triggers you receive an email by default. To also receive Slack or other channels, configure them under Settings → Notifications and enable Server Monitoring Alerts.
Who can see what #
- The Monitoring page lists every server you can see. A server’s Monitoring section, with its history and alert rules, is listed only for roles that may open it.
- Creating, editing, and deleting alert rules requires permission to update the server (Owner, Admin, Manager, or Developer roles — see Members).