VictorRobellini / pfSense-Dashboard

A functional and useful dashboard for pfSense that utilizes influxdb, grafana and telegraf
671 stars 187 forks source link

Interface Bandwitdth in MBit/s #40

Closed TonyBostonTB closed 2 years ago

TonyBostonTB commented 3 years ago

Hey Victor, first of all, thanks for all the work here, really appreciated!

Can you give me a hint on how to display all the bandwidth in MBit/s instead of MB/s? Our monitoring and also the pfSense Traffic Stats display MBit/s so it is kinda disturbing when Grafan displays everything in MB/s/

EDIT:

SELECT 8 * derivative(mean("bytes_recv"), 1s) AS "Bits_Recv", 8 * derivative(mean("bytes_sent"), 1s) AS "Bits_Sent" FROM "net" WHERE ("host" =~ /^$Host$/ AND "interface" =~ /^$WAN$/) AND $timeFilter GROUP BY time(10s), "interface" fill(none) This would answer my question I think but I'm confused with wether its IEC or SI Units there.

Cheers

VictorRobellini commented 2 years ago

Sorry for the delay. The dashboard should show both bytes and bits per second. If you want to swap around what get shown on which graph, just copy and paste. The SI units is new to me. As far as I know:

SI = 1000 (whatever your unit) IEC = 1024 (whatever your unit)

If you are trying to get similar results to your other monitoring tools, you will want to figure out what they are using.