-
Notifications
You must be signed in to change notification settings - Fork 24
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
[fix #246] fix unified sorter #247
Conversation
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
PTAL~ |
cdc/cdc/puller/puller.go
Outdated
@@ -231,6 +227,7 @@ func (p *pullerImpl) Run(ctx context.Context) error { | |||
if err != nil { | |||
return errors.Trace(err) | |||
} | |||
metricTxnCollectCounterResolved.Inc() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest:
- Rename to
metricPullOutputCounterResolved
. So as to the underlying prom metric name. - Utilize
kvEventCounter
as the puller input counter. The input & output metrics will help us determine whether there is issue in puller module. For both kv & resolved-ts event. - Add the input counter to grafana panel.
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #247 +/- ##
================================================
- Coverage 61.2425% 61.0307% -0.2119%
================================================
Files 238 239 +1
Lines 20200 20180 -20
================================================
- Hits 12371 12316 -55
- Misses 6690 6743 +53
+ Partials 1139 1121 -18
*This pull request uses carry forward flags. Click here to find out more.
|
7536910
to
87d8293
Compare
Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
cdc/metrics/grafana/tikv-cdc.json
Outdated
@@ -6496,100 +6496,6 @@ | |||
"alignLevel": null | |||
} | |||
}, | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing a panel will leave a blank space, may need move all other panels or modify the metric json in next pr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yesh, it will leave a blank space. I add it back, and remove it in next pr. Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please paste the screenshot of modified TiKV-CDC
panel of Grafana in PR content.
Rest LGTM~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
added, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM~
* fix unified sorter Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove debug log Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add metric for the input event of puller Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove puller input metric Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add back Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: zeminzhou <zhouzemin@pingcap.com>
* fix unified sorter Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove debug log Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add metric for the input event of puller Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove puller input metric Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add back Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: pingyu <yuping@pingcap.com>
* [fix #246] fix unified sorter (#247) * fix unified sorter Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove debug log Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add metric for the input event of puller Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * remove puller input metric Signed-off-by: zeminzhou <zhouzemin@pingcap.com> * add back Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: pingyu <yuping@pingcap.com> * fix keyspan sink metrics (#249) Signed-off-by: pingyu <yuping@pingcap.com> Signed-off-by: pingyu <yuping@pingcap.com> * fix gh action Signed-off-by: pingyu <yuping@pingcap.com> Signed-off-by: zeminzhou <zhouzemin@pingcap.com> Signed-off-by: pingyu <yuping@pingcap.com> Co-authored-by: zzm <zhouzemin@pingcap.com>
Signed-off-by: zeminzhou zhouzemin@pingcap.com
What problem does this PR solve?
puller output resolvedts
Issue Number: close #246
Problem Description: TBD
What is changed and how does it work?
remove
wrong print
Code changes
Check List for Tests
This PR has been tested by at least one of the following methods: