ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.19k stars 649 forks source link

Implement Ingress/Egress Stats #1452

Closed lucaderi closed 5 years ago

lucaderi commented 7 years ago

The EthStats has been updated and it can now provide ingress and egress stats (in addition to accumulate stats as it has always been).

For interfaces that support traffic directions it is requested to report this information in the GUI and create RRDs for the directions.

Moreover it would be nice to rethink for such interfaces the footer graph/stats to report RX/TX info.

emanuele-f commented 5 years ago

Linked to #1114.

Right now the interface timeseries data has only 1 column, bytes. In order to preserve existing data, we could rename the column bytes to bytes_rcvd and assume rx if interface has no direction. Renaming in InfluxDB requires duplicating data into a new table. In RRD, the rrd_tune api could be used (similar to https://oss.oetiker.ch/rrdtool/doc/rrdtune.en.html).

Moreover, we must decide if we want to support both the gui visualizations for bytes only and bytes_sent+bytes_rcvd, e.g. if the interface chart should show "bytes" if the given interface does not support rx/rx directions. The change affects other gui elements, for example the traffic reports.

simonemainardi commented 5 years ago

to avoid breaking things or doing migrations: