Azure Portal에서 이러한 쿼리를 사용하는 방법에 대한 자세한 내용은 Log Analytics 자습서를 참조하세요. REST API는 쿼리를 참조 하세요.
특정 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