anchor.diff:  
   do_recognize_bucket_metric(Service, K) ->
       case binary:split(K, <<":">>, [global]) of
  -        [Bucket, Index, Metric] ->
  +        [Bucket, Item, Metric] ->
               Type = find_type(Metric, [{#stats_accumulators.gauges,
                                          Service:get_gauges()},
                                         {#stats_accumulators.counters,
  
positive.code:                        compute_service_gauges),
  
      ServiceStats = [{service_event_name(Service),
                       finalize_index_stats(ServiceStats1)}],
      Prefix = service_prefix(Service),
      AggregatedStats =
          [{Prefix ++ binary_to_list(Bucket), Values} ||
              {Bucket, Values} <-
                  aggregate_index_stats(
                    Service, Stats, KnownBuckets, Defaults)] ++
          ServiceStats,
  
      AllCounters = SortedBucketCounters ++ SortedServiceCounters,
      SortedCounters = lists:sort(AllCounters),
      {AggregatedStats, SortedCounters, State}.
  
  aggregate_index_stats(Service, Stats, Buckets, Defaults) ->
      do_aggregate_index_stats(Service, Stats, Buckets, Defaults, []).
  
  do_aggregate_index_stats(_Service, [], Buckets, Defaults, Acc) ->
      [{B, Defaults} || B <- Buckets] ++ Acc;
  do_aggregate_index_stats(Service, [{{Bucket, _, _}, _} | _] = Stats,
                           Buckets, Defaults, Acc) ->
      {BucketStats, RestStats} =
          aggregate_index_bucket_stats(Service, Bucket, Stats, Defaults),
  
      OtherBuckets = lists:delete(Bucket, Buckets),
      do_aggregate_index_stats(Service, RestStats, OtherBuckets, Defaults,
                               [{Bucket, BucketStats} | Acc]).
  
  aggregate_index_bucket_stats(Service, Bucket, Stats, Defaults) ->
      do_aggregate_index_bucket_stats(Service, Defaults, Bucket, Stats).
  
  do_aggregate_index_bucket_stats(_Service, Acc, _, []) ->
      {finalize_index_stats(Acc), []};
  do_aggregate_index_bucket_stats(Service, Acc, Bucket,
                                  [{{Bucket, Index, Name}, V} | Rest]) ->
      Global = Service:global_index_stat(Name),
      PerIndex = Service:per_index_stat(Index, Name),
  
      Acc1 =
          case lists:keyfind(Global, 1, Acc) of
  
negative.code:                 not_found ->
                      undefined;
                  _ ->
                      {Type, {Bucket, Item, Metric}}
              end;
          _ ->
              undefined
  