Cloudflare Docs
Magic WAN
Edit this page on GitHub
Set theme to dark (⇧+D)

Device metrics

Cloudflare customers can inspect metrics for a specific Magic WAN Connector in the Cloudflare dashboard. The Magic WAN Connector device metrics measured by Cloudflare include:

  • Average CPU load
  • Average temperature (this is always zero for Virtual Connector)
  • Average disk utilization
  • Average memory utilization

To check for Connector metrics:

  1. Log in to the Cloudflare dashboard and select your account.
  2. Go to Magic WAN > Configuration > Connectors.
  3. Select the Connector you want to check metrics for.
  4. In the side panel that opens, scroll down to ​​Usage information.

​​ Query metrics with GraphQL

Customers can query Cloudflare’s GraphQL API to fetch their Magic WAN Connector device metrics. The Cloudflare dashboard displays Magic WAN Connector device metrics over the past one hour. Via the GraphQL API, customers can query for up to 30 days of historical Magic WAN Connector device metrics.

For example:

query GetResults($accountTag: string, $datetimeStart: string, $datetimeEnd: string) {
viewer {
accounts(filter: {accountTag: $accountTag}) {
MagicWANConnectorMetricsAdaptiveGroups(
limit: 100,
filter: {
mconnInterfaceType: "system",
datetime_geq: $datetimeStart,
datetime_lt: $datetimeEnd,
}
){
avg {
cpuTemperature
cpuLoadPercentage
diskUsagePercentage
memoryUsagePercentage
}
dimensions {
mconnInterfaceName
}
}
}
}
}

​​ Average CPU load explained

The metric average CPU load is unique and distinctly different from CPU utilization which is another common CPU metric. The Magic WAN connector uses a Unix-style CPU load calculation.

CPU load is a measure of the number of processes that are currently running and that are waiting to be run on the CPU. Cloudflare collects the one minute load average from the device and converts that into a percentage based on the total number of cores in the CPU. If the Magic WAN Connector CPU has eight cores, and a one minute load average of two, then the average CPU load is 25%. If the average CPU load is above 100%, then there are processes in the queue that are waiting to be executed on the CPU.

Cloudflare is still evaluating the typical CPU load operating range on the MWAN Connector. In general, a healthy range for average CPU load on any device is between 30% and 70%. Customers may experience decreased MWAN Connector performance if the average CPU load is consistently above 100%.