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

*: reduce WithLabelValues of prometheus #5802

Merged
merged 8 commits into from
Jan 10, 2023
Merged

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Dec 26, 2022

Signed-off-by: lhy1024 admin@liudos.us

What problem does this PR solve?

Issue Number: Close #5801

What is changed and how does it work?

Check List

Tests

  • Unit test

Release note

None.

Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 26, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nolouch
  • rleungx

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 submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the release-note-none Denotes a PR that doesn't merit a release note. label Dec 26, 2022
@codecov
Copy link

codecov bot commented Dec 26, 2022

Codecov Report

Base: 75.55% // Head: 75.56% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (aedc8ef) compared to base (ba81088).
Patch coverage: 70.56% of modified lines in pull request are covered.

❗ Current head aedc8ef differs from pull request most recent head 42e0030. Consider uploading reports for the commit 42e0030 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5802      +/-   ##
==========================================
+ Coverage   75.55%   75.56%   +0.01%     
==========================================
  Files         338      338              
  Lines       33621    33626       +5     
==========================================
+ Hits        25401    25409       +8     
+ Misses       6037     6034       -3     
  Partials     2183     2183              
Flag Coverage Δ
unittests 75.56% <70.56%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/metrics.go 100.00% <ø> (ø)
server/schedule/checker/learner_checker.go 72.72% <0.00%> (ø)
server/schedule/filter/filters.go 87.95% <ø> (ø)
server/schedule/hbstream/metric.go 100.00% <ø> (ø)
server/schedule/metrics.go 100.00% <ø> (ø)
server/schedulers/metrics.go 100.00% <ø> (ø)
server/schedulers/utils.go 89.67% <ø> (ø)
server/statistics/store_collection.go 93.75% <ø> (ø)
server/statistics/store_hot_peers_infos.go 93.65% <ø> (ø)
server/tso/metrics.go 100.00% <ø> (ø)
... and 68 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: lhy1024 <admin@liudos.us>
@lhy1024 lhy1024 added type/enhancement The issue or PR belongs to an enhancement. component/metrics Metrics. labels Dec 26, 2022
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 31, 2022
Signed-off-by: lhy1024 <admin@liudos.us>

Conflicts:
	server/schedule/checker/rule_checker.go
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2023
Signed-off-by: lhy1024 <admin@liudos.us>
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.

great works, rest lgtm.

tools/pd-simulator/simulator/task.go Outdated Show resolved Hide resolved
@@ -30,11 +30,27 @@ import (

const (
replicaCheckerName = "replica-checker"
replicaChecker = "replica_checker"
Copy link
Contributor

Choose a reason for hiding this comment

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

no used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

in line 38~53

Copy link
Contributor

Choose a reason for hiding this comment

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

replicaCheckerName and replicaChecker, can we just keep one? I think the metrics are not a big compatibility issue.

Copy link
Contributor Author

@lhy1024 lhy1024 Jan 10, 2023

Choose a reason for hiding this comment

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

There are some similar problems with other schedulers and checkers. I think we can unify them in other pr.

Signed-off-by: lhy1024 <admin@liudos.us>
Copy link
Member

@rleungx rleungx left a comment

Choose a reason for hiding this comment

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

Overall LGTM, except for the unresolved comment.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 10, 2023
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 10, 2023

Overall LGTM, except for the unresolved comment.

It will do in #5845

@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 Jan 10, 2023
@nolouch
Copy link
Contributor

nolouch commented Jan 10, 2023

/merge

@ti-chi-bot
Copy link
Member

@nolouch: 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
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: aedc8ef

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

@lhy1024: Your PR was out of date, I have automatically updated it for you.

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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 removed the status/can-merge Indicates a PR has been approved by a committer. label Jan 10, 2023
@lhy1024
Copy link
Contributor Author

lhy1024 commented Jan 10, 2023

/merge

@ti-chi-bot
Copy link
Member

@lhy1024: 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
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 42e0030

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 10, 2023
@ti-chi-bot ti-chi-bot merged commit 275c43e into tikv:master Jan 10, 2023
@lhy1024 lhy1024 deleted the promethues branch January 10, 2023 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/metrics Metrics. release-note-none Denotes a PR that doesn't merit a release note. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

*: reduce WithLabelValues of prometheus
4 participants