anchor.diff:                             {desc, <<"Number of queries that take longer than 5000 ms per second">>}]},
                    {struct, [{title, <<"invalid requests/sec">>},
                              {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.">>}]}]}]}].
  +                           {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_query_stats_description(false) ->
       [];
   membase_query_stats_description(true) ->
  -    [{struct,[{title,<<"N1QL queries/sec">>},
  +    [{struct,[{title, <<"N1QL queries/sec">>},
                 {name, <<"query_requests">>},
                 {desc, <<"Number of N1QL requests processed per second">>}]}].
   
  
positive.code: 
  do_couchbase_goxdcr_stats_descriptions(BucketId) ->
      Reps = goxdcr_status_keeper:get_replications_with_remote_info(BucketId),
      lists:map(fun ({Id, RemoteClusterName, RemoteBucket}) ->
                        Prefix = <<"replications/", Id/binary,"/">>,
  
                        BlockName = io_lib:format("Outbound XDCR Operations to bucket ~p "
                                                  "on remote cluster ~p",[RemoteBucket, RemoteClusterName]),
  
                        {struct,[{blockName, iolist_to_binary(BlockName)},
                                 {extraCSSClasses,<<"dynamic_closed">>},
                                 {stats,
                                  [
                                   {struct,[{title,<<"mutations">>},
                                            {name,<<Prefix/binary,"changes_left">>},
                                            {desc,<<"Number of mutations to be replicated to other clusters "
                                                    "(measured from per-replication stat changes_left)">>}]},
                                   {struct,[{title,<<"percent completed">>},
                                            {maxY, 100},
                                            {name,<<Prefix/binary, "percent_completeness">>},
                                            {desc,<<"Percentage of checked items out of all checked and to-be-replicated items "
                                                    "(measured from per-replication stat percent_completeness)">>}]},
                                   {struct,[{title,<<"mutations replicated">>},
                                            {name,<<Prefix/binary,"docs_written">>},
                                            {desc,<<"Number of mutations that have been replicated to other clusters "
                                                    "(measured from per-replication stat docs_written)">>}]},
                                   {struct,[{title,<<"mutations filtered per sec.">>},
                                            {name,<<Prefix/binary,"docs_filtered">>},
                                            {desc,<<"Number of mutations per second that have been filtered out and have not been replicated to other clusters "
                                                    "(measured from per-replication stat docs_filtered)">>}]},
                                   {struct,[{title,<<"mutations skipped by resolution">>},
                                            {name,<<Prefix/binary,"docs_failed_cr_source">>},
                                            {desc,<<"Number of mutations that failed conflict resolution on the source side and hence have not been replicated to other clusters "
                                                    "(measured from per-replication stat docs_failed_cr_source)">>}]},
                                   {struct,[{title,<<"mutation replication rate">>},
                                            {name,<<Prefix/binary,"rate_replicated">>},
                                            {desc,<<"Rate of replication in terms of number of replicated mutations per second "
                                                    "(measured from per-replication stat rate_replicated)">>}]},
                                   {struct,[{isBytes,true},
                                            {title,<<"data replication rate">>},
                                            {name,<<Prefix/binary,"bandwidth_usage">>},
                                            {desc,<<"Rate of replication in terms of bytes replicated per second "
                                                    "(measured from per-replication stat bandwidth_usage)">>}]},
                                   {struct,[{title,<<"opt. replication rate">>},
                                            {name,<<Prefix/binary,"rate_doc_opt_repd">>},
                                            {desc,<<"Rate of optimistic replications in terms of number of replicated mutations per second ">>}]},
                                   {struct,[{title,<<"doc checks rate">>},
                                            {name,<<Prefix/binary,"rate_doc_checks">>},
                                            {desc,<<"Rate of doc checks per second ">>}]},
                                   {struct,[{title,<<"ms meta batch latency">>},
                                            {name,<<Prefix/binary, "wtavg_meta_latency">>},
                                            {desc,<<"Weighted average latency in ms of sending getMeta and waiting for conflict solution result from remote cluster "
                                                    "(measured from per-replication stat wtavg_meta_latency)">>}]},
                                   {struct,[{title,<<"ms doc batch latency">>},
                                            {name,<<Prefix/binary, "wtavg_docs_latency">>},
                                            {desc,<<"Weighted average latency in ms of sending replicated mutations to remote cluster "
                                                    "(measured from per-replication stat wtavg_docs_latency)">>}]},
                                   {struct,[{title,<<"doc reception rate">>},
                                            {name,<<Prefix/binary,"rate_received_from_dcp">>},
                                            {desc,<<"Rate of mutations received from dcp in terms of number of mutations per second ">>}]}]}]}
                end, Reps).
  
  
  couchbase_replication_stats_descriptions(BucketId) ->
  
negative.code: do_couchbase_view_stats_descriptions(DictBySig, KeyPrefix, Title) ->
      dict:fold(
        fun(Sig, DDocIds0, Stats) ->
                Prefix = <<KeyPrefix/binary, Sig/binary, "/">>,
                DDocIds = lists:sort(DDocIds0),
                Ids = iolist_to_binary([hd(DDocIds) |
                                        [[?SPACE_CHAR | Id]
                                         || Id <- tl(DDocIds)]]),
                MyStats = {struct,[{blockName, <<Title/binary, ": ", Ids/binary>>},
                                   {extraCSSClasses, <<"dynamic_closed">>},
                                   {columns,
                                    [<<"Data">>, <<"Disk">>, <<"Read Ops">>]},
                                   {stats,
                                    [{struct, [{isBytes, true},
                                               {title, <<"data size">>},
                                               {name, <<Prefix/binary, "data_size">>},
                                               {desc, <<"How many bytes stored">>}]},
                                     {struct, [{isBytes, true},
                                               {title, <<"disk size">>},
                                               {name, <<Prefix/binary, "disk_size">>},
                                               {desc, <<"How much storage used">>}]},
                                     {struct, [{title, <<"view reads per sec.">>},
                                               {name, <<Prefix/binary, "accesses">>},
                                               {desc, <<"Traffic to the views in this design doc">>}]}
                                    ]}]},
                [MyStats | Stats]
        end, [], DictBySig).
  
  couchbase_index_stats_descriptions(_, []) ->
  