This function monitors application exception logs. Take the monitoring of Java exception logs as an example. Once you use the log system to print logs, they will be collected by APM. The exception collection type varies according to the collector type.
Viewing Exception Logs
- Log in to the management console.
- Click
on the left and choose Management & Deployment > Application Performance Management. - In the navigation pane, choose Application Monitoring > Metrics.
- In the tree on the left, click
next to the target environment. - Click the Exception tab. By default, exception logs of all instances are displayed. For details about the metrics, see Table 1.
Figure 1 Exception monitoring data
Table 1 Exception and log parametersMetric Set
|
Parameter
|
Description
|
Exception
|
Class
|
Exception class
|
Exception Type
|
Exception type
|
Log Type
|
Exception log type
|
Total Exceptions
|
Number of times that an exception has occurred
|
Message
|
Message returned when the exception has occurred
|
Error Stack
|
Error stack
|
Log Version
|
Log Type
|
Log type
|
Version
|
Log version
|
- Click a number in blue in the Total Exceptions column to view the trend of the total exceptions in a specified period.
- Click the blue text in the Message column to view the message time and content.
- Click Detail in the Error Stack column to view exception details.
- Click History in the Error Stack column to view the historical error stack list.
- Click the blue text in the Version column to view details.
- On the Exception tab page, select a target instance and then select Exception to view the exception monitoring data.
Figure 2 Selecting a target instance and exception
- Select a time range. Default: Last 20 minutes.
Options: Last 20 minutes, Last hour, Last 3 hours, Last 6 hours, Last day, Today, Yesterday, Last week, Last month, or Custom.
Figure 3 Selecting a time range
- Click
in the upper right corner of the list and select the metric data you want to view.