willholley opened a new pull request #2410: Mango metrics
URL: https://github.com/apache/couchdb/pull/2410
 
 
   <!-- Thank you for your contribution!
   
        Please file this form by replacing the Markdown comments
        with your text. If a section needs no action - remove it.
   
        Also remember, that CouchDB uses the Review-Then-Commit (RTC) model
        of code collaboration. Positive feedback is represented +1 from 
committers
        and negative is a -1. The -1 also means veto, and needs to be addressed
        to proceed. Once there are no objections, the PR can be merged by a
        CouchDB committer.
   
        See: http://couchdb.apache.org/bylaws.html#decisions for more info. -->
   
   ## Overview
   
   Improve instrumentation of Mango with the following metrics:
   
    * `mango.query_invalid_index`: number of mango queries that generated an 
invalid index warning
    * `mango, docs_examined`: number of documents examined by mango queries 
(the same value returned by execution_stats for individual queries)
    * `mango,quorum_docs_examined`: number of documents examined by mango 
queries, using cluster quorum
    * `mango.results_returned`: number of rows returned by mango queries
    * `mango.query_time`: histogram of the length of time processing mango 
queries
    * `mango.too_many_docs_scanned`: number of mango queries that generated an 
index scan warning
   
   ## Testing recommendations
   
   Make some Mango queries and call `_node/_local/_stats/mango` to view the 
metrics.
   
   ## Related Issues or Pull Requests
   
    * Prior art: https://github.com/apache/couchdb/issues/1913
    * Documentation PR: https://github.com/apache/couchdb-documentation/pull/469
   
   ## Checklist
   
   - [ ] Code is written and works correctly
   - [ ] Changes are covered by tests
   - [ ] Any new configurable parameters are documented in 
`rel/overlay/etc/default.ini`
   - [ ] A PR for documentation changes has been made in 
https://github.com/apache/couchdb-documentation
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to