-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 more stats for httpd, query executor #5681
Conversation
defer close(results) | ||
q.statMap.Add(statQueriesActive, 1) | ||
defer func(start time.Time) { | ||
close(results) |
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.
Not sure why the close
has moved into here? I think the following would be fine:
defer close(results)
defer func(start time.Time) { ... }(time.Now())
@mark-rushakoff Ben is currently moving the query executor to the |
3a9d686
to
ddf028f
Compare
ddf028f
to
691a2a9
Compare
@e-dard Rebased and comment addressed. |
LGTM 👍 /cc @jwilder |
👍 |
@mark-rushakoff Could you add this to the changelog too? |
I'll update the changelog, wait for a green build, and merge. On Thu, Feb 18, 2016 at 1:44 PM, Jason Wilder notifications@github.com
|
Add more stats for httpd, query executor
Four new stats in httpd:
queryReqDurationNs
: time spent inside GET /querywriteReqDurationNs
: time spent inside POST /writereqDurationNs
: time spent handling any HTTP requestreqActive
: number of currently active HTTP requestsTwo new stats in query executor:
queryDurationNs
: time spent executing queriesqueriesActive
: number of currently active/executing queries