28 Commits

Author SHA1 Message Date
VictorRobellini
4b832342d9
Interface Widget
I updated the threshold and value mapping to apply to only the status column
2021-06-19 11:56:42 -04:00
VictorRobellini
33cd4dbbb2
Major Performance Increase - Fixed incorrect DS
https://github.com/influxdata/influxdb/issues/9122

Found out that my subqueries were bogging down my DB.  I adjusted them as recommended in the above issue report.
There were also 2 widgets with hardcoded and incorrect datasources.
2021-05-19 15:26:22 -04:00
mark
2c916e6ad7 added fix to list of gateways. when ipv4 and ipv6 are enabled you need gateway_name as a primary key. changed grafana to group by gateway_name instead of interface. Not sure why there are so many changes having exported the json. perhaps i have a different version of grafana?
I only changed the gateway variable to:
SHOW TAG VALUES FROM "gateways" WITH KEY = "gateway_name" WHERE "host" =~ /^$Host$/

Changed group by on Gateway RTT and Gateway Loss charts to gateway_name

Added gateway_name to Gateway Summary.  Added interface to this list so both gateway_name and interface can be seen.

telegraf --test --config /usr/local/etc/telegraf.conf

before:
> gateways,host=fw.anson.lan,interface=igb0 defaultgw=1,delay=0,gwdescr="Interface WAN_DHCP Gateway",loss=100,monitor="192.168.0.1",source="192.168.0.30",status="down",stddev=0,substatus="highloss" 1620242074000000000
> gateways,host=fw.anson.lan,interface=igb0 defaultgw=0,delay=0,gwdescr="Interface WAN_DHCP6 Gateway",loss=0,monitor="",source="",status="",stddev=0,substatus="N/A" 1620242074000000000

The changes to the telegraf output can be seen below:
telegraf --test --config /usr/local/etc/telegraf.conf

after:
> gateways,gateway_name=WAN_DHCP,host=fw.anson.lan,interface=igb0 defaultgw=1,delay=0,gwdescr="Interface WAN_DHCP Gateway",loss=100,monitor="192.168.0.1",source="192.168.0.30",status="down",stddev=0,substatus="highloss" 1620242589000000000
> gateways,gateway_name=WAN_DHCP6,host=fw.anson.lan,interface=igb0 defaultgw=0,delay=0,gwdescr="Interface WAN_DHCP6 Gateway",loss=0,monitor="",source="",status="",stddev=0,substatus="N/A" 1620242589000000000
2021-05-05 21:14:05 +01:00
Victor Robellini
76c364474b updated queries. Hopefully this fixes the drift between the repo and my system 2021-05-02 14:06:42 -04:00
VictorRobellini
f0fb19b7dd
Added pfBlocker Details Panel
Now more pfBlocker stuff!
2021-04-27 11:01:35 -04:00
VictorRobellini
b28f66a537
Rearranged Gateway graphs
Updated gateway metrics to use new measurement tags/fields
2021-04-26 22:58:58 -04:00
Will Blanton
a5eca2763c Reconfigured title to original name. 2021-04-26 15:14:30 -04:00
Will Blanton
01fac80a2e Added functionality that returns the status of the gateways in addtion to loss/rtt/rttsd 2021-04-22 14:58:05 -04:00
VictorRobellini
158a63b51e
Multi WAN - WAN Repeating Options were wrong
Fixed WAN widgets so the whole panel repeats and not just a few widgets.
2021-03-19 11:47:44 -04:00
Victor Robellini
c7acccf63a updated tables to grafana7 2021-03-06 16:11:53 -05:00
Victor Robellini
6071cc28cf Added adjusted for addition of ipv6 data - It's not displayed since I don't have any, but it's in there 2021-03-06 15:58:32 -05:00
Victor Robellini
8583dda3c0 Updated pfBlocker measurement names 2021-03-06 13:29:17 -05:00
Victor Robellini
118b5fccaf Updated Screenshot
Update pfBlocker graphs

