Skip to content

cluster: fix health metrics (#2987) #3369

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

Closed

Conversation

ti-srebot
Copy link
Contributor

@ti-srebot ti-srebot commented Jan 20, 2021

cherry-pick #2987 to release-3.0
You can switch your code base to this Pull Request by using git-extras:

# In pd repo:
git pr https://github.com/tikv/pd/pull/3369

After apply modifications, you can push your change to this PR via:

git push [email protected]:ti-srebot/pd.git pr/3369:release-3.0-66c26169b813

Signed-off-by: disksing [email protected]

What problem does this PR solve?

What is changed and how it works?

  • add metrics reset (after removing a member, you will still need to restart PD or transfer leader to reset metrics)
  • fix wrong value

Check List

Tests

  • Manual test (add detailed scripts or steps below)
  1. start 3pd+1tikv cluster
  2. check /metrics output
pd_cluster_health_status{name="pd1"} 1
pd_cluster_health_status{name="pd2"} 1
pd_cluster_health_status{name="pd3"} 1
  1. delete member pd3
  2. transfer leader
  3. check /metrics output again, removed member is not displayed
pd_cluster_health_status{name="pd1"} 1
pd_cluster_health_status{name="pd2"} 1

Release note

  • Fix the issue that member health metrics not correct

@ti-srebot ti-srebot added component/metrics Metrics. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/cherry-pick labels Jan 20, 2021
@ti-srebot ti-srebot added this to the v3.0.21 milestone Jan 20, 2021
@ti-srebot
Copy link
Contributor Author

@disksing you're already a collaborator in bot's repo.

Signed-off-by: nolouch <[email protected]>
@HunDunDM
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

@HunDunDM: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

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.

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 27, 2021
@HunDunDM
Copy link
Member

/merge cancel

@ti-chi-bot ti-chi-bot removed the status/can-merge Indicates a PR has been approved by a committer. label Jan 27, 2021
@HunDunDM HunDunDM added status/LGT1 Indicates that a PR has LGTM 1. and removed status/LGT2 Indicates that a PR has LGTM 2. labels Jan 27, 2021
@rleungx rleungx added type/cherry-pick-for-release-3.0 The PR belongs to release-3.0 cherry pick. and removed type/cherry-pick-for-release-1.0 labels Apr 25, 2021
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • disksing

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by writing /lgtm in a comment.
Reviewer can cancel approval by writing /lgtm cancel in a comment.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels May 27, 2021
@lhy1024 lhy1024 removed their request for review June 18, 2021 08:21
@JmPotato JmPotato removed their request for review June 23, 2021 03:27
@disksing disksing removed their assignment Jun 29, 2021
@nolouch
Copy link
Contributor

nolouch commented Jul 1, 2021

no critical, close.

@nolouch nolouch closed this Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/metrics Metrics. status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug. type/cherry-pick-for-release-3.0 The PR belongs to release-3.0 cherry pick.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants