VictorRobellini / pfSense-Dashboard

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

Suggestion RTT milliseconds #41

Closed faandg closed 3 years ago

faandg commented 3 years ago

So I've been using your dashboard for some time now and I've seen a couple of comments about people saying gateway RTT is off by a factor of 100. On the last iteration I ran into the issue myself and implemented the same fix (*100) in the old python version telegraf_gateways-3.7.py. I'm afraid I don't php properly and I am unsure where to add this fix in the new version (telegraf_pfifgw.php).

Perhaps we can implement a more permanent fix in your php script because I found out that the stats are always off on specific types of gateways. WAN gateway: ms IPSEC VPN gateway: ms OpenVPN gateway: needs 100 Wireguard VPN gateway: needs 100 I currently don't have an L2TP tunnel, so that one I don't know :( If I had to guess, ms. Would be nice if someone can confirm this.

This goes for min/max/avg/current on the dashboard: image

It could either be fixed on the intake (telegraf_pfifgw.php) or on the dashboard side (query). I'd prefer changing it on the intake, so the data is also similarly formatted in influxdb.

Thoughts?

faandg commented 3 years ago

Thought about it some more, going to open a ticket @ pfsense since the UI metrics display the same issues, don't worry about it.