Cloudflare のお客様は、Cloudflare ダッシュボードで特定の Cloudflare One Appliance(旧称 Magic WAN Connector)のメトリクスを確認できます。これらのメトリクスは、Cloudflare One Appliance の問題の切り分けに役立ちます。詳細は トラブルシューティング を参照してください。
お客様は Cloudflare の GraphQL API を照会し、Cloudflare One Appliance のデバイスメトリクスを取得できます。Cloudflare ダッシュボードは、直近 1 時間の Cloudflare One Appliance デバイスメトリクスを表示します。GraphQL API では、最大 30 日分の過去の Cloudflare One Appliance デバイスメトリクスを照会できます。
例:
query telemetry(
$accountTag: string
$snapshotsFilter: AccountMconnTelemetrySnapshotsAdaptiveGroupsFilter_InputObject!
$snapshotMountsFilter: AccountMconnTelemetrySnapshotMountsAdaptiveGroupsFilter_InputObject!
$snapshotThermalsFilter: AccountMconnTelemetrySnapshotThermalsAdaptiveGroupsFilter_InputObject!
$limit: int64!
) {
viewer {
accounts(filter: { accountTag: $accountTag }) {
snapshots: mconnTelemetrySnapshots(
filter: $snapshotsFilter
limit: $limit
orderBy: [datetimeFiveMinutes_DESC]
) {
max {
cpuCount
loadAverage1m
memoryFreeBytes
memoryTotalBytes
}
dimensions {
connectorId
datetimeFiveMinutes
}
}
snapshotMounts: mconnTelemetrySnapshotMounts(
filter: $snapshotMountsFilter
limit: $limit
orderBy: [datetimeFiveMinutes_DESC]
) {
max {
availableBytes
totalBytes
}
dimensions {
connectorId
datetimeFiveMinutes
}
}
snapshotThermals: mconnTelemetrySnapshotThermals(
filter: $snapshotThermalsFilter
limit: $limit
orderBy: [datetimeFiveMinutes_DESC, connectorId_DESC]
) {
max {
currentCelsius
}
dimensions {
connectorId
datetimeFiveMinutes
}
}
}
}
}メトリクス average CPU load は独特で、よく使われる別の CPU メトリクスである CPU utilization とは明確に異なります。Cloudflare One Appliance は Unix 方式の CPU 負荷計算 ↗ を使います。
CPU 負荷は、現在実行中のプロセスと、CPU 上で実行待ちのプロセスの数を測る指標です。Cloudflare はデバイスから 1 分間の負荷平均を収集し、CPU のコア総数に基づいてパーセントに換算します。Cloudflare One Appliance の CPU が 8 コアで、1 分間の負荷平均が 2 の場合、average CPU load は 25% です。average CPU load が 100% を超えている場合は、CPU での実行を待っているプロセスがキューに残っています。
Cloudflare は、Cloudflare One Appliance における典型的な CPU 負荷の運用範囲をまだ評価中です。一般に、どのデバイスでも average CPU load の健全な範囲は 30% から 70% です。average CPU load が継続的に 100% を超えると、Cloudflare One Appliance の性能が低下することがあります。