buffer metrics and flush every 100ms