Repository navigation
metrics: add keyspace ID label to changefeed metrics (#5662) - #5666
Conversation
|
@asddongmen This PR has conflicts, I have hold it. |
|
@ti-chi-bot: ## If you want to know how to resolve it, please read the guide in TiDB Dev Guide. DetailsInstructions 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 ti-community-infra/tichi repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a keyspace ID label to various changefeed and sink metrics to improve observability. However, the changes contain numerous unresolved merge conflict markers across multiple files, including controller logic, sink implementations, and tests. These conflicts introduce critical compilation errors (such as undefined variables and re-declarations) and potential runtime panics due to mismatched label counts. All merge conflicts must be resolved, and the redundant or broken code blocks must be cleaned up before this PR can be merged.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
934c452 to
a1e0e7f
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Cherry-pick conflicts appear resolved; removing the |
a1e0e7f to
b121cd3
Compare
|
/test all |
|
@asddongmen: No jobs can be run with DetailsIn response to this:
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. |
|
/test next-gen |
|
/test next-gen |
|
/test pull-cdc-kafka-integration-light-next-gen |
69c10e6
into
pingcap:release-nextgen-202603
This is an automated cherry-pick of #5662
What problem does this PR solve?
Issue Number: close #5661
Changefeed-level owner and sink metrics expose keyspace names but not the numeric keyspace ID, which makes correlation with PD/TiDB keyspace metadata difficult.
What is changed and how it works?
keyspace_idlabel toticdc_owner_checkpoint_ts_lag,ticdc_owner_status, andticdc_sink_batch_row_count_sum.ChangeFeedInfo.KeyspaceID.DispatcherManager.keyspaceIDthrough sink constructors intometrics.Statistics; standalone consumers and redo applier use the default keyspace ID.ChangeFeedID,ChangeFeedDisplayName, protobuf messages, and persisted metadata unchanged.The sink metric is a histogram, so its
_bucket,_sum, and_countseries all receive the label.Check List
Tests
make cdcQuestions
Will it cause performance regression or break compatibility?
No material performance regression is expected. The added label changes Prometheus series identity after upgrade, so dashboards and alerts that aggregate or match exact label sets may need adjustment.
Do you need to update user documentation, design documentation or monitoring documentation?
No repository documentation is changed. The metric compatibility impact is described above.
Release note
Summary by CodeRabbit