Parse and batch incoming metrics.