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: remove useless "metric" field in pd.json #8382

Merged
merged 3 commits into from
Jul 12, 2024

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Jul 9, 2024

What problem does this PR solve?

Issue Number: Close #8381

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

Release note

None.

Signed-off-by: okJiang <[email protected]>
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.21%. Comparing base (bdbe73e) to head (b541c23).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8382      +/-   ##
==========================================
- Coverage   77.32%   77.21%   -0.12%     
==========================================
  Files         470      470              
  Lines       61687    61689       +2     
==========================================
- Hits        47701    47634      -67     
- Misses      10405    10471      +66     
- Partials     3581     3584       +3     
Flag Coverage Δ
unittests 77.21% <ø> (-0.12%) ⬇️

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

@ti-chi-bot ti-chi-bot bot requested a review from HuSharp July 10, 2024 06:19
@okJiang
Copy link
Member Author

okJiang commented Jul 10, 2024

/cc @HuSharp @rleungx

@ti-chi-bot ti-chi-bot bot requested a review from rleungx July 10, 2024 06:19
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 10, 2024
@rleungx
Copy link
Member

rleungx commented Jul 10, 2024

BTW, what is the metrics used for?

@okJiang
Copy link
Member Author

okJiang commented Jul 10, 2024

BTW, what is the metrics used for?

I tried to figure out what it does, but I couldn't find any information about it online.

@@ -862,7 +862,6 @@
"interval": "",
"intervalFactor": 2,
"legendFormat": "",
"metric": "pd_server_tso",
Copy link
Member

Choose a reason for hiding this comment

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

Does the grafana's official documentation explain what this field does?

Copy link
Member

Choose a reason for hiding this comment

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

Oh, got it #8382 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you give me an approve?

@ti-chi-bot ti-chi-bot bot added the lgtm label Jul 12, 2024
Copy link
Contributor

ti-chi-bot bot commented Jul 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: HuSharp, rleungx

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot removed the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jul 12, 2024
Copy link
Contributor

ti-chi-bot bot commented Jul 12, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-07-10 07:51:09.608606033 +0000 UTC m=+430366.843840145: ☑️ agreed by rleungx.
  • 2024-07-12 02:02:38.145122246 +0000 UTC m=+582255.380356359: ☑️ agreed by HuSharp.

Copy link
Contributor

ti-chi-bot bot commented Jul 12, 2024

@okJiang: 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.

Copy link
Contributor

ti-chi-bot bot commented Jul 12, 2024

@okJiang: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-integration-realcluster-test b8cc22b link false /test pull-integration-realcluster-test

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@okJiang
Copy link
Member Author

okJiang commented Jul 12, 2024

/test pull-integration-realcluster-test

@ti-chi-bot ti-chi-bot bot merged commit 0d97641 into tikv:master Jul 12, 2024
20 of 21 checks passed
@okJiang okJiang deleted the rm-metric-field branch July 12, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metric field is useless in grafana json
3 participants