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: change resource group label name #16192
Conversation
Signed-off-by: glorv <glorvs@163.com>
Signed-off-by: glorv <glorvs@163.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@@ -4,22 +4,25 @@ use lazy_static::*; | |||
use prometheus::*; | |||
|
|||
lazy_static! { | |||
// TODO: deprecate the "name" label in v8.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see some metrics not introduced in the Grafana template. maybe we can directly rename some metrics in TiKV
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the metrics changed in this PR are used in grafana. The background related metrics panels are defined in the Resource-Control page in tidb repo.
the grafana.json file needs to change also. |
@bufferflies We want to keep backward compatibility with v7.x so the expression in grafana is not changed. Maybe we can change it in v8.0 |
@@ -4,22 +4,25 @@ use lazy_static::*; | |||
use prometheus::*; | |||
|
|||
lazy_static! { | |||
// TODO: deprecate the "name" label in v8.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not replace it directly, grafana panel should be updated with the version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a problem that if we replace it, after a cluster is upgraded from old version, old metrics data will lost due to new expression. @nolouch do you think we should keep this compatibility?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, the background relatives can be replaced directly due to no cases using it currently. if we do we need to pick to release-7.5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
@glorv: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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 ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 0f8126a
|
/hold |
Signed-off-by: glorv <glorvs@163.com>
/unhold |
/merge |
@glorv: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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 ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 8806e90
|
/run-cherry-picker |
In response to a cherrypick label: new pull request created to branch |
close tikv#16191 Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
close #16191 change metrics label name for resource-group-name from "name" to "resource_group". To be backward compatible with old grafana panel, we add a new label name and keep the old one. We are going to deprecate the old label in v8.0. Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io> Signed-off-by: nolouch <nolouch@gmail.com> Co-authored-by: glorv <glorvs@163.com> Co-authored-by: nolouch <nolouch@gmail.com>
What is changed and how it works?
Issue Number: Close #16191
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note