Skip to main content

Send metrics to Amazon CloudWatch

Aiven enables you to send your service metrics to your Amazon (AWS) CloudWatch.

Prerequisites

  • An AWS account, and which region it is in.
  • An Aiven account with a service running.
  • An AWS Access Key and Secret Key.
tip

To generate your AWS credentials:

  1. Open your AWS console under the IAM dashboard.
  2. Click Users and open the Security credentials tab.
  3. Choose Create access key. Click Download and keep the file.

Configure the integration

Your first step is to create the endpoint to be used between the Aiven service and the AWS CloudWatch. This setup only needs to be done once.

  1. In your project, click Integration endpoints.

  2. Click AWS CloudWatch Metrics and Add a new endpoint or Create new.

  3. Configure the settings for the new endpoint:

    • Endpoint name is how you will refer to the AWS CloudWatch metrics integration when linking it to an Aiven service.
    • CloudWatch Namespace where your metrics can be organized in different spaces.
    • Your AWS credentials: Access Key and Secret Key.
    • Your AWS account Region.
  4. To save this endpoint, click Create.

Send metrics from an Aiven service to AWS CloudWatch

For each of the services whose metrics should be sent to your AWS CloudWatch:

  1. From your service, click Integrations and choose the Amazon CloudWatch Metrics option.

  2. Choose the endpoint by the Endpoint name you created earlier and choose Continue.

  3. Customize which metrics to send to the CloudWatch. To do this, select a metric group or individual metric field.

  4. Go to your AWS account and check the CloudWatch service. You can go to the Metrics section to see your Aiven service metrics data. It may take a few minutes until the data arrives.

Learn more about Amazon CloudWatch and Aiven.