| title | Subscribe via PagerDuty |
|---|---|
| summary | Learn how to monitor your TiDB cluster by getting alert notifications via PagerDuty. |
TiDB Cloud provides you with an easy way to subscribe to alert notifications via PagerDuty, Slack, email, Zoom, and Flashduty. This document describes how to subscribe to alert notifications via PagerDuty.
Note:
Currently, alert subscription is available for TiDB Cloud Essential and TiDB Cloud Dedicated clusters.
-
The subscribing via PagerDuty feature is only available for organizations that subscribe to the Enterprise or Premium support plan.
-
To subscribe to alert notifications of TiDB Cloud, you must have the
Organization Owneraccess to your organization orProject Owneraccess to the target project in TiDB Cloud.
To receive alert notifications, take the following steps:
- Generate an integration key of type Events API v2 by following the instructions in the PagerDuty Events API v2 Overview.
- Save the generated integration key to use in the next step.
Alert notification subscriptions vary by cluster plan.
Tip:
The alert subscription is for all alerts in the current project. If you have multiple clusters in the project, you just need to subscribe once.
-
In the TiDB Cloud console, switch to your target project using the combo box in the upper-left corner.
-
In the left navigation pane, click Project Settings > Alert Subscription.
-
On the Alert Subscription page, click Add Subscriber in the upper-right corner.
-
Select PagerDuty from the Subscriber Type drop-down list.
-
Enter a name in the Name field and your PagerDuty integration key in the Integration Key field.
-
Click Test Connection.
- If the test succeeds, the Save button is displayed.
- If the test fails, an error message is displayed. Follow the message to troubleshoot the issue and retry the connection.
-
Click Save to complete the subscription.
Tip:
The alert subscription is for all alerts in the current cluster. If you have multiple clusters, you need to subscribe to each cluster individually.
-
In the TiDB Cloud console, switch to your target cluster using the combo box in the upper-left corner.
-
In the left navigation pane, click Settings > Alert Subscription.
-
On the Alert Subscription page, click Add Subscriber in the upper-right corner.
-
Select PagerDuty from the Subscriber Type drop-down list.
-
Enter a name in the Name field and your PagerDuty integration key in the Integration Key field.
-
Click Test Connection.
- If the test succeeds, the Save button is displayed.
- If the test fails, an error message is displayed. Follow the message to troubleshoot the issue and retry the connection.
-
Click Save to complete the subscription.
Alternatively, you can also click Subscribe in the upper-right corner of the Alert page of the cluster. You will be directed to the Alert Subscription page.
If an alert condition remains unchanged, the alert sends notifications every three hours.
If you no longer want to receive alert notifications, take the following steps. The steps vary by cluster plan.
- In the TiDB Cloud console, switch to your target project using the combo box in the upper-left corner.
- In the left navigation pane, click Project Settings > Alert Subscription.
- On the Alert Subscription page, locate the row of your target subscriber to be deleted, and then click ... > Unsubscribe.
- Click Unsubscribe to confirm the unsubscription.
- In the TiDB Cloud console, switch to your target cluster using the combo box in the upper-left corner.
- In the left navigation pane, click Settings > Alert Subscription.
- On the Alert Subscription page, locate the row of your target subscriber to be deleted, and then click ... > Unsubscribe.
- Click Unsubscribe to confirm the unsubscription.