System Center 2019+ Virtual Machine Manager — licznik użycia magazynu chmury w GB

Microsoft.SystemCenter.VirtualMachineManager.CloudStorageUsageGBMonitor (UnitMonitor)

Monitoruje użycie magazynu chmury prywatnej (wyrażone w gigabajtach)

Knowledge Base article:

Podsumowanie

Monitor użycia magazynu w chmurze pozwala śledzić ilość użytej pojemności magazynu (w megabajtach) przez maszyny wirtualne i wystąpienia usług uruchomione w chmurze prywatnej. Gdy użycie magazynu zbliży się do zdefiniowanej pojemności chmury prywatnej, monitor przejdzie w stan ostrzegawczy lub krytyczny.

Przyczyny

Użycie magazynu w chmurze prywatnej zbliża się do zdefiniowanej pojemności chmury. Domyślnie, gdy użycie magazynu przekracza 90% pojemności chmury prywatnej, monitor przejdzie w stan krytyczny. Ten próg można przesłonić.

Rozwiązania

Aby przywrócić monitor do prawidłowego stanu, można:

ponownie zdefiniować limity pojemności chmury prywatnej,

zmniejszyć użycie magazynu w obrębie chmury prywatnej,

przesłonić próg krytyczny monitora.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.PrivateCloud
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.VirtualMachineManager.CloudUsageUnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Użycie GB magazynu chmury osiągnęło lub przekroczyło próg.
Użycie magazynu chmury prywatnej wynosi {0}\% i osiągnęło lub przekroczyło określony próg {1}\%
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.VirtualMachineManager.CloudStorageUsageGBMonitor" Accessibility="Public" Target="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud" TypeID="Microsoft.SystemCenter.VirtualMachineManager.CloudUsageUnitMonitorType" ParentMonitorID="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.VirtualMachineManager.CloudStorageUsageGBMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-StorageUsageGB']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-CriticalThreshold']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="CloudStorageUsageGBHealthy" MonitorTypeStateID="CloudUsageHealthy" HealthState="Success"/>
<OperationalState ID="CloudStorageUsageGBCritical" MonitorTypeStateID="CloudUsageCritical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>1800</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<CriticalThreshold>90</CriticalThreshold>
<PropertyValue/>
<VMMId>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMId$-StorageUsageGB</VMMId>
<VMMServer>$Target/Property[Type="VMMBase!Microsoft.SystemCenter.VirtualMachineManager.PrivateCloud"]/VMMServer$</VMMServer>
</Configuration>
</UnitMonitor>