{% extends "base.html.twig" %} {% block title %}Traffic Calculation{% endblock %} {% block body %}
There are two ways available how the data traffic sent by and received by a device or a group of devices over a period of time can be calculated and visualized.
Grafana is a software for interactive visualization of data. If Grafana integration has been enabled for your DWARFG_LONG deployment, you should have the free edition of Grafana installed and configured and the Traffic Counter dashboard imported into Grafana. Also, the Traffic Counter page in DWARFG_LONG UI will redirect you on the dashboard automatically.
To login into Grafana use:
Once in Traffic Counter dashboard, you are able to select either of any Monitoring Group or any single device. You can also select the range you are interested in.
The dashboard shows daily traffic of the selected Monitoring Group and single device over a period of time, together with the sums for Received, Transmitted and Total traffic for the selected group and device.
The graphs and sums are provided separately for:
If you need to set which interfaces on your device are of cellular nature and which not, please visit Network Interfaces table in Device details. Update the settings by checking (or unchecking) the Cellular checkbox for the network interfaces reported by the device and do not forget to click Update Settings button below the interfaces table. The changes in network interface type are immediately reflected in data though you may want to hit Refresh button to force Grafana to reread the updated data from the database.
If you are interested in reviewing daily traffic or seeing counters for all of your devices, simply select the All devices monitoring group, as that encompasses all devices all the time.
The traffic counters are stored in the database once per day and kept there for around 120 days. If you want to go further in the past, you need to create another Grafana dashboard for that, based around netdevs_monthly_traffic in database (as opposed to the Traffic Counter dashboard that takes the data from the netdevs_daily_traffic). Naturally, the granularity of the data there are one entry per device network interface per month.
Devices are organized into Monitoring groups. You are able to calculate traffic for a monitoring group. To calculate traffic for all devices, use All devices monitoring group.
Calulation of the devices traffic can be done on the server by executing the dwarfg_trafcnt command as server admin.
The dwarfg_trafcnt command shows help if run without parameters. The following description is for reference only.
You need to specify a few options to the command: