Updated on 2023-11-03 GMT+08:00

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 on the left and choose Application > Application Performance Management.
  3. In the navigation pane, choose Application Monitoring > Metrics.
  4. In the tree on the left, click 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
    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 thread in a specified period.
    • Click the blue text in the Message column to view the message time and content.
    • Click Details 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

  7. Select a time dimension. Default: Last 20 minutes.

    Options: Last 20 minutes, Last hour, Last 3 hours, Last 6 hours, Last day, Today, Yesterday, Last 7 days, Last 30 days, or Custom.

    Figure 3 Selecting a time dimension

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