Integrate TiDB Cloud with Datadog (Preview)
TiDB Cloud supports integration with Datadog. You can configure TiDB Cloud to send metrics for your TiDB Cloud Essential instances to Datadog. After that, you can view these metrics in your Datadog dashboards directly.
Prerequisites
To integrate TiDB Cloud with Datadog, you must have a Datadog account and a Datadog API key. Datadog grants you an API key when you first create a Datadog account.
If you do not have a Datadog account, sign up at https://app.datadoghq.com/signup.
To set up third-party metrics integration for TiDB Cloud, you must have the
Organization Owner,Project Owner, orInstance Manageraccess in TiDB Cloud. To view the integration page, you need at least theProject ViewerorInstance Viewerrole to access the target TiDB Cloud Essential instance under your organization in TiDB Cloud.
Limitations
- Datadog integration is not available for TiDB Cloud Starter instances.
- Datadog integration is not available when the status of your TiDB Cloud Essential instance is CREATING, RESTORING, PAUSED, or RESUMING.
Steps
Step 1. Import the pre-built Datadog dashboard
Currently, the TiDB Cloud dashboard for TiDB Cloud Essential is not yet available in the Datadog integration marketplace. You need to manually download and import the dashboard JSON file into Datadog.
Download the Datadog dashboard JSON file for your instance type:
Log in to Datadog, and then go to Dashboards > Dashboard List.
Click + New Dashboard in the upper-right corner. Enter a dashboard name, and then select Start from blank dashboard.
In the new dashboard, click the gear icon (Configure) in the upper-right corner, and then select Import dashboard JSON....
In the dialog that appears, paste the JSON content, or drag and drop the JSON file.
Click Yes, Replace to confirm the import.
Step 2. Integrate with your Datadog API key
In the TiDB Cloud console, navigate to the My TiDB page, and then click the name of your target TiDB Cloud Essential instance to go to its overview page.
In the left navigation pane, click Integrations > Integration to Datadog (Preview).
Enter your Datadog API key and choose your Datadog Region.
Click Test Integration.
- If the test succeeds, the Confirm button is displayed.
- If the test fails, an error message is displayed. Follow the message for troubleshooting and retry the integration.
Click Confirm to complete the integration.
View the pre-built dashboard
To view the pre-built dashboard after the integration, go to Dashboards > Dashboard List in Datadog, and then select the dashboard imported in Step 1. On the dashboard page, you can filter by your target instance name and view the metrics.
You can also access the Dashboard List page in Datadog from the TiDB Cloud console: go to the Integrations page of your target instance, click Datadog (Preview), and then click Dashboard.
Metrics available to Datadog
Datadog tracks the following metrics for your TiDB Cloud Essential instance.