-
Notifications
You must be signed in to change notification settings - Fork 30.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
Histogram exceeds
metric 1 hour threshold
#40096
Comments
Has there been any further progress here? It's still unclear if |
Nodejs uses an High Dynamic Range Histogram. An HDR histogram can be configured with a minimum and maximum value which determines the buckets used by the histogram and ultimately the accuracy of the histogram. The documentation seem to suggest that the event loop delay histogram is configured with a maximum value of an event loop delay of 1 hour.
The event loop delay histogram gets created here: Lines 236 to 255 in 386c7e1
But given that the Lines 25 to 31 in 386c7e1
This would mean the histogram accuracy isn't as high as it could be. |
📗 API Reference Docs Problem
Location
Section of the site where the content exists
Performance measurement APIs
Affected URL(s):
Description
The histogram
exceeds
metric description might be incorrect or at least vague in explaining what is being measured.I havent seen any code implementation of the mentioned
maximum 1 hour event loop delay threshold.
.My walkthrough in the code:
Histogram::RecordDelta
tracks the delta time betweennow
and the last time it was called. (code)exceeds
is incremented whenhdr_record_value(,delta)
returnstrue
(code)The
hdr_record_values
function is what determines this metric (code)a.
value
is always bigger than 0 in our case.b.
exceeds
is incremented if this condition istrue
:counts_index
is the index of the last counts that happened in thedelta
duration. Henceexceeds
will increment whenever there is no counts during the lastresolution
time.Is my understanding corrent here? CC @jasnell as I believe he's implemented this feature
submit a pull request.
The text was updated successfully, but these errors were encountered: