Skip to content

Create monitor-alert-lark - #23487

Open
huoyao1125 wants to merge 3 commits into
release-8.5from
huoyao1125-patch-5
Open

Create monitor-alert-lark#23487
huoyao1125 wants to merge 3 commits into
release-8.5from
huoyao1125-patch-5

Conversation

@huoyao1125

@huoyao1125 huoyao1125 commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

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)

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

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

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

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

Summary by CodeRabbit

  • Documentation
    • Added guidance for subscribing to and unsubscribing from TiDB Cloud alert notifications through Lark.
    • Documented supported plans, prerequisites, webhook requirements, permissions, setup procedures, testing, notification frequency, and troubleshooting.
    • Updated Connected Care service details to list Lark as an alert subscription channel for Enterprise and Premium plans.
    • Added links to the new Lark alert documentation throughout relevant table-of-contents pages.

@ti-chi-bot

ti-chi-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

[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 assign lance6716 for approval. 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

@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

This change adds a Lark alert subscription guide, documents Lark support for applicable Connected Care plans, and links the guide from TiDB Cloud table-of-contents pages.

Changes

Lark Alert Subscription Documentation

Layer / File(s) Summary
Lark alert guide and plan support
tidb-cloud/monitor-alert-lark.md, tidb-cloud/connected-care-detail.md
Adds Lark subscription and unsubscription procedures, prerequisites, webhook requirements, permissions, connection-test handling, notification frequency, and plan support details.
Lark alert navigation
TOC-tidb-cloud*.md
Adds links to the Lark alert subscription guide in the main, Essential, Premium, and Connected Care table-of-contents sections.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • pingcap/docs#23432: Documents related TiDB Cloud alert subscription capabilities on different documentation pages.

Suggested labels: area/tidb-cloud

Suggested reviewers: lilin90

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description retains the template but leaves the required change summary, versions, and reference links blank. Describe the Lark alert documentation changes, select the applicable TiDB version, and provide relevant reference links.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main documentation page added by this pull request.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch huoyao1125-patch-5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tidb-cloud/monitor-alert-lark (1)

1-2: 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

Add the Monitor Alert Lark documentation content before merge.

tidb-cloud/monitor-alert-lark contains only blank lines. The new documentation page cannot provide Monitor Alert Lark information for the TiDB 8.5 release branch.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 47a63681-67e6-4fc7-9687-1acfe27b3807

📥 Commits

Reviewing files that changed from the base of the PR and between 84444c6 and 3b852bc.

📒 Files selected for processing (1)
  • tidb-cloud/monitor-alert-lark

Adds the Subscribe via Lark alert notification guide, mirroring
monitor-alert-webhook.md with Lark-specific configuration, and
registers it alongside the other subscription channels in the TOC
and Connected Care detail page.
@ti-chi-bot ti-chi-bot Bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 4cd23265-0c04-49ef-94b7-ac9f72e0de16

📥 Commits

Reviewing files that changed from the base of the PR and between 3b852bc and 6a8c105.

📒 Files selected for processing (5)
  • TOC-tidb-cloud-essential.md
  • TOC-tidb-cloud-premium.md
  • TOC-tidb-cloud.md
  • tidb-cloud/connected-care-detail.md
  • tidb-cloud/monitor-alert-lark.md


# Subscribe via Lark

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Propagate the Lark link to the remaining alert-channel indexes.

The new Lark guide is present in the plan TOCs and Connected Care details, but two existing entry points still expose incomplete channel lists.

  • tidb-cloud/monitor-alert-lark.md#L8-L8: Add the Lark guide to the channel list in tidb-cloud/monitor-built-in-alerting.md#L64-L72.
  • tidb-cloud/connected-care-detail.md#L87-L88: Add Lark to the Connected Care feature links in tidb-cloud/connected-care-overview.md#L56-L58.
📍 Affects 2 files
  • tidb-cloud/monitor-alert-lark.md#L8-L8 (this comment)
  • tidb-cloud/connected-care-detail.md#L87-L88

Comment thread tidb-cloud/monitor-alert-lark.md Outdated
Comment on lines +16 to +18
- The subscribing via Lark feature is only available for organizations that subscribe to the **Enterprise** or **Premium** support plan.

- You need a Lark webhook URL from the Lark group where you want to receive alert notifications on. Currently, TiDB Cloud does not support customizing the request headers or the payload format.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Clarify the Lark prerequisite wording.

The current text uses “The subscribing via Lark feature” and “receive alert notifications on.” Use direct wording and “in the Lark group.”

Apply this wording change
-- The subscribing via Lark feature is only available for organizations that subscribe to the **Enterprise** or **Premium** support plan.
+- Subscribing via Lark is only available to organizations with the **Enterprise** or **Premium** support plan.
 
-- You need a Lark webhook URL from the Lark group where you want to receive alert notifications on. Currently, TiDB Cloud does not support customizing the request headers or the payload format.
+- You need a Lark webhook URL from the Lark group where you want to receive alert notifications. Currently, TiDB Cloud does not support customizing request headers or the payload format.

As per path instructions, act as a senior technical writer with deep database expertise when reviewing the documentation.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- The subscribing via Lark feature is only available for organizations that subscribe to the **Enterprise** or **Premium** support plan.
- You need a Lark webhook URL from the Lark group where you want to receive alert notifications on. Currently, TiDB Cloud does not support customizing the request headers or the payload format.
- Subscribing via Lark is only available to organizations with the **Enterprise** or **Premium** support plan.
- You need a Lark webhook URL from the Lark group where you want to receive alert notifications. Currently, TiDB Cloud does not support customizing request headers or the payload format.

Source: Path instructions

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 13ee7a11-bfb5-4fd7-8a3e-7640024ea3b7

📥 Commits

Reviewing files that changed from the base of the PR and between 6a8c105 and 4a5ec3d.

📒 Files selected for processing (1)
  • tidb-cloud/monitor-alert-lark.md

Comment on lines +32 to +36
<CustomContent plan="essential">

- To subscribe to alert notifications of TiDB Cloud, you must have the `Organization Owner` access to your organization or `Project Owner` or `Instance Manager` access to the target instance in TiDB Cloud.

</CustomContent>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Correct the Essential access prerequisite.

Line [34] adds Instance Manager access and scopes Project Owner to the target instance. The analogous alert guide, tidb-cloud/monitor-alert-flashduty.md (Lines 8-28), documents Essential access as Organization Owner or Project Owner for the target project. Align this block with that existing contract.

Apply the prerequisite correction
- To subscribe to alert notifications of TiDB Cloud, you must have the `Organization Owner` access to your organization or `Project Owner` or `Instance Manager` access to the target instance in TiDB Cloud.
+ 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.

As per coding guidelines, keep the edit minimal and limited to the requested task. As per path instructions, make feedback specific and tied to the changed content.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<CustomContent plan="essential">
- To subscribe to alert notifications of TiDB Cloud, you must have the `Organization Owner` access to your organization or `Project Owner` or `Instance Manager` access to the target instance in TiDB Cloud.
</CustomContent>
<CustomContent plan="essential">
- 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.
</CustomContent>
🧰 Tools
🪛 LanguageTool

[style] ~34-~34: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...t> - To subscribe to alert notifications of TiD...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)

Sources: Coding guidelines, Path instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant