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

IteratorStats #6073

Merged
merged 1 commit into from
Mar 21, 2016
Merged

IteratorStats #6073

merged 1 commit into from
Mar 21, 2016

Conversation

benbjohnson
Copy link
Contributor

Overview

This commit adds an IteratorStats that holds aggregate iterator processing information. A method is also added to Iterator to return the stats:

Stats() influxql.IteratorStats

Most Iterator implementations simply call down to lower level iterators to retrieve stats and then use IteratorStats.Add() to merge them together.

The remote iterators will also emit their stats in the point stream upon first connection, on a given interval, and then finally once the last point has been sent.

This functionality is required for properly implementing several of the query limits as well as providing insight into the internals of the system.

TODO

  • CHANGELOG.md updated
  • Rebased/mergable
  • Tests pass
  • Sign CLA (if not already signed)

/cc @jsternberg @jwilder

This commit adds an `IteratorStats` that holds aggregate
iterator processing information. A method is also added to
`Iterator` to return the stats:

	Stats() influxql.IteratorStats

The remote iterators will also emit their stats in the point
stream upon first connection, on a given interval, and then
finally once the last point has been sent.
benbjohnson added a commit that referenced this pull request Mar 21, 2016
@benbjohnson benbjohnson merged commit 65acce2 into influxdata:master Mar 21, 2016
@benbjohnson benbjohnson deleted the stats branch March 21, 2016 22:25
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.

1 participant