anchor.diff:                                               "(measured from replication_changes_left)">>}]}];
                          false ->
                              []
  -                   end ++ case AddQuery of
  -                              true ->
  -                                  [{struct,[{title,<<"N1QL queries/sec">>},
  -                                            {name, <<"query_requests">>},
  -                                            {desc, <<"Number of N1QL requests processed per second">>}]}];
  -                              _ -> []
  -                          end ++ case AddIndex of
  -                                     false ->
  -                                         [];
  -                                     _ ->
  -                                         [{struct, [{isBytes, true},
  -                                                    {title, <<"index data size">>},
  -                                                    {name, global_index_stat(<<"data_size">>)},
  -                                                    {desc, <<"Actual data size consumed by the index">>}]},
  -                                          {struct, [{title, <<"index disk size">>},
  -                                                    {name, global_index_stat(<<"disk_size">>)},
  -                                                    {desc, <<"Total disk file size consumed by the index">>},
  -                                                    {isBytes, true}]},
  -                                          {struct, [{title, <<"index fragmentation %">>},
  -                                                    {name, global_index_stat(<<"fragmentation">>)},
  -                                                    {desc, <<"Percentage fragmentation of the index. Note: at small index sizes of less than a hundred kB, the static overhead of the index disk file will inflate the index fragmentation percentage">>}]},
  -                                          {struct, [{title, <<"index scanned/sec">>},
  -                                                    {name, global_index_stat(<<"num_rows_returned">>)},
  -                                                    {desc, <<"Number of index items scanned by the indexer per second">>}]}]
  -                                 end)
  -               ]}]},
  +                   end ++
  +                       membase_query_stats_description(AddQuery) ++
  +                       membase_index_stats_description(IndexNodes)
  +                  )]}]},
        {struct,[{blockName,<<"vBucket Resources">>},
                 {extraCSSClasses,<<"dynamic_withtotal dynamic_closed">>},
                 {columns,
  
positive.code:                            {name, <<"query_invalid_requests">>},
                             {desc, <<"Number of requests for unsupported endpoints per second, specifically HTTP requests for all endpoints not supported by the query engine. For example, a request for http://localhost:8093/foo will be included. Potentially useful in identifying DOS attacks.">>}]}]}]}].
  
  membase_stats_description(BucketId, AddQuery, AddIndex) ->
      [{struct,[{blockName,<<"Summary">>},
                {stats,
                 [{struct,[{title,<<"ops per second">>},
  
negative.code:                           {desc,<<"Number of backoffs for other DCP connections">>}]}
                 ]}]}]
          ++ couchbase_view_stats_descriptions(BucketId)
          ++ couchbase_index_stats_descriptions(BucketId, IndexNodes)
          ++ couchbase_replication_stats_descriptions(BucketId)
          ++ couchbase_goxdcr_stats_descriptions(BucketId)
          ++ case AddQuery of
  