-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
metrics: grafana dashboards support multiple clusters #22503
metrics: grafana dashboards support multiple clusters #22503
Conversation
Please follow PR Title Format:
Or if the count of mainly changed packages are more than 3, use
|
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
/cc @DanielZhangQD |
/cc @tennix @breeswish @AstroProfundis |
/run-monitor-test |
Visit the grafana server at: http://172.16.5.5:31657, it will last for 5 hours |
/approve |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@zjj2wry merge failed. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
/label needs-cherry-pick-4.0 |
/run-cherry-picker |
cherry pick to release-4.0 in PR #22534 |
What problem does this PR solve?
Issue Number: close #xxx
Problem Summary:
Many users(come from DBaaS、operator、tiup) monitor multiple TiDB clusters in one Grafana, this PR make Grafana dashboards support multiple clusters and not affect single cluster usage. Cluster variable is hidden by default.
What is changed and how it works?
What's Changed:
How it Works:
load it to your Grafana :))
Single Cluster:
No change
Multiple Cluster:
Construct a label that can uniquely identify the cluster. in tidb_operator, you can use {namespace}-{cluster_name} as your {tidb_cluster} variable.
add this configuration to your prometheus config
Related changes
Check List
Tests
Side effects
Release note