Share via


Query per la tabella AmlComputeClusterEvent

Ottenere gli eventi del cluster per le dimensioni specifiche delle macchine virtuali

Ottenere i primi 100 eventi del cluster per i cluster in cui le dimensioni della macchina virtuale sono Standard_D1_V2.

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

Ottenere il numero di nodi in esecuzione

Ottenere il numero di nodi in esecuzione tra aree di lavoro e cluster.

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

Grafico delle istanze del nodo in esecuzione e inattive

Grafico delle istanze di Nodo in esecuzione e inattive.

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