Platform
Monitoring and alerts
Turn on monitoring for a server or VM, read its CPU, memory, disk, load and network charts, and get alerts in the console, by webhook or by email.
What it does
CloudOps collects system metrics from your servers and VMs and checks them against alert rules you set. Both live under Monitoring in the console: Metrics shows charts for one machine at a time, and Alerts holds your rules, the alerts firing now, and silences.
The metrics come from node_exporter, a small open-source agent on the machine. A Windows VM runs windows_exporter instead. CloudOps collects from the agent and stores the metrics for you; you do not run a monitoring server of your own.
- YouTurn on monitoringOn the server or VM page
- setup job installs the agent
- CloudOpsCollects metricsFrom node_exporter on the machine
- metrics
- CloudOpsChecks your alert rulesShows what fires under Active Alerts and in the bell
- alert starts or resolves
- Your receiverWebhook or emailOnce when an alert starts, once when it resolves
Turn on monitoring
Monitoring is off until you turn it on, one machine at a time.
- A bare-metal server: open it and press Enable monitoring next to Monitoring, or Setup Monitoring on its Monitoring tab.
- A VM: open it and press Setup Monitoring on its Monitoring tab.
- A Kubernetes cluster CloudOps builds: leave Node Monitoring (Prometheus) selected when you create it, and every node gets the agent. For a running cluster, press Setup Monitoring on its Health tab. The button shows while some nodes are not monitored. It is not offered for a cluster CloudOps only observes.
CloudOps runs a setup job on the machine. On Linux it installs node_exporter as the cloudops-node-exporter service on port 9100, or on another port if something else already uses 9100. For a VM, CloudOps also sets up a forward on the VM's host so the metrics can be collected. The machine needs an SSH key whose private key is stored in CloudOps (see Certificates, SSH keys and secrets). A Windows VM needs its administrator credential instead.
Monitoring shows as on only after the setup job has succeeded. The first metrics usually appear one to two minutes later. If the job fails, monitoring stays off.
The exporter has no login. Anyone who can reach its port can read the machine's metrics.
Machines you imported
CloudOps does not install its agent on a machine you imported. If the machine already runs node_exporter, press Adopt existing exporter, check the node_exporter port (9100 by default) and press Adopt exporter. CloudOps then reads that exporter and changes nothing on the machine. It must be able to reach that port. On a bare-metal server, Stop scraping undoes this.
If an imported VM runs no exporter at all, its Monitoring tab also offers Install anyway. Use it only in that case: a second exporter cannot take a port that is already in use.
Read the charts
Open Monitoring → Metrics and pick a machine under Server. The list shows the servers and VMs in the region selected in the header. Five figures show the current state:
- CPU, Memory and Disk, as percentages used. Disk is the root file system, or drive C: on Windows.
- Load (1m): the one-minute load average.
- Uptime (h): hours since the machine started.
Below them is one chart at a time: CPU %, Memory %, Disk %, Load (1m), Net In or Net Out, over 1h, 24h, 7d or 30d. Network traffic is in bits per second. On Linux, loopback and the virtual interfaces of bridges, containers and VPNs are left out, so the same traffic is not counted twice.
Metrics are kept for up to 15 days, so the 30d chart shows at most the last 15 days. Windows has no load average, so Load (1m) stays empty for a Windows VM.
The Monitoring tab of a server or VM shows the current figures for that machine.
Alert rules
Open Monitoring → Alerts, go to Alert Rules and press New Rule. Give the rule a Name, choose a Host and an Alert Type, and press Create. All Servers covers every server, including ones you add later.
Four types watch a metric, so the server needs monitoring turned on:
- CPU Usage, Memory Usage and Disk Usage fire when use goes above Threshold (%), 90 by default.
- Load Average fires when the one-minute load average goes above Threshold, 4 by default. It does not apply to Windows VMs.
A metric alert fires once the value has stayed above the threshold for five minutes. Its severity is Warning.
Five types watch the server's state, whether or not monitoring is on:
- Server Down (Critical): the server stops answering on its SSH port. CloudOps checks every server about once a minute.
- Validation Failed (Warning): the server's last validation failed.
- Config Drift (Warning): a configuration file that CloudOps installed on the server has changed since.
- Hardware Change (Warning): the number of CPU cores, or the memory by more than 1 GB, differs from what CloudOps recorded.
- Service Stopped (Critical): a CloudOps service on the server is not running.
Config Drift, Hardware Change and Service Stopped read the result of the latest scan of the server. CloudOps checks the five server-state types every five minutes. Press Evaluate Now to check them straight away.
Click a rule to edit it, including its Alert Type. Click Enabled or Disabled in the Status column to switch it. When you change the type, webhook and email start afresh, as when you change a target: an alert the old type had open is not sent as resolved.
Where alerts go
- Active Alerts lists every alert firing now, with its severity, host and start time. It refreshes every 30 seconds.
- Every alert also appears in the notification bell, at CloudOps' next check, within five minutes. When it ends, the bell keeps it, marked Resolved, until you acknowledge it. Acknowledging an alert that is still firing keeps it quiet until it ends; if it starts again later, it comes back as a new alert.
- A rule can also send each alert to a Webhook URL, an Email address, or both: once when it starts and once when it resolves.
Webhook and email
CloudOps sends webhook and email messages when it checks, every five minutes, and only for changes. Saving a rule sends nothing: an alert that is already firing when you add or change a webhook or email is not sent, and the first message is the next change. To check a target straight away, save the rule, open it again and press Send test under Delivery.
- Webhook URL must use HTTPS, on a host that resolves to a public address. CloudOps sends a JSON
POSTand does not follow redirects. Any 2xx answer counts as delivered. The body has a one-linetextfield, so a Slack, Mattermost or Teams incoming webhook works as it is. - Email must be the address of a member of your organization. Any other address is refused when the alert is sent. Your tenant can send up to 30 alert emails an hour. Recipients can unsubscribe from alert emails.
A failed delivery is not retried. Under Delivery, the rule shows the outcome of its last message, with the reason when it failed.
Check that a webhook came from CloudOps
Each webhook carries an X-CloudOps-Timestamp and an X-CloudOps-Signature header. The signature is sha256= followed by the HMAC-SHA256 of the timestamp, a dot and the raw body, keyed with the rule's signing secret. To read the secret, open the rule and press Show under Webhook signing secret. Rotate replaces it; messages signed with the new secret fail your check until you update the receiver.
import hashlib, hmac
def is_from_cloudops(secret: str, timestamp: str, body: bytes, signature: str) -> bool:
mac = hmac.new(secret.encode(), timestamp.encode() + b"." + body, hashlib.sha256)
return hmac.compare_digest("sha256=" + mac.hexdigest(), signature)The body also carries event (alert.firing, alert.resolved or alert.test), severity, the rule and server, message, fired_at, resolved_at and console_url.
Silence alerts for a while
On Silences, press New Silence. Fill in Alert Name, Instance or both, choose how long in Duration (hours), from 1 hour to 1 week, add a Comment and press Create Silence.
Copy both values from Active Alerts. The alert name is the bold title of the alert. The instance is the server's address and port for CPU, memory, disk and load alerts, shown after the start time, and the server name for the other types.
A silenced alert stays in Active Alerts, marked Silenced, and is left out of the tab's count. For CPU, memory, disk and load rules, a silence also holds back new bell notifications and new webhook and email messages until it ends. It does not stop server-state alerts from reaching the bell, webhook or email; disable the rule for that.
Silences shows each active silence with when it ends and who created it. To end a silence early, delete it.
Disabled servers
While a server is disabled, CloudOps collects no metrics from it and raises no alerts for it. An alert that was open when you disabled the server closes without a resolved message, and the rule shows Not sent with the reason.
Who can do what
- Viewers can see metrics, rules, active alerts and silences, but not change them.
- Members and above can also turn on monitoring, adopt an exporter, create, change and delete rules and silences, press Evaluate Now and Send test, and show or rotate a webhook signing secret.
Troubleshooting
- Monitoring is not enabled on this server: turn it on as described above. The charts stay empty until the setup job succeeds.
- No metrics a few minutes after setup: CloudOps collects from the exporter's port at the server's address, 9100 by default. Check that no firewall blocks that port between CloudOps and the server. For an adopted exporter, check that it runs on the port you entered.
- An email is refused: the address is not a member of your organization, the hourly limit was reached, or the recipient turned off alert emails. The rule's Delivery section says which.
- A webhook fails with a 3xx status: the receiver answered with a redirect, which CloudOps does not follow. Use the final URL.