All Products
Search
Document Center

Cloud Parallel File Storage:View CPFS Capacity Monitoring

Last Updated:Dec 16, 2024

Through the capacity monitoring feature, you can view the storage space usage and file count information of a CPFS file system in real time. This topic describes how to view the capacity monitoring data of a CPFS file system.

Prerequisites

Note

Capacity monitoring data is generated in real time and may not be the same as the usage data recorded in your bills. If you want to query more detailed billing data, see Billing Query.

Limits

Only CPFS version 2.3.1 and later support capacity monitoring.

Use the file storage console

  1. Log on to the NAS console.

  2. In the left-side navigation pane, choose Monitoring Audit > Capacity Monitoring.

  3. In the top navigation bar, select a region.

  4. On the Capacity Monitoring page, perform the following operations to view the capacity monitoring details of the target CPFS file system.

    1. In the File System Type drop-down list, select CPFS.

    2. Select the ID of the file system from the File System ID drop-down list.

    3. Select the query time (1hour Hour, 1day Day, 7days Day, 14 Days,Current Month or Last Month) or select the desired date range in the custom time box. The date range cannot exceed 30 days. If you need to view capacity for more than one month, see Usage Query.

      The capacity monitoring page mainly includes two monitoring metrics: Storage Space and File Count. For more information about metrics, see Metrics.

Use the cloud monitor console

  1. Log on to the CloudMonitor console.

  2. In the left navigation bar, select Cloud Resource Monitoring > Cloud Service Monitoring.

  3. On the Cloud Service Monitoring page, enter CPFS and then click CPFS.

  4. On the CPFS page, select a region and then click the Actions column of the target CPFS file system to view Monitoring Charts.

  5. On the Monitoring Charts details page, select the File System Capacity tab to view the capacity monitoring details of the target file system.

Use the cloud monitor API

The monitoring data of CPFS can also be queried through the CloudMonitor API. The main APIs are as follows.

  • DescribeMetricMetaList: Queries the description of time-series metrics that are open to CloudMonitor.

  • DescribeMetricList: Queries the time-series metric data of cloud services within a specified time range.

  • DescribeMetricLast: Queries the latest monitoring data of a specified monitored object.

The request parameters of CPFS are described in the following table.

Name

Description

Namespace

The data namespace of the Alibaba Cloud service. The namespace for CPFS is acs_nas.

MetricName

The name of the metric. Valid values are as follows:

  • CPFSCapacity

  • CPFSCapacityUsed

  • CPFSInodeLimit

  • CPFSInodeAlloc

  • CPFSInodeUsed

Dimensions

The dimensions that specify the resources whose monitoring data you want to query. The format is as follows:

{"userId":"xxxxxx","fileSystemId":"bmcpfs-xxxxx"}.

Note

Dimensions must be formatted as a JSON string in a specified order.

Related operations

  • You can configure alert rules to obtain information about exceptions in a timely manner. If an exception occurs, the technical support personnel can process the exception to resume business at the earliest opportunity. For more information, see Configure Basic Alert Rules.

  • 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 Application Groups.