You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wi...@apache.org on 2020/01/07 08:01:42 UTC

[couchdb] 02/04: Add mango.query_invalid_index counter

This is an automated email from the ASF dual-hosted git repository.

willholley pushed a commit to branch mango_metrics
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 622fdb4e379eedf404f4a338d912cf7acebb8c65
Author: Will Holley <wi...@gmail.com>
AuthorDate: Mon Jan 6 09:30:55 2020 +0000

    Add mango.query_invalid_index counter
    
    Adds a metric to expose the number of Mango queries that could not
    use the index specified in the _find query.
---
 src/couch/priv/stats_descriptions.cfg | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/couch/priv/stats_descriptions.cfg b/src/couch/priv/stats_descriptions.cfg
index ae203bb..0d81ea3 100644
--- a/src/couch/priv/stats_descriptions.cfg
+++ b/src/couch/priv/stats_descriptions.cfg
@@ -302,3 +302,7 @@
     {type, counter},
     {desc, <<"number of mango queries that could not use an index">>}
 ]}.
+{[mango, query_invalid_index], [
+    {type, counter},
+    {desc, <<"number of mango queries that generated an invalid index warning">>}
+]}.