Capacity monitoring shows the real-time storage usage and file count for a CPFS file system.
Prerequisites
-
You have created a file system. For more information, see Create a file system.
-
You have activated CloudMonitor.
Log on to the CloudMonitor product page and follow the on-screen instructions to activate the service.
Capacity monitoring data provides real-time values and is not the metered data used for billing calculations. To view detailed metering data, see Billing inquiry.
Limitations
Capacity monitoring is supported only on CPFS 2.3.1 and later versions.
File storage 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, view the capacity monitoring details for a target CPFS file system:
-
From the File System Type drop-down list, select CPFS for Lingjun.
-
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 Day, 14 Days, Current Month, or Last Month. You can also select a custom date range. The range cannot exceed 30 days. To view capacity data for periods longer than 30 days, see Usage Query.
The capacity monitoring page displays charts for two types of monitoring metrics: storage space and file count. For more information about each metric, see Monitoring metrics.
-
CloudMonitor console
-
Log on to the CloudMonitor console.
-
In the left-side navigation pane, choose .
-
On the Cloud Service Monitoring page, enter CPFS and then click CPFS (Old version).
-
On the CPFS (Old version) page, select a region. Then, in the Actions column for the target file system, click Monitoring Charts.
-
On the Monitoring Charts details page, click the File system capacity tab to view the file system's capacity monitoring details.
CloudMonitor API
You can query CPFS capacity monitoring data by calling the following CloudMonitor API operations:
-
DescribeMetricMetaList: Queries the metadata of time-series metrics available in CloudMonitor.
-
DescribeMetricList: Queries the time-series metric data of a cloud service over a specific time period.
-
DescribeMetricLast: Queries the latest monitoring data of a specified resource.
When you query monitoring data for CPFS, use the following request parameters:
|
Parameter |
Description |
|
Namespace |
The namespace of the cloud service. For CPFS, the value is |
|
MetricName |
The name of the monitoring metric. Valid values:
|
|
Dimensions |
A map of dimensions used to query monitoring data for a specific resource. The format is as follows:
Note
Dimensions must be passed as a JSON string, and the fields must be in the order shown above. |
Related operations
-
Set up alert rules to receive notifications when capacity exceeds a specified threshold, allowing you to quickly respond to and handle exceptions. For more information, see Configure Basic Alert Rules.
-
Create application groups for multiple file systems to manage their alert rules and monitoring data from a single location, which helps reduce management overhead. For more information, see Create Application Groups.