The capacity monitoring feature lets you view the real-time storage usage and file count of a General-purpose Cloud Parallel File Storage (CPFS) file system. This topic describes how to view this capacity monitoring data.
Prerequisites
A file system is created. For more information, see Create a file system.
CloudMonitor is activated.
To activate CloudMonitor, go to the product page of CloudMonitor and follow the instructions.
Capacity monitoring data is generated in real time and may not be the same as the usage data recorded in your bills. For information about how to view the billing and usage details of a file system, see View your bills.
Limits
Capacity monitoring is supported only for General-purpose CPFS file systems of version 2.3.1 and later.
View data in the NAS console
Log on to the NAS console.
In the left-side navigation pane, choose Monitoring Audit > Capacity Monitoring.
In the top navigation bar, select a region.
On the Capacity Monitoring page, perform the following steps to view the capacity monitoring details of the CPFS 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. You can select 1 Hour, 1 Day, 7 Day, 14 Days, Current Month, or Last Month. You can also specify a custom time range. The maximum time range is 30 days. To view capacity data for more than one month, see Resource usage and bills.
The Capacity Monitoring page displays the Storage Space and the Number of Files charts.
Storage Space: shows the total storage space and data volume.
Number of Files: shows the maximum number of files, the number of allocated files, the number of used files, the number of files allocated by filesets, the number of files used by filesets, the number of files allocated by the root fileset, and the number of files used by the root fileset.
NoteIn a file system, all files other than those in independently created filesets belong to the root fileset.
For more information about the metrics, see Metrics.
View data in the CloudMonitor console
Log on to the CloudMonitor console.
In the navigation pane on the left, choose .
On the Cloud Service Monitoring page, enter CPFS in the search box, and then click CPFS (Old version).
On the CPFS (Old version) page, select a region. Find the file system that you want to manage and click Monitoring Charts in the Actions column.
On the details page of the Monitoring Charts, click the File System Capacity tab to view the capacity monitoring details of the file system.
View data using the CloudMonitor API
You can also query monitoring data for CPFS by calling CloudMonitor API operations. Key API operations include the following:
DescribeMetricMetaList: retrieves the descriptions of time series metrics in CloudMonitor.
DescribeMetricList: retrieves the monitoring data for a time series metric for an Alibaba Cloud service within a specified time range.
DescribeMetricLast: retrieves the latest monitoring data for a specified monitored object.
The following table describes the request parameters.
Name | Description |
Namespace | The namespace of the cloud service. The namespace of CPFS is acs_nas. |
MetricName | The metric name. Valid values:
|
Dimensions | The dimensions that specify the resources whose monitoring data you want to query. Format:
Note Dimensions must be formatted as a JSON string in a specific order. |
Related operations
You can configure alert rules to obtain information about exceptions at the earliest opportunity. If an exception occurs, the technical support personnel can process the exception to resume business at the earliest opportunity. For more information, see Configure a basic alert rule.
You can create groups to categorize multiple file systems. Then, you can manage alert rules and view monitoring data based on the groups. This reduces the management complexity and improves the monitoring efficiency. For more information, see Create an application group.