Skip to content
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: add more metrics for region and store heartbeat #2881

Merged
merged 4 commits into from
Sep 3, 2020

Conversation

lizhemingi
Copy link
Contributor

@lizhemingi lizhemingi commented Sep 2, 2020

Signed-off-by: Zheming Li nkdudu@126.com

What problem does this PR solve?

Add more metrics about heartbeat. Solve #2800

What is changed and how it works?

  • Add heartbeat handle duration for region heartbeat and store heartbeat.

  • Add panel in pd grafana dashboard.

  • Fix RegionHeartBeat still count "ok" when error occurs.

Check List

Tests

  • Manual test: using tiup to run this pd and import pd.json manually in grafana.

Code changes

  • Has metrics changed.

Release note

  • No release note

@ti-srebot ti-srebot added the contribution This PR is from a community contributor. label Sep 2, 2020
@lizhemingi
Copy link
Contributor Author

@nolouch

Hi, would you mind taking a look to see if this pr meets your expectations ?

Signed-off-by: Zheming Li <nkdudu@126.com>
Copy link
Contributor

@nolouch nolouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM

server/grpc_service.go Outdated Show resolved Hide resolved
@lhy1024
Copy link
Contributor

lhy1024 commented Sep 3, 2020

plz sign dco

@lhy1024 lhy1024 self-requested a review September 3, 2020 02:49
@nolouch nolouch added the needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. label Sep 3, 2020
@lizhemingi
Copy link
Contributor Author

@lhy1024 Should I also squash the commits ?

@lhy1024
Copy link
Contributor

lhy1024 commented Sep 3, 2020

it is not necessary to squash the commits, only to sign dco is enough. It will be squashed when merging pr

Signed-off-by: Zheming Li <nkdudu@126.com>
Copy link
Contributor

@lhy1024 lhy1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rest LGTM, would you like to show the new panel with a screenshot?

server/grpc_service.go Outdated Show resolved Hide resolved
@lizhemingi
Copy link
Contributor Author

image

Signed-off-by: Zheming Li <nkdudu@126.com>
@nolouch
Copy link
Contributor

nolouch commented Sep 3, 2020

LGTM
thanks.

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
Copy link
Contributor

@lhy1024 lhy1024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Sep 3, 2020
@lhy1024
Copy link
Contributor

lhy1024 commented Sep 3, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 3, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@duduainankai merge failed.

@lhy1024
Copy link
Contributor

lhy1024 commented Sep 3, 2020

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@duduainankai merge failed.

@glorv
Copy link
Contributor

glorv commented Sep 3, 2020

/run-integration-lightning-test

2 similar comments
@glorv
Copy link
Contributor

glorv commented Sep 3, 2020

/run-integration-lightning-test

@lhy1024
Copy link
Contributor

lhy1024 commented Sep 3, 2020

/run-integration-lightning-test

@nolouch nolouch merged commit 15c47e7 into tikv:master Sep 3, 2020
ti-srebot pushed a commit to ti-srebot/pd that referenced this pull request Sep 3, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@ti-srebot
Copy link
Contributor

cherry pick to release-4.0 in PR #2891

ti-srebot added a commit that referenced this pull request Sep 7, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution This PR is from a community contributor. needs-cherry-pick-release-4.0 The PR needs to cherry pick to release-4.0 branch. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants