added buffered data collector for send metrics

Should you check to see if it ends in a newline first?