insert a batch of metrics instead of one at a time