Skip to content

Conversation

@huoyao1125
Copy link

First-time contributors' checklist

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

@ti-chi-bot ti-chi-bot bot added contribution This PR is from a community contributor. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Jan 26, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jan 26, 2026

Hi @huoyao1125. Thanks for your PR.

I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot bot added the missing-translation-status This PR does not have translation status info. label Jan 26, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @huoyao1125, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces new documentation that guides users through the process of integrating TiDB Cloud alert notifications with PagerDuty. The addition of this guide expands the available alert delivery channels, providing users with another critical tool for monitoring their TiDB Cloud clusters and ensuring timely responses to operational issues. The documentation clearly outlines the necessary steps and prerequisites, making it easier for eligible users to configure PagerDuty alerts.

Highlights

  • New PagerDuty Integration Documentation: Introduces a comprehensive guide for setting up PagerDuty as an alert notification channel for TiDB Cloud, expanding the available monitoring options.
  • Step-by-Step Subscription Process: Details the prerequisites, how to generate a PagerDuty webhook URL, and the steps to subscribe and unsubscribe from alerts directly within the TiDB Cloud console.
  • Feature Scope Clarification: Specifies that PagerDuty alert subscriptions are currently limited to TiDB Cloud Dedicated clusters and require Enterprise or Premium support plans.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 26, 2026
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new documentation page for subscribing to TiDB Cloud alerts via PagerDuty. The overall structure is good and consistent with other alert integration documents.

My review focuses on improving clarity, conciseness, and technical accuracy, following the repository's documentation style guide. The most critical issue is in 'Step 1' for generating the PagerDuty URL, which currently contains incorrect placeholder content copied from the Slack documentation. I have provided a detailed suggestion to replace it with the correct procedure. Other suggestions include minor wording improvements to enhance readability and consistency.

Comment on lines +26 to +34
### Step 1. Generate a PagerDuty webhook URL ##这部分请思雨帮忙更新

