2 Commits

Author SHA1 Message Date
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
de44cc180a I messed up a commit and accidentally replaced the interface plugin with the gateway plugin.
I've since merged the two plugins since they are so similar.
2021-05-01 13:10:34 -04:00