AmlComputeClusterEvent テーブルのクエリ

特定の VM サイズのクラスターのクラスター イベントを取得する

VM サイズがStandard_D1_V2クラスターの上位 100 個のクラスター イベントを取得します。

AmlComputeClusterEvent
| where VmSize == "STANDARD_D1_V2"
| project  ClusterName, InitialNodeCount, MaximumNodeCount, QuotaAllocated, QuotaUtilized
| limit 100

実行中のノードの数を取得する

ワークスペースとクラスター間で実行されているノードの数を取得します。

AmlComputeClusterEvent
| summarize avgRunningNodes=avg(TargetNodeCount), maxRunningNodes=max(TargetNodeCount) by Workspace=tostring(split(_ResourceId, "/")[8]), ClusterName, ClusterType, VmSize, VmPriority
| limit 100

実行中およびアイドル状態のノード インスタンスのグラフ

実行中およびアイドル状態のノード インスタンスのグラフ。

AmlComputeClusterEvent
| project TimeGenerated, WorkspaceName=split(_ResourceId, "/")[-1], ClusterName, ClusterType, VmSize, VmPriority, 
  InitialNodeCount , IdleNodeCount, RunningNodeCount, PreparingNodeCount, MinimumNodeCount, MaximumNodeCount , CurrentNodeCount, TargetNodeCount 
|summarize round(sum(RunningNodeCount),1), round(sum(IdleNodeCount),1) by  Hourly=bin(TimeGenerated, 60m) 
| render timechart