Generalized aggregating metric adapter.