Updated on 2024-06-28 GMT+08:00

Application Monitoring

An application groups identical or similar components based on service requirements. Through application monitoring, you can learn about the resource usage, status, and alarms of applications in a timely manner to quickly respond to requests and ensure smooth system running.

Function Introduction

Based on CMDB, application monitoring monitors resources by layers (application, service component, and environment). The metrics monitored at each layer are different.

  • Application monitoring

    Monitor alarm information at the business, application, middleware, and infrastructure layers, and bind the dashboards to display metric, log, and system graphs.

  • Component monitoring

    Monitor alarm information of components. Query both active and historical alarms about components to quickly rectify faults.

    Figure 1 Component monitoring
  • Environment monitoring

    Monitor and analyze core environment metrics from the environment overview, logs, performance, traces, and alarms. Monitor core metrics such as the process status, application performance (number of errors, number of requests, and average response time), and alarm distribution in the pre-release and production environments. You can also monitor hosts, processes, containers, performance, logs, and cloud services.

    Figure 2 Environment monitoring

Precautions

  • To use application monitoring, enable Application Insights in Menu Settings. For details, see Menu Settings.
  • To report CCE workload metrics to AOM and mount them to the application tree on the left of the Application Monitoring page as components, upgrade the workloads first. The following shows the procedure:
    1. Log in to the CCE console and click a target cluster name.
    2. Choose Workloads in the navigation pane, and select the type of workload whose metrics are to be reported to AOM.
    3. In the Operation column of the workload, choose More > Edit YAML.
    4. In the displayed dialog box, locate the spec.template.metadata.annotations code segment.
      Figure 3 Editing the YAML file
    5. Set parameters by referring to Table 1. Figure 4 shows the details.
      Table 1 Parameters

      Parameter

      Description

      Mandatory

      Default Value

      aom.application.name

      Application name

      Yes

      -

      aom.subapplication.name

      Sub-application name

      No

      -

      aom.component.name

      Component name

      No

      Same as the workload name

      aom.environment.name

      Environment name

      No

      Same as the cluster name

      Figure 4 Setting parameters
    6. Click Confirm to save the modification.
    7. (Optional) In the Edit YAML window, click Download to download the YAML file.

Procedure

  1. Log in to the AOM 2.0 console.
  2. In the navigation pane, choose Application Insights (Retiring) > Application Monitoring.
  3. On the left of the Application Monitoring page, search for and select the target applications or components by application, region, tag, or keyword.
  4. Select an application. In the right pane, view the alarms of each layer and the dashboards bound to the application.

    • Click Business, Application, Middleware, or Infrastructure to check whether resources at the corresponding layer are healthy. If resources are healthy, the resource layer is green. If an alarm is generated, the resource layer is red. When an alarm is generated, click it to view the alarm details and handling suggestions.
    • For details about operations related to dashboards, see Dashboard.

  5. Select a component and view the alarm analysis about the component in the right pane.

    • Click an alarm name to view alarm details. For details, see Viewing Alarms.
    • Click the drop-down list box in the upper right corner and switch between Active Alarms or Historical Alarms.

  6. Select an environment and view the environment, process, performance, log analysis, trace, and alarm information in the right pane.

    • In the Environment Overview area, click a resource or cloud service to view their information. Click an instance to view its metrics, logs, and alarms.
    • On the Overview tab page, view environment metrics, and application and infrastructure information.
    • On the Logs tab page, view the raw logs and real-time logs of the environment, and perform visualized analysis. For details, see Log Streams.
    • On the Performance tab page, view the performance about the environment.
    • On the Traces tab page, view request success/failure, response time, and generation time about URLs and call methods.
    • On the Alarms tab page, view the alarms and events in the current environment. For details, see Viewing Alarms and Viewing Events.