Skip to content

Commit

Permalink
adds ipv6_prefix and ipv6_prefix_length to system dashboard #91
Browse files Browse the repository at this point in the history
  • Loading branch information
bb-Ricardo committed Jan 23, 2023
1 parent 3f55580 commit 6363611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fritzinfluxdb/classes/fritzbox/service_definitions/tr069.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"NewConnectionStatus": "connection_status:str",
"NewLastConnectionError": "last_connection_error:str",
"NewExternalIPv6Address": "external_ipv6:str",
"NewIPv6Prefix" : "ipv6_prefix:str",
"NewPrefixLength": "ipv6_prefix_length:str"
"NewIPv6Prefix": "ipv6_prefix:str",
"NewPrefixLength": "ipv6_prefix_length:int"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion grafana/influx2_dashboards/fritzbox_system_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -4304,7 +4304,7 @@
"measurement": "/^$measurement$/",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: v.defaultBucket)\n |> range(start: -1d)\n |> filter(fn: (r) => r._measurement == \"${measurement}\" and r.box == \"${boxtag}\" and\n (\n r._field == \"external_ip\" or\n r._field == \"external_ipv6\" or\n r._field == \"model\" or\n r._field == \"serialnumber\" or\n r._field == \"softwareversion\" or\n r._field == \"last_auth_error\" or\n r._field == \"myfritz_host_name\"\n ) \n )\n |> last()\n |> toString()\n |> drop(columns: [\"box\", \"_measurement\", \"_start\", \"_stop\", \"_time\"])\n |> map(fn: (r) => ({\n r with _field:\n if r._field == \"external_ip\" then \"IPv4\"\n else if r._field == \"external_ipv6\" then \"IPv6\"\n else if r._field == \"model\" then \"Model\"\n else if r._field == \"serialnumber\" then \"Serial\"\n else if r._field == \"softwareversion\" then \"SW Version\"\n else if r._field == \"last_auth_error\" then \"Last Auth Error\"\n else if r._field == \"myfritz_host_name\" then \"MyFritz Hostname\"\n else r._field\n })\n )\n",
"query": "from(bucket: v.defaultBucket)\n |> range(start: -1d)\n |> filter(fn: (r) => r._measurement == \"${measurement}\" and r.box == \"${boxtag}\" and\n (\n r._field == \"external_ip\" or\n r._field == \"external_ipv6\" or\n r._field == \"ipv6_prefix\" or\n r._field == \"ipv6_prefix_length\" or\n r._field == \"model\" or\n r._field == \"serialnumber\" or\n r._field == \"softwareversion\" or\n r._field == \"last_auth_error\" or\n r._field == \"myfritz_host_name\"\n ) \n )\n |> last()\n |> toString()\n |> drop(columns: [\"box\", \"_measurement\", \"_start\", \"_stop\", \"_time\"])\n |> map(fn: (r) => ({\n r with _field:\n if r._field == \"external_ip\" then \"IPv4\"\n else if r._field == \"external_ipv6\" then \"IPv6\"\n else if r._field == \"ipv6_prefix\" then \"IPv6 Prefix\"\n else if r._field == \"ipv6_prefix_length\" then \"IPv6 Prefix Length\"\n else if r._field == \"model\" then \"Model\"\n else if r._field == \"serialnumber\" then \"Serial\"\n else if r._field == \"softwareversion\" then \"SW Version\"\n else if r._field == \"last_auth_error\" then \"Last Auth Error\"\n else if r._field == \"myfritz_host_name\" then \"MyFritz Hostname\"\n else r._field\n })\n )\n",
"refId": "B",
"resultFormat": "table",
"select": [
Expand Down

0 comments on commit 6363611

Please sign in to comment.