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
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!
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
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
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.