Skip to content
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

Merged
merged 3 commits into from
Feb 18, 2016
Merged

Conversation

mark-rushakoff
Copy link
Contributor

Four new stats in httpd:

  • queryReqDurationNs: time spent inside GET /query
  • writeReqDurationNs: time spent inside POST /write
  • reqDurationNs: time spent handling any HTTP request
  • reqActive: number of currently active HTTP requests

Two new stats in query executor:

  • queryDurationNs: time spent executing queries
  • queriesActive: number of currently active/executing queries

defer close(results)
q.statMap.Add(statQueriesActive, 1)
defer func(start time.Time) {
close(results)
Copy link
Contributor

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())

@e-dard
Copy link
Contributor

e-dard commented Feb 15, 2016

@mark-rushakoff Ben is currently moving the query executor to the influxql package in #5663. Once that's merged this'll need a rebase.

@mark-rushakoff
Copy link
Contributor Author

@e-dard Rebased and comment addressed.

@e-dard
Copy link
Contributor

e-dard commented Feb 18, 2016

LGTM 👍 /cc @jwilder

@jwilder
Copy link
Contributor

jwilder commented Feb 18, 2016

👍

@jwilder
Copy link
Contributor

jwilder commented Feb 18, 2016

@mark-rushakoff Could you add this to the changelog too?

@mark-rushakoff
Copy link
Contributor Author

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
wrote:

@mark-rushakoff https://github.com/mark-rushakoff Could you add this to
the changelog too?


Reply to this email directly or view it on GitHub
#5681 (comment).

mark-rushakoff added a commit that referenced this pull request Feb 18, 2016
Add more stats for httpd, query executor
@mark-rushakoff mark-rushakoff merged commit b72c684 into master Feb 18, 2016
@mark-rushakoff mark-rushakoff deleted the mr-expand-stats branch February 18, 2016 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants