Logs, Monitoring, and Alarms

Log Description

If the log function is enabled for an edge node on the IEF console, the system and application logs generated for the edge node will be uploaded to AOM.

  • System Logs: logs generated by the IEF software (such as edge-core, edge-logger, and edge-monitor) installed on edge nodes.
  • Application Logs: logs generated by applications deployed on edge nodes.
    • Edge nodes will upload logs in the /var/IEF/app/log directory to AOM through IEF. You can mount the /var/IEF/app/log/{appName} directory into the container when creating an application. For details, see hostPath: used for mounting a directory of the host into the container. You can view logs on AOM by {appName}.
    • Edge nodes will also upload container logs in {{DOCKER_ROOT_DIR}}/containers/{containerID}/{containerID}-json.log to AOM. You can run the docker info command to query the value of DOCKER_ROOT_DIR. containerID indicates the container ID.

Viewing Logs on AOM

  1. Log in to the AOM console.
  2. In the navigation pane, choose Log Management > Log Files. On the displayed page, select cluster ief_global and namespace default.

    Figure 1 Selecting a cluster and a namespace

  3. Search for logs by application name, and click View in the row where the log file resides to view detailed logs.

    Figure 2 Viewing logs

Viewing Node Monitoring Information on AOM

You can view the node monitoring information on AOM.

  1. Log in to the AOM console.
  2. Click the name of the node whose monitoring information is to be viewed.

    Figure 3 Selecting a monitored node

  3. On the View Monitor Graphs tab page, view the resource usage of the node, such as the CPU usage and memory usage.

    Figure 4 Viewing monitoring information

    If the edge node is an Atlas 500 AI edge station, you can also view NPU information.

    Figure 5 Viewing monitoring information about an Atlas 500 AI edge station

    The following table describes the metrics about an Atlas 500 AI edge station.

    Metric

    Description

    ai_core_rate

    AI core usage

    ai_cpu_rate

    AI CPU usage

    ctrl_cpu_rate

    Control CPU usage

    ddr_cap_rate

    DDR memory usage

    ddr_bw_rate

    DDR bandwidth usage

    node_power

    Node power

    node_temperature

    Node temperature

    node_voltage

    Node voltage

    npu_health

    Chip health status

    npu_temperature

    Chip temperature

Viewing Container Monitoring Information on AOM

You can view the monitoring information about the application containers deployed on edge nodes on AOM.

  1. Log in to the AOM console.
  2. Select the workload whose monitoring information is to be viewed.

    Figure 6 Selecting a workload

  3. On the View Monitor Graphs tab page, view the resource usage of the container, such as the CPU usage and memory usage.

Alarms Preset on IEF

IEF comes with seven types of alarms preconfigured for each edge node. These alarms will be automatically reported to AOM.

Alarm Name

Trigger

Clearance Condition

Container Engine Is Abnormal

Docker has been enabled on an edge node, and the Docker information fails to be queried.

Docker is running properly, and edge-core can obtain the Docker information.

Application Liveness Probe Is Abnormal

A liveness probe has been configured for the application, and the probe detects an exception.

The probe detects that the container is normal.

Failed to Obtain GPU Resources

GPU resources could not be obtained during GPU application deployment.

GPU resources are obtained.

Failed to Obtain GPU Information

GPU has been enabled on an edge node, and the GPU information fails to be queried.

The GPU information is successfully queried.

Invalid AK/SK

The edge-hub has distributed 10 consecutive temporary AK/SK pairs and detects that the AK/SK has expired or is in abnormal state.

The edge-hub successfully distributes the temporary AK/SK.

Application Restarted

The application container restarts unexpectedly.

This alarm does not need to be cleared.

NIC Bound to the Container Is Faulty

The NIC bound to the container is faulty.

The NIC bound to the container becomes normal.

Figure 7 Viewing alarms

Setting Alarms on AOM

You can create threshold rules on AOM to monitor the metrics of edge nodes.

  1. Log in to the AOM console.
  2. In the navigation pane, choose Alarm Center > Alarm Rule. Then, click Add Threshold.
  3. Enter a threshold name, and select a resource.

    Figure 8 Selecting a resource

  4. Click Next, and set a rule.

    Figure 9 Setting a rule

  5. Click Submit.

    After the threshold rule is created, you can view it in the threshold rule list.

    When a metric meets the rule condition, an alarm is generated. You can view the alarm in the alarm list.

Reporting User-Defined Alarms to AOM

IEF can report customized alarms from edge nodes to AOM. To be specific, after the MQTT client publishes alarm information to the MQTT broker, IEF will automatically report the alarms to AOM.

For details, see Alarm Addition and Alarm Clearance.