You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The built-in metric (gauge) nodejs_eventloop_lag_seconds is marked as measuring the average event loop lag: the aggregator property value for it is average.
However, what it actually reports is the amount of time required to generate and send the previous metrics response.
This is equivalent to the maximum event loop lag value rather than the average. To get the actual average you need to use nodejs_eventloop_lag_mean_seconds instead (for Node servers that support it). In our case the average event loop lag is under 11ms while the nodejs_eventloop_lag_seconds gets as high as 1 second !
I recommend:
Fixing nodejs_eventloop_lag_seconds to actually report the average event loop lag
Introduce a new metric to report the metrics response generation time, say nodejs_metrics_response_time
Important: the amount of time required to generate the metrics response remains high, and needs to be improved.
The text was updated successfully, but these errors were encountered:
Since the collect method doesn't return a promise, the value it measures will only be reported in the next metrics invocation.
Since the delta is from when metrics starts until after the response is sent, this is what it measures. And it's not updated until the next invocation of metrics.
The built-in metric (gauge)
nodejs_eventloop_lag_seconds
is marked as measuring the average event loop lag: theaggregator
property value for it isaverage
.However, what it actually reports is the amount of time required to generate and send the previous
metrics
response.This is equivalent to the maximum event loop lag value rather than the average. To get the actual average you need to use
nodejs_eventloop_lag_mean_seconds
instead (for Node servers that support it). In our case the average event loop lag is under 11ms while thenodejs_eventloop_lag_seconds
gets as high as 1 second !I recommend:
nodejs_eventloop_lag_seconds
to actually report the average event loop lagmetrics
response generation time, saynodejs_metrics_response_time
Important: the amount of time required to generate the
metrics
response remains high, and needs to be improved.The text was updated successfully, but these errors were encountered: