-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
stats: add metircs for high error rate feedback #9209
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9209 +/- ##
==========================================
+ Coverage 67.22% 67.23% +0.01%
==========================================
Files 371 371
Lines 77268 77271 +3
==========================================
+ Hits 51941 51953 +12
+ Misses 20684 20680 -4
+ Partials 4643 4638 -5
Continue to review full report at Codecov.
|
q.logDetailedInfo(h) | ||
if rate >= MinLogErrorRate && (q.actual >= MinLogScanCount || q.expected >= MinLogScanCount) { | ||
metrics.HighErrorRateFeedBackCounter.Inc() | ||
if log.GetLevel() == log.DebugLevel { |
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.
Can we change this log level to INFO or WARN?
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.
This part logs many things and has some heavy calculation. So it would be better to set it to debug level.
prometheus.CounterOpts{ | ||
Namespace: "tidb", | ||
Subsystem: "statistics", | ||
Name: "high_error_rate_feedback_total", |
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.
Should we update ansible as well?
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.
Yes.
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
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
What problem does this PR solve?
Add metrics to count the case when the actual count got by feedback is much different from the expected count calculated by statistics.
Check List
Tests
Related changes
tidb-ansible
repository