-
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
Changes from all commits
5a56653
95988aa
176f19e
a7957f8
0c5e08c
b52003f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,8 +193,11 @@ func (s *SessionStatsCollector) StoreQueryFeedback(feedback interface{}, h *Hand | |
} else { | ||
rate = math.Abs(expected-float64(q.actual)) / float64(q.actual) | ||
} | ||
if rate >= MinLogErrorRate && (q.actual >= MinLogScanCount || q.expected >= MinLogScanCount) && log.GetLevel() == log.DebugLevel { | ||
q.logDetailedInfo(h) | ||
if rate >= MinLogErrorRate && (q.actual >= MinLogScanCount || q.expected >= MinLogScanCount) { | ||
metrics.SignificantFeedbackCounter.Inc() | ||
if log.GetLevel() == log.DebugLevel { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe 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. |
||
q.logDetailedInfo(h) | ||
} | ||
} | ||
metrics.StatsInaccuracyRate.Observe(rate) | ||
s.Lock() | ||
|
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.