Zbieraj dane licznika Aplikacje .NET CSM/Procent wyjątków/s

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

Zbieraj dane licznika wydajności Aplikacje .NET CSM/Procent wyjątków/s

Knowledge Base article:

Podsumowanie

Stan wystąpienia staje się nieprawidłowy, jeśli współczynnik zdarzeń wyjątków po stronie klienta w ustalonym okresie przekroczy próg monitora.

Przyczyny

Alerty wyjątków aplikacji po stronie klienta są generowane, gdy współczynnik zdarzeń wyjątków przekroczy skonfigurowany próg monitora.

Licznik jest zwiększany po wystąpieniu nieobsługiwanego wyjątku JavaScript.

Rozwiązania

W celu rozpoznania tych wyjątków sprawdź komunikat wyjątku, numer wiersza wyjątku i funkcję, która go zgłosiła. Rozwiązywanie tego typu problemów wymaga najczęściej dostępu do kodu źródłowego aplikacji.

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmApplicationInstance
Parent MonitorSystem.Health.AvailabilityState
CategoryCustom
EnabledFalse
Instance Name.NET CSM Apps
Counter Name\% of Exceptions/sec
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSystem.Performance.ConsecutiveSamplesThreshold
RemotableFalse
AccessibilityPublic
Alert Message
Licznik Aplikacje .NET CSM/Procent wyjątków/s przekroczył próg
Wartość licznika wydajności Aplikacje .NET CSM/Procent wyjątków/s przekroczyła skonfigurowany próg wynoszący {0}\%. Wartość licznika wydajności wynosiła {1}\%.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Apm.CsmApplicationInstance.ExceptionRateMonitor" Accessibility="Public" Enabled="false" Target="Microsoft.SystemCenter.Apm.CsmApplicationInstance" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="Performance!System.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Apm.CsmApplicationInstance.ExceptionRateMonitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="AL!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>% of Exceptions/sec</CounterName>
<ObjectName>.NET CSM Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmApplicationInstance"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ExceptionRateMonitorInterval$</Frequency>
<Threshold>$Target/Property[Type="AL!Microsoft.SystemCenter.Apm.ApplicationInstanceBase"]/ExceptionRateMonitorThreshold$</Threshold>
<Direction>greater</Direction>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>