metrics,scripts: keep TiCDC dashboard titles consistent#4765
Conversation
Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
📝 WalkthroughWalkthroughThree Grafana dashboard JSON files are updated to use a templated datasource variable in the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 replaces the hardcoded "test-cluster" prefix with the "${DS_TEST-CLUSTER}" variable in several Grafana dashboard titles. Feedback suggests removing the redundant "-cluster" suffix from the titles, as the variable likely already includes it, to avoid repetitive naming like "test-cluster-cluster".
Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
Signed-off-by: tenfyzhong <tenfy@tenfy.cn>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3AceShowHand, lidezhu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
/tide |
|
@tenfyzhong: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
What problem does this PR solve?
Issue Number: close #4764
TiCDC dashboards still hardcode
test-clusterin their titles, and the next-gen metrics generator can silently miss required title or label substitutions when the base title template changes.What is changed and how it works?
metrics/grafana/ticdc_new_arch.jsonandmetrics/nextgengrafana/ticdc_new_arch_next_gen.jsonto use${DS_TEST-CLUSTER}-TiCDC-New-Arch.metrics/nextgengrafana/ticdc_new_arch_with_keyspace_name.jsonto use${DS_TEST-CLUSTER}-TiCDC-New-Arch-KeyspaceName.scripts/generate-next-gen-metrics.shso the keyspace-title replacement matches the current base title.-KeyspaceNamein the generated user dashboard andsharedpool_idin the generated shared dashboard.Check List
Tests
Manual test steps:
bash ./scripts/generate-next-gen-metrics.shjq empty metrics/grafana/ticdc_new_arch.json metrics/nextgengrafana/ticdc_new_arch_next_gen.json metrics/nextgengrafana/ticdc_new_arch_with_keyspace_name.jsongrep -F -- '-KeyspaceName' metrics/nextgengrafana/ticdc_new_arch_with_keyspace_name.jsongrep -F -- 'sharedpool_id' metrics/nextgengrafana/ticdc_new_arch_next_gen.jsongit diff --checkQuestions
Will it cause performance regression or break compatibility?
No.
Do you need to update user documentation, design documentation or monitoring documentation?
No additional documentation is needed.
Release note