Share via


Consultas para a tabela AmlComputeClusterEvent

Obter eventos de cluster para clusters para um tamanho de VM específico

Obtenha os 100 principais eventos de cluster para clusters em que o tamanho da VM é Standard_D1_V2.

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

Obter o número de nós em execução

Obtenha o número de nós em execução em áreas de trabalho e clusters.

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

Graph of Running and Idle Node instances (Gráfico de instâncias de Nó Em Execução e Inativa)

Gráfico de instâncias de Nós Em Execução e Inativas.

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