

# Step 5: Configure monitoring with CloudWatch
<a name="vpc-endpoints-tutorial.monitoring"></a>

This step shows you how to use Amazon CloudWatch to monitor the VPC endpoint connection to Amazon Keyspaces.

AWS PrivateLink publishes data points to CloudWatch about your interface endpoints. You can use metrics to verify that your system is performing as expected. The `AWS/PrivateLinkEndpoints` namespace in CloudWatch includes the metrics for interface endpoints. For more information, see [CloudWatch metrics for AWS PrivateLink](https://docs.aws.amazon.com/vpc/latest/privatelink/privatelink-cloudwatch-metrics.html) in the *AWS PrivateLink Guide*. 

**To create a CloudWatch dashboard with VPC endpoint metrics**

1. Open the CloudWatch console at [https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/).

1. In the navigation pane, choose **Dashboards**. Then choose **Create dashboard**. Enter a name for the dashboard and choose **Create**.

1. Under **Add widget**, choose **Number**.

1. Under **Metrics**, choose **AWS/PrivateLinkEndpoints**.

1. Choose **Endpoint Type, Service Name, VPC Endpoint ID, VPC ID**.

1. Select the metrics `ActiveConnections` and `NewConnections`, and choose **Create Widget**.

1. Save the dashboard.

The `ActiveConnections` metric is defined as the number of concurrent active connections that the endpoint received during the last one-minute period. The `NewConnections` metric is defined as the number of new connections that were established through the endpoint during the last one-minute period.

For more information about creating dashboards, see [Create dashboard](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/create_dashboard.html) in the *CloudWatch User Guide*.

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for Amazon Keyspaces. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query keyspaces` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
