anchor.diff:  get_load_metric(Metric, Mode) ->
       case Metric of
           cpu          -> get_vm_metric(cpu, Mode);
  +        reductions   -> get_dht_metric(reductions, Mode);
           mem          -> get_vm_metric(mem, Mode);
           items        -> items;
           _            -> throw(metric_not_available)
  
positive.code:             _ = application:start(sasl),   %% required by os_mon.
              _ = application:start(os_mon), %% for monitoring cpu and memory usage.
              _ = cpu_sup:util(), %% throw away first util value
              Resolution = config:read(lb_active_monitor_resolution),
              %LongTerm  = rrd:create(60 * 5 * 1000000, 5, {timing, '%'}),
              %monitor:client_monitor_set_value(lb_active, cpu5min, LongTerm),
              %monitor:client_monitor_set_value(lb_active, mem5min, LongTerm),
              ShortTerm = rrd:create(Resolution * 1000, 5, gauge),
              monitor:client_monitor_set_value(lb_active, cpu, ShortTerm),
              monitor:client_monitor_set_value(lb_active, mem, ShortTerm),
              trigger();
          _ ->
              ok
  
negative.code:             end
      end.
  
  %% @doc get the reductions of all processes in the pid group
  -spec get_reductions() -> integer().
  get_reductions() ->
      MyGroupPids = pid_groups:my_members(),
      AllReductions =
          [begin
               {reductions, N} = erlang:process_info(Pid, reductions),
               N
           end || Pid <- MyGroupPids],
      lists:sum(AllReductions).
  
  -spec set_last_reductions(integer()) -> ok.
  set_last_reductions(Reductions) ->
      erlang:put(reductions, Reductions),
      ok.
  
  -spec get_last_reductions() -> integer().
  get_last_reductions() ->
      erlang:get(reductions).
  
  %%%%%%%%%%%%%%%%%%%%%%%%%% Util %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  
  -spec collect_stats() -> boolean().
  collect_stats() ->
      Metrics = [cpu, mem, reductions],
      lists:member(config:read(lb_active_load_metric), Metrics).
  
  -spec trigger() -> ok.
  