Using AOM to Monitor Workloads
Workload monitoring is for CCE and CCI workloads. It enables you to monitor the resource usage, status, and alarms of workloads in a timely manner so that you can quickly handle alarms or events to ensure smooth workload running. Workloads are classified into Deployments, StatefulSets, DaemonSets, Jobs, and Pods.
Function Introduction
- The workload monitoring solution is ready-to-use. After AOM is enabled, the workload status, CPU usage, and physical memory usage of CCE and CCI are displayed on the workload monitoring page by default. Figure 1 Workload monitoring
- For customer-built Kubernetes containers, only Prometheus remote write is supported. After container metrics are written into AOM's metric library, you can query metric data by following instructions listed in Observability Metric Browsing.
- Workload monitoring adopts the layer-by-layer drill-down design. The hierarchy is as follows: workload > Pod instance > container > process. You can view their relationships on the UI. Metrics, logs, and alarms are monitored at each layer. Figure 2 Workload details
Constraints
- ICAgent reports pod metrics only after a pod is running for at least one minute.
- When you sort records on the workload page by clicking
, only the records on the current page can be sorted. - The default CPU and memory quotas allocated to the ICAgent workload in a container are 0.3 cores and 0.3 GB, respectively. You are advised to set the quotas to values greater than or equal to the default values.
Procedure
- Log in to the AOM 2.0 console.
- In the navigation pane, choose Infrastructure Monitoring > Container Insights > Workloads.
- In the upper right corner of the page, set filter criteria.
- Set a time range to check the workloads reported. You can use a predefined time label, such as Last hour and Last 6 hours, or customize a time range. Max.: 30 days.
- Set the interval for refreshing information. Click
and select a value from the drop-down list, such as Refresh manually or 1 minute auto refresh.
- Click any workload tab to view information, such as workload name, status, cluster, and namespace.
- In the upper part of the workload list, filter workloads by cluster or namespace.
To query namespaces, IAM users with the AOM FullAccess or AOM ReadOnlyAccess permission need to log in to the CCE console, choose Permissions in the navigation pane, and click Add Permission in the upper right corner of the page to add required permissions. For CCE namespaces, users or user groups should be granted with read-only (view) or custom permissions. If custom permissions are granted, the list operation permission must be included and namespace resources must also be specified. For details, see Namespace Permissions.
- Click
in the upper right corner to obtain the latest workload information within the time range specified in 3.a. - Click
in the upper right corner and select or deselect columns to display. - Click the name of a workload to view its details.
- On the Pods tab page, view the all pod conditions of the workload. Click a pod name to view the resource usage and health status of the pod's containers.
- On the Monitoring Views tab page, view the resource usage of the workload.
- Click
to set a time range. Max.: 90 days. Options: From now: queries data generated in a time range that ends with the current time, such as the previous 1, 5, or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from now, the graphs on the dashboard display the data that is generated from 18:20:31 to 19:20:31.
From last: queries data generated in a time range (on the hour) that ends with the current time, such as the previous 1 or 15 minutes. For example, if the current time is 19:20:31 and 1 hour is selected as the relative time from last, the graphs on the dashboard display the data that is generated from 18:00:00 to 19:00:00.
Specified: queries data that is generated in a specified time range.
- Click
to check the monitoring view in full screen. Move the cursor to the upper part of the screen and click
or
, or press Esc to exit the full screen. - Click
to refresh the current page.
- Click
- On the Logs tab page, view the raw and real-time logs of the workload and analyze them as required.
- On the Alarms tab page, view the alarm details of the workload. For details, see Checking AOM Alarms or Events.
- On the Events tab page, view the event details of the workload. For details, see Checking AOM Alarms or Events.
- In the upper part of the workload list, filter workloads by cluster or namespace.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot