Made the MetricAggregator constructor take an optional instanceId.