I updated the telegraf config to utilize tail rather than the soon to be phased out logparser input. As a result, i'm using new measurements for IP and DNS stats.
I'm ok with clearing these stats, but if you prefer, you can use/copy the graphs from this commit:
0df1017250/pfSense-Grafana-Dashboard.json

I updated the field names to reflect what's being written in the pfBlocker logs (as best as possible)
232722ac52/net/pfSense-pkg-pfBlockerNG-devel/files/usr/local/pkg/pfblockerng/pfblockerng.inc (L4597)
2021-03-05 23:13:23 -05:00
VictorRobellini
2853b5c3eb
Cleaning up Grafana Cruft
Grafana keeps raw queries in the json and it was bugging me.  If the raw query isn't displayed, why save it?  Why not strip it on export for external use?  Also, my interfaces were embedded in the json.  No security risk, but it bugged me.  This is supposed to be templated for external use!
2021-03-04 21:07:16 -05:00
VictorRobellini
58513af7de
Cleaning up Grafana cruft
Weird stuff leftover in the dashboard that shouldn't impact anything.
2021-03-04 20:49:05 -05:00
Victor Robellini
d8fbc2c68f More typos 2021-03-04 19:18:01 -05:00
Victor Robellini
0982485d81 typo in dashboard 2021-03-04 19:07:49 -05:00
Victor Robellini
520eea4f49 Upgraded to Grafana 7
Upgraded to influx 1.8

Merged queries in most graphs
Added Usage by month: ab5g https://forum.netgate.com/post/954800
Gatway loss: Condoamanti https://github.com/VictorRobellini/pfSense-Dashboard/pull/22

Changed lots of graphs around. I tinkered with other types of graphs but I stuck with the standard graph format so that I could view trends and spikes over a time period.
I added interface information to each interface section - friendlyname - I would love to add it to the header, but I don't know how.

More changes than I can remember
2021-03-04 18:39:05 -05:00
Victor Robellini
b17d57584b Changed most of the BW charts to base10
Changed the RTT graph to include null (I was having internet issues and they weren't being reported correctly)
Added Bits/sec
Might be a little more.  It's been awhile
2020-08-13 01:20:46 -04:00
Victor Robellini
e75eb5a3b2 Revert "Merge pull request #7 from tiny6996/master"
Dashboard doesn't load poperly.  Queries are empty.  Possible export issue.  Need to re-evaluate request

This reverts commit a367c8cb07ce08693ac5a1ba9ee64a175cb9c4a1, reversing
changes made to 312be1f6e8b0ba77c6ddfde243d67e892f18ac3c.
2020-05-20 09:40:02 -04:00
tiny6996
765bc45c49
updated fields to match tail names 2020-05-19 23:31:24 -05:00
tiny6996
ffae939452
set wan interface as variable and changed names for pfblocker 2020-05-18 22:05:54 -05:00
Victor Robellini
19459b3a37 I just now realized that I can scale everythin to 100% of the screen. Sorry, I was working on an ultrawide monitor and it looked weird at first.
I filled in the gaps with some additinoal data.

I also changed the pps to show 1s rather than 10s thanks to setiseta

https://github.com/VictorRobellini/pfSense-Dashboard/issues/3
2020-05-03 13:37:22 -04:00
Victor Robellini
de5b45ff9b Fixed values in pfBlocker - DNS Chart
Set total to use locale formatting
Added 2 decimal spaces to the percent
2020-04-11 15:20:21 -04:00
Victor Robellini
40a3abcd1c Setup the single stat widgets to use locale format so number are formatted properly. 2020-04-06 20:27:12 -04:00
Victor Robellini
ff885cb4d0 Changed bandwidth graphs from linear to log(2) 2020-04-04 19:16:19 -04:00
Victor Robellini
e1b07e3995 Renamed status column on interface table.
- The updated screenshot is going to have to wait
2020-04-04 00:31:53 -04:00
Victor Robellini
72f23ad14f Cleaned up the network interface widget 2020-04-04 00:26:05 -04:00