Skip to main content
Amazon CloudWatch is a monitoring and observability service designed to help collect, analyze, and act on data from applications, infrastructure, and services running in AWS and on-premises environments. You can export telemetry data from your s with the real-time analytics capability enabled to Amazon CloudWatch. The available metrics include CPU usage, RAM usage, and storage. This integration is available for Scale and Enterprise pricing tiers. This page explains how to export telemetry data from your into CloudWatch by creating a data exporter, then attaching it to the .

Prerequisites

To follow the steps on this page:
  • Create a target with the Real-time analytics capability enabled. You need your connection details.
This feature is currently not supported for on Microsoft Azure.

Create a data exporter

A data exporter sends telemetry data from a to a third-party monitoring tool. You create an exporter on the project level, in the same AWS region as your :
  1. In , open Exporters
  2. Click New exporter
  3. Select the data type and specify AWS CloudWatch for provider Add CloudWatch data exporter
  4. Provide your AWS CloudWatch configuration
  5. Choose the authentication method to use for the exporter Add CloudWatch authentication
    • IAM role
    • CloudWatch credentials
    1. In AWS, navigate to IAM > Identity providers, then click Add provider.
    2. Update the new identity provider with your details: Set Provider URL to the region where you are creating your exporter. oidc provider creation
    3. Click Add provider.
    4. In AWS, navigate to IAM > Roles, then click Create role.
    5. Add your identity provider as a Web identity role and click Next. web identity role creation
    6. Set the following permission and trust policies:
      • Permission policy:
        {
          "Version": "2012-10-17",
          "Statement": [
             {
                 "Effect": "Allow",
                 "Action": [
                     "logs:PutLogEvents",
                     "logs:CreateLogGroup",
                     "logs:CreateLogStream",
                     "logs:DescribeLogStreams",
                     "logs:DescribeLogGroups",
                     "logs:PutRetentionPolicy",
                     "xray:PutTraceSegments",
                     "xray:PutTelemetryRecords",
                     "xray:GetSamplingRules",
                     "xray:GetSamplingTargets",
                     "xray:GetSamplingStatisticSummaries",
                     "ssm:GetParameters"
                 ],
                 "Resource": "*"
             }
         ]
        }
        
      • Role with a Trust Policy:
        {
          "Version": "2012-10-17",
          "Statement": [
              {
                  "Effect": "Allow",
                  "Principal": {
                      "Federated": "arn:aws:iam::12345678910:oidc-provider/irsa-oidc-discovery-prod.s3.us-east-1.amazonaws.com"
                  },
                  "Action": "sts:AssumeRoleWithWebIdentity",
                  "Condition": {
                      "StringEquals": {
                          "irsa-oidc-discovery-prod.s3.us-east-1.amazonaws.com:aud": "sts.amazonaws.com"
                      }
                  }
              },
              {
                  "Sid": "Statement1",
                  "Effect": "Allow",
                  "Principal": {
                      "AWS": "arn:aws:iam::12345678910:role/my-exporter-role"
                  },
                  "Action": "sts:AssumeRole"
              }
          ]
        }
        
      1. Click Add role.
  6. Select the AWS Region your CloudWatch services run in, then click Create exporter.

Attach a data exporter to a Tiger Cloud service

To send telemetry data to an external monitoring tool, you attach a data exporter to your . You can attach only one exporter to a . To attach an exporter:
  1. In , choose the
  2. Click Operations > Exporters
  3. Select the exporter, then click Attach exporter
  4. If you are attaching a first Logs data type exporter, restart the

Monitor Tiger Cloud service metrics

You can now monitor your metrics. Use the following metrics to check the service is running correctly:
  • timescale.cloud.system.cpu.usage.millicores
  • timescale.cloud.system.cpu.total.millicores
  • timescale.cloud.system.memory.usage.bytes
  • timescale.cloud.system.memory.total.bytes
  • timescale.cloud.system.disk.usage.bytes
  • timescale.cloud.system.disk.total.bytes
Additionally, use the following tags to filter your results.
TagExample variableDescription
hostus-east-1.timescale.cloud
project-id
service-id
regionus-east-1AWS region
rolereplica or primaryFor with replicas
node-idFor multi-node services

Edit a data exporter

To update a data exporter:
  1. In , open Exporters
  2. Next to the exporter you want to edit, click the menu > Edit
  3. Edit the exporter fields and save your changes
You cannot change fields such as the provider or the AWS region.

Delete a data exporter

To remove a data exporter that you no longer need:
  1. Disconnect the data exporter from your Tiger Cloud services
    1. In , choose the .
    2. Click Operations > Exporters.
    3. Click the trash can icon.
    4. Repeat for every attached to the exporter you want to remove.
    The data exporter is now unattached from all s. However, it still exists in your project.
  2. Delete the exporter on the project level
    1. In , open Exporters
    2. Next to the exporter you want to edit, click menu > Delete
    3. Confirm that you want to delete the data exporter.

Reference

When you create the IAM OIDC provider, the URL must match the region you create the exporter in. It must be one of the following:
RegionZoneLocationURL
ap-southeast-1Asia PacificSingaporeirsa-oidc-discovery-prod-ap-southeast-1.s3.ap-southeast-1.amazonaws.com
ap-southeast-2Asia PacificSydneyirsa-oidc-discovery-prod-ap-southeast-2.s3.ap-southeast-2.amazonaws.com
ap-northeast-1Asia PacificTokyoirsa-oidc-discovery-prod-ap-northeast-1.s3.ap-northeast-1.amazonaws.com
ca-central-1CanadaCentralirsa-oidc-discovery-prod-ca-central-1.s3.ca-central-1.amazonaws.com
eu-central-1EuropeFrankfurtirsa-oidc-discovery-prod-eu-central-1.s3.eu-central-1.amazonaws.com
eu-west-1EuropeIrelandirsa-oidc-discovery-prod-eu-west-1.s3.eu-west-1.amazonaws.com
eu-west-2EuropeLondonirsa-oidc-discovery-prod-eu-west-2.s3.eu-west-2.amazonaws.com
sa-east-1South AmericaSão Pauloirsa-oidc-discovery-prod-sa-east-1.s3.sa-east-1.amazonaws.com
us-east-1United StatesNorth Virginiairsa-oidc-discovery-prod.s3.us-east-1.amazonaws.com
us-east-2United StatesOhioirsa-oidc-discovery-prod-us-east-2.s3.us-east-2.amazonaws.com
us-west-2United StatesOregonirsa-oidc-discovery-prod-us-west-2.s3.us-west-2.amazonaws.com