anchor.diff:      Dir#metric_dir{metrics=Ms0, dirs=Ds0}.
   
   
  +% this function is used on node disconnect/removal
  +% so that all metrics that reference that specific remote node
  +% are removed from the metrics structure
   remove_remotes(Remote, #metric_dir{metrics=Metrics, dirs=Dirs}=Dir) ->
       Ms0 = orddict:fold(fun(K, V, Ms) ->
                                  case V#metric_file.handler of
  
positive.code: 
              processor_loop(Parent, Merged, NewCount);
  
          {get_metrics, From} ->
              ForRemote = prepare_metrics_for_remote(Metrics),
              From ! {remote_metrics, node(), ForRemote},
              processor_loop(Parent, Metrics, Count);
  
          {unregister_remote, Remote} ->
              lager:debug("remove metrics from remote ~p", [Remote]),
  
  
negative.code:             Parent ! {finder_result, WithoutRemotes},
              processor_loop(Parent, WithoutRemotes, Count);
  
          % integrate the metrics of another remote node into our local
          % metrics data structure so that we are able to directly address
          % 'foreign' metrics via the associated remote node
          {remote_metrics, RemoteNode, RemoteMetrics} ->
              lager:debug("processing metrics from remote node ~p", [RemoteNode]),
  
  