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: use second as the unit of latency #8367

Merged
merged 2 commits into from
Jul 8, 2024
Merged

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Jul 5, 2024

What problem does this PR solve?

Issue Number: Ref #4399

What is changed and how does it work?

These metrics are not displayed in the Grafana.

Check List

Tests

  • Unit test

Release note

None.

@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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 5, 2024
Copy link

codecov bot commented Jul 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.23%. Comparing base (85d650b) to head (50bad6a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8367      +/-   ##
==========================================
- Coverage   77.41%   77.23%   -0.19%     
==========================================
  Files         470      470              
  Lines       61686    61686              
==========================================
- Hits        47755    47641     -114     
- Misses      10357    10457     +100     
- Partials     3574     3588      +14     
Flag Coverage Δ
unittests 77.23% <100.00%> (-0.19%) ⬇️

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

@rleungx rleungx requested a review from JmPotato July 8, 2024 03:26
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 8, 2024
Copy link
Contributor

ti-chi-bot bot commented Jul 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JmPotato, lhy1024

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 added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jul 8, 2024
Copy link
Contributor

ti-chi-bot bot commented Jul 8, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-07-08 03:41:55.182920287 +0000 UTC m=+242612.418154399: ☑️ agreed by JmPotato.
  • 2024-07-08 04:49:04.534718036 +0000 UTC m=+246641.769952149: ☑️ agreed by lhy1024.

Copy link
Contributor

ti-chi-bot bot commented Jul 8, 2024

@rleungx: 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 bot merged commit b35f18d into tikv:master Jul 8, 2024
25 checks passed
@rleungx rleungx deleted the unit branch July 8, 2024 05:30
@@ -139,7 +139,7 @@ func (s *pdTSOStream) processRequests(
}
return
}
tsoBatchSendLatency.Observe(float64(time.Since(batchStartTime)))
tsoBatchSendLatency.Observe(time.Since(batchStartTime).Seconds())
Copy link
Contributor

Choose a reason for hiding this comment

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

If the time delta is less than 1 second, will we got zero as the value of Observe?Is it expected?

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants