How to collect stream characteristics

Hello everyone.I want to collect the characteristics of each stream in registers on the data plane. The characteristics of each stream include quintuples and sizes. And read in the control plane and save in csv file as data set. What can I do? Thank you very much.