add UDM temp and UAP switch ports

This commit is contained in:
davidnewhall2 2020-06-14 02:49:07 -07:00
parent 273883149c
commit 6ac443d4a2
1 changed files with 555 additions and 36 deletions

View File

@ -53,7 +53,7 @@
"gnetId": 10417,
"graphTooltip": 1,
"id": null,
"iteration": 1592125489578,
"iteration": 1592125489597,
"links": [
{
"asDropdown": true,
@ -481,7 +481,7 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"h": 10,
"w": 17,
"x": 0,
"y": 7
@ -598,6 +598,7 @@
"type": "fill"
}
],
"hide": true,
"measurement": "usw",
"orderByTime": "ASC",
"policy": "default",
@ -636,6 +637,61 @@
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name Temperature C",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "udm",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"temp_Local_board"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
}
],
"thresholds": [],
@ -658,6 +714,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1189",
"decimals": 1,
"format": "celsius",
"label": "Celcius",
@ -667,6 +724,7 @@
"show": true
},
{
"$$hashKey": "object:1190",
"decimals": null,
"format": "fahrenheit",
"label": "Farenheit",
@ -699,7 +757,7 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"h": 10,
"w": 7,
"x": 17,
"y": 7
@ -792,6 +850,128 @@
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "uap",
"orderByTime": "ASC",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"mem"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Total"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "udm",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"mem"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Total"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
}
],
"thresholds": [],
@ -814,6 +994,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1330",
"decimals": 0,
"format": "percent",
"label": "",
@ -823,6 +1004,7 @@
"show": true
},
{
"$$hashKey": "object:1331",
"format": "short",
"label": null,
"logBase": 1,
@ -858,10 +1040,10 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"h": 11,
"w": 17,
"x": 0,
"y": 14
"y": 17
},
"hiddenSeries": false,
"id": 1150,
@ -951,7 +1133,7 @@
[
{
"params": [
"loadavg_5"
"loadavg_15"
],
"type": "field"
},
@ -961,11 +1143,115 @@
},
{
"params": [
"Load 5"
"Load 15"
],
"type": "alias"
}
],
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "uap",
"orderByTime": "ASC",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"loadavg_15"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Load 15"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "udm",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
@ -1020,6 +1306,7 @@
},
"yaxes": [
{
"$$hashKey": "object:355",
"decimals": null,
"format": "short",
"label": null,
@ -1029,6 +1316,7 @@
"show": true
},
{
"$$hashKey": "object:356",
"format": "short",
"label": null,
"logBase": 1,
@ -1060,10 +1348,10 @@
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"h": 11,
"w": 7,
"x": 17,
"y": 14
"y": 17
},
"hiddenSeries": false,
"id": 1169,
@ -1153,6 +1441,128 @@
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "uap",
"orderByTime": "ASC",
"policy": "default",
"refId": "B",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cpu"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU %"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
},
{
"alias": "$tag_name $col",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"name"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"measurement": "udm",
"orderByTime": "ASC",
"policy": "default",
"refId": "C",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"cpu"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU %"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "site_name",
"operator": "=~",
"value": "/^$Site$/"
},
{
"condition": "AND",
"key": "name",
"operator": "=~",
"value": "/^$Switch$/"
}
]
}
],
"thresholds": [],
@ -1175,6 +1585,7 @@
},
"yaxes": [
{
"$$hashKey": "object:1812",
"decimals": null,
"format": "percent",
"label": "CPU %",
@ -1184,6 +1595,7 @@
"show": true
},
{
"$$hashKey": "object:1813",
"format": "short",
"label": null,
"logBase": 1,
@ -1216,7 +1628,7 @@
"h": 17,
"w": 24,
"x": 0,
"y": 22
"y": 28
},
"hiddenSeries": false,
"id": 135,
@ -1373,6 +1785,7 @@
},
"yaxes": [
{
"$$hashKey": "object:2225",
"format": "Bps",
"label": "Bytes Per Second",
"logBase": 1,
@ -1381,6 +1794,7 @@
"show": true
},
{
"$$hashKey": "object:2226",
"format": "short",
"label": null,
"logBase": 1,
@ -1409,7 +1823,7 @@
"h": 21,
"w": 24,
"x": 0,
"y": 39
"y": 45
},
"id": 214,
"links": [],
@ -1959,7 +2373,7 @@
"h": 1,
"w": 24,
"x": 0,
"y": 60
"y": 66
},
"id": 4,
"panels": [
@ -1967,20 +2381,27 @@
"columns": [],
"datasource": "${DS_UNIFI_POLLER}",
"description": "If you do not see data here, the port is probably not up!",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "90%",
"gridPos": {
"h": 3,
"w": 24,
"x": 0,
"y": 2
"y": 61
},
"id": 291,
"links": [],
"options": {},
"pageSize": null,
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"scroll": true,
@ -2438,13 +2859,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Shows data transfer rate per second for Switch $Port. TX on positive axis and RX on negative axis.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 5
"y": 64
},
"hiddenSeries": false,
"id": 1396,
@ -2472,7 +2899,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [
@ -2631,13 +3060,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Shows broadcast and multicast packets per second for Switch $Port. TX on positive axis and RX on negative axis.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 14
"y": 73
},
"hiddenSeries": false,
"id": 594,
@ -2665,7 +3100,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [
@ -2849,13 +3286,19 @@
"datasource": "${DS_UNIFI_POLLER}",
"decimals": 0,
"description": "Shows errors and dropped packets for Switch $Port. RX on negative axis.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 14
"y": 73
},
"hiddenSeries": false,
"id": 367,
@ -2883,7 +3326,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [
@ -3091,13 +3536,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Shows packet counters for Switch $Port. TX on positive axis and RX on negative axis.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 21
"y": 80
},
"hiddenSeries": false,
"id": 468,
@ -3125,7 +3576,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [
@ -3284,13 +3737,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Display POE Power for Switch $Port.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 4,
"x": 12,
"y": 21
"y": 80
},
"hiddenSeries": false,
"id": 745,
@ -3318,7 +3777,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [],
@ -3436,13 +3897,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Display POE Voltage for Switch $Port.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 4,
"x": 16,
"y": 21
"y": 80
},
"hiddenSeries": false,
"id": 921,
@ -3470,7 +3937,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [],
@ -3588,13 +4057,19 @@
"dashes": false,
"datasource": "${DS_UNIFI_POLLER}",
"description": "Display POE Current for Switch $Port.",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 4,
"x": 20,
"y": 21
"y": 80
},
"hiddenSeries": false,
"id": 922,
@ -3622,7 +4097,9 @@
"renderer": "flot",
"scopedVars": {
"Port": {
"selected": false
"selected": false,
"text": "switch Port 1",
"value": "switch Port 1"
}
},
"seriesOverrides": [],
@ -3775,14 +4252,14 @@
"allValue": "",
"current": {},
"datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/",
"definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "Site",
"options": [],
"query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/",
"query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -3793,18 +4270,60 @@
"type": "query",
"useTags": false
},
{
"allValue": ".*",
"current": {
"selected": true,
"tags": [],
"text": "All",
"value": [
"$__all"
]
},
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "Devices",
"options": [
{
"selected": true,
"text": "All",
"value": "$__all"
},
{
"selected": false,
"text": "uap",
"value": "uap"
},
{
"selected": false,
"text": "udm",
"value": "udm"
},
{
"selected": false,
"text": "usw",
"value": "usw"
}
],
"query": "uap,udm,usw",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"allValue": "",
"current": {},
"datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/",
"definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/ AND type=~/^$Devices$/",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "Switch",
"options": [],
"query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/",
"query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/ AND type=~/^$Devices$/",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@ -3869,5 +4388,5 @@
"timezone": "browser",
"title": "UniFi-Poller: USW Insights - InfluxDB",
"uid": "HIKZ98GZz",
"version": 18
}
"version": 19
}