Batching up metrics to write.