This topic describes how to use the CloudMonitor console or CloudMonitor API operations to monitor Cloud Paralleled File System (CPFS) file systems and send alerts.


A CPFS file system is created. For more information, see Create a file system.

Background information

You can use CloudMonitor to view metrics for CPFS file systems and configure alerts for each metric. Available metrics include the read/write throughput, input/output operations per second (IOPS), latency, and queries per second (QPS) for metadata. Available notification methods include the mobile phone call, short message service (SMS), and email. The following table lists the metrics.

Note You can use CloudMonitor to monitor both CPFS and Aspara File Store NAS file systems. You can view CPFS file systems in the NAS console.
Metric MetricName Description
Read throughput ThruputRead The read throughput for a file system. Unit: Byte/s.
Write throughput ThruputWrite The write throughput for a file system. Unit: Byte/s.
Read IOPS IopsRead The read IOPS for a file system.
Write IOPS IopsWrite The write IOPS for a file system.
Read latency LatencyRead The latency to write data to a file system. Unit: ms.
The write latency. LatencyWrite The latency to read data from a file system. Unit: ms.
QPS for metadata QpsMeta The QPS for metadata. These queries are issued by commands, such as open, close, stat, create, and chmod.

View metrics

  1. Log on to the CloudMonitor console.
  2. Choose Dashboard > Dashboards.
  3. On the Dashboards page, select NAS in the Product field, and select a region and file system to view monitoring charts.
    View metrics
    Note If the No Data message appears on a chart, it indicates that no request is sent from the specified file system to the backend server for an extended period of time. To measure the read throughput for a CPFS file system, run the following fio command on an Elastic Compute Service (ECS) instance: 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. Note: The CPFS file system is mounted on the /mnt directory of the ECS instance.

Configure rules

  1. Log on to the CloudMonitor console.
  2. Choose Alarms > Alarm Rules and click Create Alarm Rule.
  3. On the Create Alarm Rule page, configure the required parameters.
    Parameter Description
    Related Resource
    • In the Product field, select NAS.
    • In the Resource Range field, select File System.
    • In the Region field, select the region where the target file system resides.
    • In the File System field, select the target file system.
    Set Alarm Rules You can set multiple alarm rules based on your business requirements.
    Notification Method You can set parameters, such as notification contacts and notification methods.

    Click Quickly create a contact group to create a contact group.

  4. Click OK to enable the rule.

    If a metric exceeds the specified threshold, CloudMonitor automatically sends an alert. This allows you to obtain the details of a performance issue and fix the issue in a timely manner.

Use API operations to query metrics

You can use CloudMonitor API operations to query metrics that are related to CPFS file systems. The following table lists the API operations.

The following table lists the request parameters.

Parameter Example
Namespace acs_nas
MetricName IopsRead, IopsWrite, LatencyRead, LatencyWrite, QpsMeta, ThruputRead, and ThruputWriteIopsRead
Dimensions {"userId":"xxxxxx","fileSystemId":"cpfs-xxxxx"}