cmd/scollector: Gather stats for individual elasticsearch indexes.

The stuff in this PR is all per Index.

On Wed, Dec 10, 2014 at 3:47 PM, Nick Craver <notifications@github.com>
wrote:

> In cmd/scollector/collectors/elasticsearch.go
> <https://github.com/bosun-monitor/bosun/pull/606#discussion-diff-21635724>
> :
>
> > +	descMergesTotalTimeInMillis      = "The total amount of time spent on merge operations. In elastic Lucene segments are merged behind the scenes. It is possible these can impact search performance."
> > +	descPercolateCurrent             = "???"
> > +	descPercolateMemorySizeInBytes   = "The amount of memory used for the percolate index. Percolate is a reverse query to document operation."
> > +	descPercolateQueries             = "The total number of percolate queries. Percolate is a reverse query to document operation."
> > +	descPercolateTimeInMillis        = "The total amount of time spent on percolating. Percolate is a reverse query to document operation."
> > +	descRefreshTotal                 = "The total number of refreshes. Refreshing makes all operations performed since the last search available."
> > +	descRefreshTotalTimeInMillis     = "Total amount of time spent on refreshes. Refreshing makes all operations performed since the last search available."
> > +	descSearchFetchCurrent           = "Current number of documents being fetched. Fetching is a phase of querying in a distributed search."
> > +	descSearchFetchTimeInMillis      = "Total time spent fetching documents. Fetching is a phase of querying in a distributed search."
> > +	descSearchFetchTotal             = "Total number of documents fetched. Fetching is a phase of querying in a distributed search."
> > +	descSearchOpenContexts           = "The current number of open contexts. A search is left open when srolling (i.e. pagination)."
> > +	descSearchQueryCurrent           = "The current number of queries."
> > +	descSearchQueryTimeInMillis      = "The total amount of time spent querying."
> > +	descSearchQueryTotal             = "The total number of queries."
> > +	descSegmentsMemoryInBytes        = "The total amount of memory used for Lucene segments."
> > +	descSegmentsCount                = "The number of segments that make up the index."
>
> Are you collecting per-index or for all indexes? If only all then would
> change the wording here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bosun-monitor/bosun/pull/606/files#r21635724>.
>