Exception

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

  1. Log in to the management console.

  2. Click image1 on the left and choose Management & Deployment > Application Performance Management.

  3. In the navigation pane, choose Application Monitoring > Metrics.

  4. In the tree on the left, click image2 next to the target environment.

  5. 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

    Figure 1 Exception monitoring data

    Table 1 Exception and log parameters

    Metric 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.

  6. 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

    Figure 2 Selecting a target instance and exception

  7. 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

    Figure 3 Selecting a time range

  8. Click image3 in the upper right corner of the list and select the metric data you want to view.