Integrate Timescale Cloud services with third-party monitoring tools
You can export your service telemetry to a third-party monitoring tool, such as Datadog or AWS CloudWatch. Exported metrics include CPU usage, RAM usage, and storage.
Export telemetry data
Export telemetry data by:
Create a data exporter
important
Your exporter must be in the same AWS region as your database service. If you have databases in multiple regions, you can create multiple exporters.
Datadog
AWS CloudWatch
Creating a data exporter for Datadog
- In the Timescale Cloud console, navigate to
Integrations
. - Click
Create exporter
. - Under
Choose a provider
, chooseDatadog
. - Choose an AWS region for your exporter to live within Timescale Cloud. The exporter is only available to database services in the same AWS region.
- Name your exporter. This name appears in the Cloud console, so choose a descriptive name.
- Add a Datadog API key. If you don’t have an API key yet, you can create one by following the instructions in the Datadog documentation.
- Under Site, choose your Datadog region. You can choose a region to meet any regulatory requirements or application needs you might have.
- Click
Create exporter
.
Attach a data exporter to a service
Once you create a data exporter, you can attach it to a service. The exporter then exports that service’s telemetry data.
You can only have one exporter per service.
important
Your exporter must be in the same AWS region as your database service. If you have databases in multiple regions, you can create multiple exporters.
Attaching a data exporter to a service
- Navigate to
Services
. Click on the service you want to connect to your exporter. - Navigate to
Operations
, thenIntegrations
. - Select and add an exporter.
Monitor service metrics
You can now monitor your service metrics from the metrics explorer in Datadog, or query them from the cloudWatch metrics page in AWS Console. For more information, see the Datadog or Cloudwatch documentation.
When you have set up your integration, you can check that it is working correctly by looking for the metrics that Timescale Cloud exports. The metric names are:
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, Timescale Cloud exports tags that you can use to filter your results. You can also check that these tags are being correctly exported:
Tag | Example variable | Description |
---|---|---|
host | us-east-1.timescale.cloud | |
project-id | ||
service-id | ||
region | us-east-1 | Timescale Cloud region |
role | replica or primary | For services with replicas |
node-id | For multi-node services |
Edit a data exporter
You can edit a data exporter after you create it. Some fields, such as the provider and AWS region, can’t be changed.
Editing a data exporter
- Navigate to
Integrations
. - Beside the exporter you want to edit, click the menu button. Click
Edit
. - Edit the exporter fields and save your changes.
Delete a data exporter
Delete any data exporters that you no longer need.
Deleting a data exporter
- Before deleting a data exporter, remove all connected services.
- For each connected service, navigate to the service
Operations
tab. - Click
Integrations
. - Click the trash can icon to remove the exporter from the service. This doesn’t delete the exporter itself.
- In the main menu, navigate to
Integrations
. - Beside the exporter you want to delete, click the menu button. Click
Delete
. - Confirm that you want to delete.