The performance monitoring feature shows the real-time performance of your file system, including key metrics such as read/write IOPS and throughput. This topic describes how to view performance monitoring data for a Cloud Parallel File Storage (CPFS) file system.
Prerequisites
-
You have created a file system. For more information, see Create a file system.
-
You have activated CloudMonitor.
You can log on to the CloudMonitor product details page and follow the on-screen instructions to activate the service.
View data in the NAS console
-
Log on to the NAS console.
-
In the left-side navigation pane, choose Monitoring Audit > Performance Monitoring.
-
In the top navigation bar, select a region.
-
On the Performance Monitoring page, do the following to view performance details for a specific file system.
-
From the File System Type drop-down list, select CPFS.
-
Select the ID of the file system from the File System ID drop-down list.
-
Select a time range, such as 1 Hour, 1 Day, 7 Days, 14 Days, Current Month, or Last Month, or specify a custom time range. The time range cannot exceed 30 days.
The performance monitoring page shows charts for four main metric categories: IOPS, throughput, latency, and metadata QPS.
If you access the file system over the NFS protocol, this page also displays performance monitoring charts for NFS.
Note-
If a chart displays No Data, it means the file system has not received requests from a client or that the corresponding service is not enabled.
-
To generate monitoring data for write throughput, run the
fiocommand on the client where the CPFS file system is mounted. For example, assume that the CPFS file system is mounted to the /mnt directory. For more information about file system performance tests, see Performance Testing.fio -direct=1 -ioengine=libaio -iodepth=1 -rw=write -bs=1m -size=1G -numjobs=256 -runtime=600 -time_based=1 -group_reporting -directory="/mnt" -name=Seq_Write_Testing
-
-
View data in the CloudMonitor console
-
Log on to the CloudMonitor console.
-
In the left-side navigation pane, choose .
-
On the Cloud Service Monitoring page, enter CPFS in the search box, and then click CPFS.
-
On the CPFS page, select a region. Then, find the target file system and click Monitoring Charts in the Actions column.
-
On the Monitoring Charts page, click the File System Monitoring tab to view monitoring details for the target file system.
View data by using CloudMonitor APIs
You can also query CPFS performance monitoring data by calling CloudMonitor APIs. The main APIs are listed below.
-
DescribeMetricMetaList: Queries the metadata of available time-series metrics in CloudMonitor.
-
DescribeMetricList: Queries the time-series monitoring data for an Alibaba Cloud service within a specified time range.
-
DescribeMetricLast: Queries the latest monitoring data for a specified object.
The following table describes the request parameters for CPFS.
|
Parameter |
Description |
|
Namespace |
The namespace of the cloud service. For CPFS, use acs_nas. |
|
MetricName |
The name of the metric. Valid values:
|
|
Dimensions |
A map of dimensions used to query the monitoring data of a specific resource. Format: Note
The value of Dimensions must be a JSON string that represents the map object. The parameters in the string must be in the specified order. |
Related operations
-
Set alert rules to receive timely notifications about abnormal data. This allows your team to immediately respond to issues and quickly restore services. For more information, see Configure a basic alert rule.
-
You can also create an application group for multiple file systems to manage alert rules and view monitoring data for the group. This approach simplifies management and improves monitoring efficiency. For more information, see Create an application group.