araobp / nlan

Interactive SDN/IOT with tega db and Jupyter/IPython
11 stars 3 forks source link

stats agent #14

Closed araobp closed 8 years ago

araobp commented 8 years ago

Is it possible to collect stats info from netlink?

I don't like screen-scraping.

Let's investigate if this is useful for stats: https://github.com/milosgajdos83/tenus

My plan is to make the agent collect stats and put it onto nlan.stats. tree (ephemeral).

Example:

nlan.stats.ce1.interfaces
nlan.stats.ce1.interface.eth0.address
         :

Or make the agent work as micro functions and collect stats on demand. Example:

nlan.stats.ce1.interfaces()
nlan.stats.ce1.interface.eth0.address()
         :
araobp commented 8 years ago

https://github.com/araobp/nlan/blob/master/util/netstat.go https://github.com/araobp/nlan/blob/master/util/netlink.go