Accessing CloudWatch metrics
You can see Amazon File Cache metrics for Amazon CloudWatch Logs in many ways. You can view them through the CloudWatch console, or you can access them using the CloudWatch CLI or the CloudWatch API. The following procedures show you how to access the metrics using these various tools.
To view metrics using the CloudWatch console
-
Open the CloudWatch console
. -
In the navigation pane, choose Metrics.
-
Select the FSx namespace.
-
(Optional) To view a metric, type its name in the search field.
-
(Optional) To filter by dimension, select FileCacheId.
To access metrics from the AWS CLI
-
Use the
list-metrics
command with the--namespace "AWS/FSx"
namespace. For more information, see the AWS CLI Command Reference.
To access metrics from the CloudWatch API
-
Call
GetMetricStatistics
. For more information, see Amazon CloudWatch API Reference.