You might want to consider sFlow. Any sFlow capable collector should work. The easiest way to configure sFlow is to install the Host sFlow agent (sflow.net <http://sflow.net/>) and enable the ovs {} module.
sFlow offers flexibility when compared to NetFlow/IFIX since packet parsing and flow aggregation is performed by the external sFlow collector and is not limited by the capabilities of the OVS flow cache implementation. Also, take a look at sflowtool (https://github.com/sflow/sflowtool <https://github.com/sflow/sflowtool>) - a useful feature is the ability to convert the sFlow messages to JSON: https://blog.sflow.com/2018/12/sflow-to-json.html <https://blog.sflow.com/2018/12/sflow-to-json.html> It shouldn’t be hard to write a Python script to convert the sFlow into IPDR records (splicing in additional metadata if needed). The code in the above article is a starting point. Depending on the granularity of usage data you are trying to collect, you may also be interested to know that sFlow also streams interface counters for all ports on the vSwitch. > On Oct 23, 2019, at 2:55 PM, Nick Yurchenko <[email protected]> wrote: > > Appending to the question, > I would also need to set custom values for the IPDR. Some of these would be > from the ovs flow registers(f.e reg1), they would somehow need to be added to > the ipfix header, but I'm still researching this subject. If anyone has done > this before I would appreciate any details on how to get this started. > > On Wed, Oct 23, 2019 at 2:30 PM Nick Yurchenko <[email protected] > <mailto:[email protected]>> wrote: > Hi, > > Does anyone have experience using IPFIX or NetFlow? Before starting with > either one I wanted to know if IPFIX(as far as I understand its better and > has more flexibility) would be compatible with most of the shelf collectors? > > Thank you, > Nick > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
