I want to learn how to monitor Amazon CloudWatch metrics and calculate throughput, IOPS, and other performance metrics to track the health of my Amazon Elastic File System (Amazon EFS).
Resolution
Amazon EFS automatically sends metric data to CloudWatch in 1 minute intervals, and the data is recorded for a 15-month period.
To calculate the average throughput, IOPS, or throughput percentage of your file system, use the TotalIOByte metric to create a metric math expression.
Complete the following steps:
- Open the CloudWatch console.
- In the navigation pane, under Metrics, choose All metrics.
- Choose EFS file system metrics.
- Choose TotalIOBytes, and then choose Graphed metrics.
- On the Statistics menu, choose Sum.
- Choose Add math, and then choose Start with empty expression.
- To calculate throughput or IOPS, add one of the following formulas in the expression e1:
Calculate throughput in MiBs
Formula to calculate throughput: TotalIOBytes / 1,048,576 (to convert to MiB) / seconds in the period.
Enter the following expression: (m1/1048576)/PERIOD(m1).
The expression appears as e1=(m1/1048576)/PERIOD(m1).
e1 is throughput in MiBs, and m1 is TotalIOBytes. The TotalIObytes is divided by 1048576 to convert to MiB.
Note: To calculate read, write, or metadata throughput, replace the TotalIOByte in the preceding expression with DataReadIOBytes, DataWriteIOBytes, or MetadataIOBytes.
-or-
Calculate IOPS (average operations per second)
Formula to calculate IOPS: TotalIOBytes / seconds in the period.
Enter the following expression: m1/PERIOD(m1).
The expression appears as e1=m1/PERIOD(m1).
e1 is IOPS, and m1 is TotalIOBytes.
Note: To calculate read, write, or metadata IOPS, replace TotalIOByte in the preceding expression with DataReadIOBytes, DataWriteIOBytes, or MetadataIOBytes. To calculate the average operations per second for a period, divide the SampleCount statistic by the number of seconds in the period. For more information, see Using metric math with Amazon EFS.
Related information
Amazon CloudWatch metrics for Amazon EFS