Skip to content

Commit

Permalink
Reset internal histogram of monitorEventLoopDelay after each collect(…
Browse files Browse the repository at this point in the history
…) invocation
  • Loading branch information
Yaroslav Dobzhanskij authored and zbjornson committed Sep 19, 2021
1 parent 3b66641 commit 0f444cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/metrics/eventLoopLag.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ module.exports = (registry, config = {}) => {
lagP50.set(labels, histogram.percentile(50) / 1e9);
lagP90.set(labels, histogram.percentile(90) / 1e9);
lagP99.set(labels, histogram.percentile(99) / 1e9);

histogram.reset();
};
}

Expand Down

0 comments on commit 0f444cd

Please sign in to comment.