# Monitoring with Amazon CloudWatch

You can monitor file systems using Amazon CloudWatch, which collects and processes raw data from
Amazon FSx for Lustre into readable, near real-time metrics. These statistics are retained for a period of 15
months, so that you can access historical information and gain a better perspective on how
your web application or service is performing. By default, Amazon FSx for Lustre metric data is automatically
sent to CloudWatch at 1-minute periods. For more information about CloudWatch, see What Is Amazon CloudWatch? in the
*Amazon CloudWatch User Guide*.

CloudWatch metrics are reported as raw *Bytes*. Bytes are not rounded to
either a decimal or binary multiple of the unit.

Amazon FSx for Lustre publishes the following metrics into the `FSx`

namespace in
CloudWatch. For each metric, Amazon FSx for Lustre emits a data point per disk per minute. To view aggregate file
system details, you can use the `Sum`

statistic. Note that the file servers behind
your Amazon FSx for Lustre file systems are spread across multiple disks.

Metric | Description |
---|---|

`DataReadBytes` |
The number of bytes for file system read operations. The To calculate the average throughput (bytes per second)
for a period, divide the Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` , and`Average` . -
Count for `SampleCount` .
Valid statistics: |

`DataWriteBytes` |
The number of bytes for file system write operations. The To calculate the average throughput (bytes per
second) for a period, divide the Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` , and`Average` . -
Count for `SampleCount` .
Valid statistics: |

`DataReadOperations` |
The number of read operations. The To calculate the average number of read operations
(operations per second) for a period, divide the Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` , and`Average` . -
Count for `SampleCount` .
Valid statistics: |

`DataWriteOperations` |
The number of write operations. The To calculate the average number of write operations
(operations per second) for a period, divide the Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` , and`Average` . -
Count for `SampleCount` .
Valid statistics: |

`MetadataOperations` |
The number of metadata operations. The To calculate the average number of metadata operations
(operations per second) for a period, divide the Units: -
Count for `Sum` ,`Minimum` ,`Maximum` ,`Average` , and`SampleCount` .
Valid statistics: |

`FreeDataStorageCapacity` |
The amount of available storage capacity. The Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` . -
Count for `SampleCount` .
Valid statistics: |

`LogicalDiskUsage` |
The amount of logical data stored (uncompressed). The Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` . -
Count for `SampleCount` .
Valid statistics: |

`PhysicalDiskUsage` |
The amount of storage physically occupied by file system data (compressed). The Units: -
Bytes for `Sum` ,`Minimum` ,`Maximum` . -
Count for `SampleCount` .
Valid statistics: |

## Amazon FSx for Lustre dimensions

Amazon FSx for Lustre metrics use the `FSx`

namespace and provide metrics for a single
dimension, `FileSystemId`

. A file system's ID can be found using the
`describe-file-systems`

Amazon CLI command, and it takes the form of
`fs-01234567890123456`

.