send metrics in batches