1. [Create a PagerDuty app](https://api.PagerDuty.com/apps/new), if you do not have one already. Click **Create New App**, and choose **From scratch**. Enter a name, choose a workspace to associate your app with, and then click **Create App**.
2. Go to the settings page for your app. You can load its settings via your [app's management dashboard](https://api.PagerDuty.com/apps).
3. Click the **Incoming Webhooks** tab, and then toggle **Activate Incoming Webhooks** to **ON**.
4. Click **Add New Webhook to Workspace**.
5. Select a channel that you want to receive alert notifications in, and then select **Authorize**. If you need to add the incoming webhook to a private channel, you must first be in that channel.

You can see a new entry under the **Webhook URLs for Your Workspace** section in the following format: `https://hooks.PagerDuty.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

This section contains a placeholder comment and incorrect instructions copied from the Slack integration document. These steps will not work for PagerDuty and will cause user confusion.

I've provided the likely correct steps for integrating with PagerDuty, which involves using the Prometheus integration type to generate a compatible URL. Please verify if this is the intended integration method.

### Step 1. Generate a PagerDuty integration URL

1. In your PagerDuty account, go to **Services** > **Service Directory**.
2. Choose whether to add your integration to a new or existing service:
    * **To add to an existing service**: Click the name of the service, select the **Integrations** tab, and then click **Add a new integration**.
    * **To create a new service**: Follow the PagerDuty documentation to [create a new service](https://support.pagerduty.com/docs/services-and-integrations#create-a-new-service).
3. On the **Add an Integration** page, search for and select **Prometheus**.
4. Click **Add**.
5. You will be redirected back to the **Integrations** tab. Copy the **Integration URL** that was just generated. You will use this URL in the TiDB Cloud console.


# Subscribe via PagerDuty

TiDB Cloud provides you with an easy way to subscribe to alert notifications via [Slack](/tidb-cloud/monitor-alert-slack.md), [email](/tidb-cloud/monitor-alert-email.md), [Zoom](/tidb-cloud/monitor-alert-zoom.md), [Flashduty](/tidb-cloud/monitor-alert-flashduty.md) and [PagerDuty](/tidb-cloud/monitor-alert-pagerduty.md). This document describes how to subscribe to alert notifications via PagerDuty.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

To avoid redundancy, it's best to remove the link that points to the current page itself.

TiDB Cloud provides you with an easy way to subscribe to alert notifications via [Slack](/tidb-cloud/monitor-alert-slack.md), [email](/tidb-cloud/monitor-alert-email.md), [Zoom](/tidb-cloud/monitor-alert-zoom.md), [Flashduty](/tidb-cloud/monitor-alert-flashduty.md), and PagerDuty. This document describes how to subscribe to alert notifications via PagerDuty.


## Prerequisites

- The subscribing via PagerDuty feature is only available for organizations that subscribe to the **Enterprise** or **Premium** support plan.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

This sentence can be rephrased to be more direct and concise.

- Subscribing to alerts via PagerDuty is only available for organizations that subscribe to the **Enterprise** or **Premium** support plan.
References
  1. The style guide recommends avoiding unnecessary words and repetition (line 24). (link)


- 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 Owner` access to your organization or `Project Owner` access to the target project in TiDB Cloud.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

This sentence can be made more concise by removing redundant phrases like "of TiDB Cloud" and "in TiDB Cloud", which improves readability.

- To subscribe to alert notifications, you must have the `Organization Owner` access to your organization or `Project Owner` access to the target project.
References
  1. The style guide recommends avoiding unnecessary words and repetition (line 24). (link)

1. In the [TiDB Cloud console](https://tidbcloud.com), switch to your target project using the combo box in the upper-left corner.
2. In the left navigation pane, click **Project Settings** > **Alert Subscription**.
3. On the **Alert Subscription** page, click **Add Subscriber** in the upper-right corner.
4. Select **PagerDuty** from the **Subscriber Type** drop-down list.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

For consistency with the suggested changes in 'Step 1', let's use 'integration URL' instead of 'webhook URL'.

5. Enter a name in the **Name** field and your PagerDuty integration URL in the **URL** field.
References
  1. The style guide requires using consistent terminology (line 25). (link)


## Unsubscribe from alert notifications

If you no longer want to receive alert notifications of clusters in your project, take the following steps:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

This sentence can be simplified for better readability.

If you no longer want to receive alert notifications for clusters in your project, follow these steps:
References
  1. The style guide recommends avoiding unnecessary words and repetition (line 24). (link)


1. In the [TiDB Cloud console](https://tidbcloud.com), switch to your target project using the combo box in the upper-left corner.
2. In the left navigation pane, click **Project Settings** > **Alert Subscription**.
3. On the **Alert Subscription** page, locate the row of your target subscriber to be deleted, and then click **...** > **Unsubscribe**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

low

This instruction can be phrased more directly for better clarity.

3. On the **Alert Subscription** page, find the subscriber that you want to delete, and then click **...** > **Unsubscribe**.
References
  1. The style guide emphasizes clarity and simplicity (line 14). This change makes the step easier to follow. (link)

@hfxsd hfxsd self-assigned this Jan 26, 2026
@hfxsd hfxsd added translation/no-need No need to translate this PR. area/tidb-cloud This PR relates to the area of TiDB Cloud. and removed missing-translation-status This PR does not have translation status info. labels Jan 26, 2026
@hfxsd
Copy link
Collaborator

hfxsd commented Jan 26, 2026

/ok-to-test

@ti-chi-bot ti-chi-bot bot added ok-to-test Indicates a PR is ready to be tested. and removed needs-ok-to-test Indicates a PR created by contributors and need ORG member send '/ok-to-test' to start testing. labels Jan 26, 2026
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jan 26, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from hfxsd. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hfxsd
Copy link
Collaborator

hfxsd commented Jan 26, 2026

Merged to #22364

@hfxsd hfxsd closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/tidb-cloud This PR relates to the area of TiDB Cloud. contribution This PR is from a community contributor. first-time-contributor Indicates that the PR was contributed by an external member and is a first-time contributor. ok-to-test Indicates a PR is ready to be tested. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants