anchor.diff:              _ = 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
  +            InitialReductions = get_reductions(),
  +            set_last_reductions(InitialReductions),
               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),
  +            RRD = rrd:create(Resolution * 1000, 5, gauge),
  +            monitor:client_monitor_set_value(lb_active, cpu, RRD),
  +            monitor:client_monitor_set_value(lb_active, mem, RRD),
  +            monitor:monitor_set_value(lb_active, reductions, RRD),
               trigger();
           _ ->
               ok
  
positive.code:                {total_memory, TotalMemory}] ->
                    FreeMemory / TotalMemory * 100
            end,
      monitor:client_monitor_set_value(lb_active, cpu, fun(Old) -> rrd:add_now(CPU, Old) end),
      %monitor:client_monitor_set_value(lb_active, cpu5min, fun(Old) -> rrd:add_now(CPU, Old) end),
      monitor:client_monitor_set_value(lb_active, mem, fun(Old) -> rrd:add_now(MEM, Old) end)
      %monitor:client_monitor_set_value(lb_active, mem5min, fun(Old) -> rrd:add_now(MEM, Old) end),
      .
  
  -compile({inline, [init_db_rrd/1]}).
  %% @doc Called by dht node process to initialize the db monitors
  
negative.code: 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)
  