-
Notifications
You must be signed in to change notification settings - Fork 156
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
add stats handler #218
add stats handler #218
Conversation
da0eb30
to
4627c2e
Compare
4627c2e
to
2cd95fe
Compare
/ptal @riteshvaryani @theevocater Very rough attempt at adding |
StatisticsHandler stats = this.server.getChildHandlerByClass(StatisticsHandler.class); | ||
this.scheduler.scheduleAtFixedRate(() -> { | ||
log.debug("(jetty) Num requests: " + stats.getRequests()); | ||
log.debug("(jetty) Num requests: " + stats.getRequestsActive()); |
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.
Num active requests?
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.
ah thanks-- fixed it on the sev-16337-add-header-logging
branch
wait i'm confused -- is the goal here to actually collect these metrics or just log them to stdout? wouldn't it be better to just output this via the statsd collector we already have? |
@theevocater doing this via statsd collector would probably be much better, but I'm honestly not sure how to do it... I see that we use statsd collector in |
No description provided.