.NET Apps/Percentage uitzonderingsgebeurtenissen per seconde verzamelen

Microsoft.SystemCenter.Apm.ApplicationInstance.ExceptionRateMonitor (UnitMonitor)

Prestatiemeteritem voor .NET-toepassingen/Uitzonderingsgebeurtenissen per seconde in procenten

Knowledge Base article:

Samenvatting

De status van het exemplaar wordt Slecht wanneer het percentage uitzonderingsgebeurtenissen gedurende een gedefinieerde periode de drempelwaarde voor de monitor overschrijdt.

Oorzaken

Waarschuwingen over toepassingsuitzonderingen worden gegenereerd wanneer het percentage uitzonderingsgebeurtenissen de drempelwaarde voor de monitor overschrijdt.

Het item wordt verhoogd wanneer er een niet-verwerkte uitzondering optreedt.

Oplossingen

Als u deze uitzonderingen wilt oplossen, controleert u het uitzonderingstype en de functie waarvoor de uitzondering is opgetreden. Voor oplossing van dit soort problemen is doorgaans toegang tot de broncode van de toepassing nodig.

Element properties:

TargetMicrosoft.SystemCenter.Apm.ApplicationInstance
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledFalse
Instance Name.NET Apps
Counter Name\% Exception Events/sec
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSystem.Performance.ConsecutiveSamplesThreshold
RemotableFalse
AccessibilityPublic
Alert Message
.NET-toepassingen/Uitzonderingsgebeurtenissen per seconde in procenten heeft de drempelwaarde overschreden
Het prestatiemeteritem .NET-toepassingen/Uitzonderingsgebeurtenissen per seconde in procenten heeft de ingestelde drempelwaarde van {0} \% overschreden. De waarde van het prestatiemeteritem is {1}\%.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Apm.ApplicationInstance.ExceptionRateMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.Apm.ApplicationInstance" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="Performance!System.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Apm.ApplicationInstance.ExceptionRateMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ExceptionRateMonitorThreshold$</AlertParameter1>
<AlertParameter2>$Data/Context/SampleValue$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="ConditionTrue" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% Exception Events/sec</CounterName>
<ObjectName>.NET Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.ApplicationInstance"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>$Target/Property[Type="Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ExceptionRateMonitorInterval$</Frequency>
<Threshold>$Target/Property[Type="Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ExceptionRateMonitorThreshold$</Threshold>
<Direction>greater</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>