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

timer,ttl: add some metrics for timer framework and TTL timer syncing #45611

Merged
merged 2 commits into from
Jul 28, 2023

Conversation

lcwangchao
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close #45610

Problem Summary:

What is changed and how it works?

Check List

Tests

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

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 27, 2023
@@ -68,6 +70,13 @@ type hookWorker struct {
ch chan *triggerEventRequest
logger *zap.Logger
nowFunc func() time.Time
// metrics for worker
triggerRequestCounter prometheus.Counter
onPreSchedEventCounter prometheus.Counter
Copy link
Member

Choose a reason for hiding this comment

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

We can create metrics package to support metrics for timer. such as executor/metrics.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #45611 (7d3da73) into master (eff4970) will decrease coverage by 0.0092%.
Report is 22 commits behind head on master.
The diff coverage is 94.8717%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #45611        +/-   ##
================================================
- Coverage   73.2417%   73.2326%   -0.0092%     
================================================
  Files          1269       1275         +6     
  Lines        389962     390752       +790     
================================================
+ Hits         285615     286158       +543     
- Misses        86046      86249       +203     
- Partials      18301      18345        +44     
Flag Coverage Δ
integration 78.1388% <ø> (?)
unit 73.2241% <94.8717%> (-0.0177%) ⬇️

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

Components Coverage Δ
dumpling 54.0444% <ø> (ø)
parser 85.0417% <ø> (-0.0138%) ⬇️
br 52.1322% <ø> (+0.0229%) ⬆️

@lcwangchao
Copy link
Collaborator Author

/retest

1 similar comment
@lcwangchao
Copy link
Collaborator Author

/retest

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jul 28, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jul 28, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hawkingrei, YangKeao

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:
  • OWNERS [YangKeao,hawkingrei]

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 28, 2023
@ti-chi-bot
Copy link

ti-chi-bot bot commented Jul 28, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-07-28 03:29:41.087549119 +0000 UTC m=+497923.682080108: ☑️ agreed by hawkingrei.
  • 2023-07-28 03:51:30.137180056 +0000 UTC m=+499232.731711043: ☑️ agreed by YangKeao.

@ti-chi-bot ti-chi-bot bot merged commit 6d6547a into pingcap:master Jul 28, 2023
@lcwangchao lcwangchao deleted the timer_ttl_metrics branch July 28, 2023 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add metrics to timer framework
3 participants