How can I use EFS CloudWatch metrics to monitor my file system?

Last updated: 2022-07-13

I want to use Amazon CloudWatch to monitor my Amazon Elastic File System (Amazon EFS) metrics. How can I do this?

Short description

Amazon EFS automatically sends metric data to CloudWatch in one-minute intervals. The data is recorded for a 15-month period so that you can get a better insight on your application's file system usage.

You can monitor the various CloudWatch metrics for bench-marking, scaling, and monitoring purposes.

Resolution

To calculate the average throughput, IOPS, or throughput percentage of your file system, create a metric math expression using the TotalIOByte metric. To create the metric math expression, do the following:

  1. Open the CloudWatch console.
  2. Select Metric, All metrics.
  3. Select EFS file system metrics.
  4. Select the metric TotalIOBytes and then select Graphed metrics.
  5. Choose Sum from the Statistics drop down menu.
  6. Select Add math, Start with empty expression.
  7. Add one of the following formulas in the expression e1 to calculate throughput or IOPS:

    Calculate throughput in MiB/second:
    Formula for calculating 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 MiB/s, m1 is TotalIOBytes. The TotalIObytes is divided by 1048576 to convert it to MiB.
    Note: To calculate read, write, or metadata throughput specifically, replace the TotalIOByte in the preceding expression with DataReadIOBytes, DataWriteIOBytes, or MetadataIOBytes.

    Calculate IOPS (average operations per second):
    Formula for calculating IOPS: TotalIOBytes ÷ seconds in the period.
    Enter the following expression: m1/PERIOD(m1).
    The expression appears as e1=m1/PERIOD(m1).
    e1 is IOPS, m1 is TotalIOBytes.
    Note: To calculate read, write, or metadata IOPS specifically, replace TotalIOByte in the preceding expression with DataReadIOBytes, DataWriteIOBytes, or MetadataIOBytes.

For more information, see Using metric math with Amazon EFS.


Did this article help?


Do you need billing or technical support?