anchor.diff:          processes_used, binary, code, ets])],
       {NumberOfGCs, WordsReclaimed, _} = statistics(garbage_collection),
       {{input, Input}, {output, Output}} = statistics(io),
  +    CouchFile = {couch_file, {couch_file_stats()}},
  +    MessageQueues = [CouchFile|message_queues(registered())],
       send_json(Req, {[
           {uptime, element(1,statistics(wall_clock)) div 1000},
           {memory, {Memory}},
  
positive.code:         {stale_proc_count, couch_proc_manager:get_stale_proc_count()},
          {process_count, erlang:system_info(process_count)},
          {process_limit, erlang:system_info(process_limit)},
          {message_queues, message_queues(registered())},
          {internal_replication_jobs, mem3_sync:get_backlog()},
          {distribution, {get_distribution_stats()}}
      ]}).
  
  get_distribution_stats() ->
      lists:map(fun({Node, Socket}) ->
  
negative.code:     send_method_not_allowed(Req, "GET,HEAD").
  
  message_queues(Registered) ->
      lists:map(fun(Name) ->
          Type = message_queue_len,
          {Type, Length} = process_info(whereis(Name), Type),
          {Name, Length}
      end, Registered).
  