diff --git a/examples/unifi-clients-grafana-dash.json b/examples/unifi-clients-grafana-dash.json
index 46f205dd..9b9aa693 100644
--- a/examples/unifi-clients-grafana-dash.json
+++ b/examples/unifi-clients-grafana-dash.json
@@ -64,8 +64,18 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
- "iteration": 1559859351362,
- "links": [],
+ "iteration": 1559898655544,
+ "links": [
+ {
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "unifi"
+ ],
+ "type": "dashboards"
+ }
+ ],
"panels": [
{
"columns": [],
@@ -106,10 +116,92 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
- "decimals": 2,
- "pattern": "/.*/",
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": null,
+ "mappingType": 1,
+ "pattern": "/Bytes$/",
"thresholds": [],
"type": "number",
+ "unit": "decbytes"
+ },
+ {
+ "alias": "Name",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "name",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "AP",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "ap_mac",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Chan",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "channel",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Device MAC",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "mac",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Radio",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "radio",
+ "thresholds": [],
+ "type": "string",
"unit": "short"
}
],
@@ -122,12 +214,6 @@
],
"type": "tag"
},
- {
- "params": [
- "oui"
- ],
- "type": "tag"
- },
{
"params": [
"channel"
@@ -214,6 +300,42 @@
],
"type": "alias"
}
+ ],
+ [
+ {
+ "params": [
+ "rx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Total RX Bytes"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Total TX Bytes"
+ ],
+ "type": "alias"
+ }
]
],
"tags": [
@@ -279,6 +401,69 @@
"pattern": "Time",
"type": "hidden"
},
+ {
+ "alias": "Sw Port",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "decimals": 0,
+ "pattern": "sw_port",
+ "thresholds": [],
+ "type": "number",
+ "unit": "short"
+ },
+ {
+ "alias": "Fixed IP",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "use_fixedip",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Name",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "name",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Device MAC",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "link": false,
+ "mappingType": 1,
+ "pattern": "mac",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
{
"alias": "",
"colorMode": null,
@@ -287,11 +472,13 @@
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
- "decimals": 2,
- "pattern": "/.*/",
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": null,
+ "mappingType": 1,
+ "pattern": "/Bytes$/",
"thresholds": [],
"type": "number",
- "unit": "short"
+ "unit": "decbytes"
}
],
"targets": [
@@ -309,12 +496,6 @@
],
"type": "tag"
},
- {
- "params": [
- "oui"
- ],
- "type": "tag"
- },
{
"params": [
"use_fixedip"
@@ -332,7 +513,7 @@
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" != 'false' AND \"name\" =~ /^$Client$/ AND \"site_name\" =~ /$Site$/) AND $timeFilter GROUP BY \"sw_port\", \"mac\", \"oui\", \"use_fixedip\", \"name\"",
- "rawQuery": true,
+ "rawQuery": false,
"refId": "A",
"resultFormat": "table",
"select": [
@@ -389,6 +570,42 @@
],
"type": "alias"
}
+ ],
+ [
+ {
+ "params": [
+ "rx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Total RX Bytes"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Total TX Bytes"
+ ],
+ "type": "alias"
+ }
]
],
"tags": [
@@ -421,7 +638,7 @@
},
"datasource": "${DS_UNIFI}",
"decimals": 0,
- "description": "",
+ "description": "Visualize wireless channel usage w/ wired client counts.",
"fontSize": "70%",
"format": "short",
"gridPos": {
@@ -540,7 +757,7 @@
},
"datasource": "${DS_UNIFI}",
"decimals": 0,
- "description": "",
+ "description": "Visualize how many clients are connected to which radios/APs.",
"fontSize": "70%",
"format": "short",
"gridPos": {
@@ -622,7 +839,7 @@
},
"datasource": "${DS_UNIFI}",
"decimals": 0,
- "description": "",
+ "description": "This shows an OUI breakdown from Unifi's perspective. The prefix w means wireless client and e means ethernet (wired) client.",
"fontSize": "70%",
"format": "short",
"gridPos": {
@@ -743,7 +960,7 @@
},
"datasource": "${DS_UNIFI}",
"decimals": 0,
- "description": "",
+ "description": "No real idea what these numbers are, but Unifi provides them, so I made a cool pie chart out of them. What's your pie chart look like?",
"fontSize": "70%",
"format": "short",
"gridPos": {
@@ -820,7 +1037,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Bandwidth usage per wireless devices as reported by the UAPs. Does not include amazon devices.",
+ "description": "Bandwidth usage per wireless devices as reported by the UAPs. Rx is on the negative axis. Does not include amazon devices.",
"fill": 1,
"gridPos": {
"h": 7,
@@ -851,7 +1068,12 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -861,7 +1083,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -901,7 +1123,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -925,7 +1147,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -938,8 +1160,8 @@
"tags": [
{
"key": "is_wired",
- "operator": "=",
- "value": "false"
+ "operator": "!=",
+ "value": "true"
},
{
"condition": "AND",
@@ -989,7 +1211,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / sec",
"logBase": 1,
"max": null,
"min": null,
@@ -1015,7 +1237,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Cameras TX / RX bytes per second (calculated in 1 minute buckets).",
+ "description": "Cameras TX / RX bytes per second. Rx is on the negative axis. Cameras probably don't do much Tx. If you don't have cameras, don't include this graph on your dashboards.",
"fill": 0,
"gridPos": {
"h": 7,
@@ -1046,7 +1268,12 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
@@ -1056,7 +1283,7 @@
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -1096,7 +1323,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1120,7 +1347,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1166,7 +1393,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / sec",
"logBase": 1,
"max": null,
"min": null,
@@ -1192,7 +1419,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Amazon Devices TX / RX bytes per second (calculated in 30 second buckets).",
+ "description": "Amazon Devices TX / RX bytes per second (calculated in 30 second buckets). Rx is on the native axis. My home network has a ton of Amazon devices, so I broke them out separately. If you don't have Amazon devices, don't fret, just don't include this graph in the new dashboards you're building. :)",
"fill": 0,
"gridPos": {
"h": 9,
@@ -1223,7 +1450,12 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -1233,7 +1465,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -1273,7 +1505,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1297,7 +1529,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1317,7 +1549,7 @@
"condition": "AND",
"key": "is_wired",
"operator": "!=",
- "value": "true"
+ "value": "false"
},
{
"condition": "AND",
@@ -1344,7 +1576,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -1384,7 +1616,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1408,7 +1640,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1428,7 +1660,7 @@
"condition": "AND",
"key": "is_wired",
"operator": "!=",
- "value": "false"
+ "value": "true"
},
{
"condition": "AND",
@@ -1467,7 +1699,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / sec",
"logBase": 1,
"max": null,
"min": null,
@@ -1493,7 +1725,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Wired TX / RX bytes per second (calculated in 30 second buckets). Does not include amazon and camera devices. Unaffected by the AP setting.",
+ "description": "Wired TX / RX bytes per second (calculated in 30 second buckets). Rx is on the negative axis. Does not include amazon and camera devices. Unaffected by the AP setting.",
"fill": 0,
"gridPos": {
"h": 9,
@@ -1524,7 +1756,12 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -1534,7 +1771,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -1574,7 +1811,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1598,7 +1835,7 @@
"params": [
"1s"
],
- "type": "derivative"
+ "type": "non_negative_derivative"
},
{
"params": [
@@ -1657,7 +1894,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / sec",
"logBase": 1,
"max": null,
"min": null,
@@ -2564,7 +2801,9 @@
"refresh": "30s",
"schemaVersion": 18,
"style": "dark",
- "tags": [],
+ "tags": [
+ "unifi"
+ ],
"templating": {
"list": [
{
@@ -2637,7 +2876,7 @@
},
"time": {
"from": "now-3h",
- "to": "now-20s"
+ "to": "now-5s"
},
"timepicker": {
"nowDelay": "20s",
@@ -2662,7 +2901,7 @@
]
},
"timezone": "",
- "title": "Unifi Client Insights",
+ "title": "UniFi Client Insights",
"uid": "YVR23BZiz",
- "version": 48
+ "version": 54
}
\ No newline at end of file
diff --git a/examples/unifi-uap-grafana-dash.json b/examples/unifi-uap-grafana-dash.json
index 3cc3eb96..ae96c10f 100644
--- a/examples/unifi-uap-grafana-dash.json
+++ b/examples/unifi-uap-grafana-dash.json
@@ -71,8 +71,18 @@
"gnetId": 1486,
"graphTooltip": 1,
"id": null,
- "iteration": 1559859372283,
- "links": [],
+ "iteration": 1559898637306,
+ "links": [
+ {
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "unifi"
+ ],
+ "type": "dashboards"
+ }
+ ],
"panels": [
{
"columns": [],
@@ -1292,7 +1302,7 @@
"datasource": "${DS_UNIFI}",
"editable": true,
"error": false,
- "fill": 0,
+ "fill": 1,
"gridPos": {
"h": 8,
"w": 12,
@@ -1306,14 +1316,14 @@
"avg": false,
"current": true,
"max": true,
- "min": true,
+ "min": false,
"show": true,
"sortDesc": true,
"total": false,
"values": true
},
"lines": true,
- "linewidth": 2,
+ "linewidth": 1,
"links": [],
"nullPointMode": "connected",
"options": {},
@@ -1321,7 +1331,14 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [],
+ "seriesOverrides": [
+ {
+ "alias": "/load15$/",
+ "fill": 0,
+ "lines": true,
+ "linewidth": 6
+ }
+ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -1391,6 +1408,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1544,6 +1567,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1637,7 +1666,7 @@
"groupBy": [
{
"params": [
- "$interval"
+ "$__interval"
],
"type": "time"
},
@@ -1684,6 +1713,12 @@
"key": "device_name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1822,6 +1857,12 @@
"key": "radio",
"operator": "=",
"value": "na"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
},
@@ -1872,6 +1913,12 @@
"key": "radio",
"operator": "=",
"value": "ng"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1966,7 +2013,7 @@
"groupBy": [
{
"params": [
- "$interval"
+ "$__interval"
],
"type": "time"
},
@@ -2055,6 +2102,12 @@
"key": "radio",
"operator": "=",
"value": "na"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -2108,6 +2161,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
+ "description": "Displays 2.4GHz usage.",
"editable": true,
"error": false,
"fill": 0,
@@ -2150,7 +2204,7 @@
"groupBy": [
{
"params": [
- "$interval"
+ "$__interval"
],
"type": "time"
},
@@ -2239,6 +2293,12 @@
"key": "radio",
"operator": "=",
"value": "ng"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -2291,6 +2351,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
+ "description": "I don't recall why I did *8 on this. The data here may not be entirely accurate?",
"editable": true,
"error": false,
"fill": 1,
@@ -2340,7 +2401,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -2435,6 +2496,12 @@
"key": "radio",
"operator": "=",
"value": "na"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -2536,7 +2603,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -2631,6 +2698,12 @@
"key": "radio",
"operator": "=",
"value": "ng"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -2684,7 +2757,7 @@
"dashes": false,
"datasource": "${DS_UNIFI}",
"decimals": 0,
- "description": "PPS on the na band calculated in 30 second buckets.",
+ "description": "PPS on the na band.",
"editable": true,
"error": false,
"fill": 1,
@@ -2732,7 +2805,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -2815,6 +2888,12 @@
"key": "radio",
"operator": "=",
"value": "na"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -2919,7 +2998,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -3002,6 +3081,12 @@
"key": "radio",
"operator": "=",
"value": "ng"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -3056,6 +3141,7 @@
"dashes": false,
"datasource": "${DS_UNIFI}",
"decimals": 0,
+ "description": "Visualize packet errors (several types) per second in the 5GHz band.",
"editable": true,
"error": false,
"fill": 1,
@@ -3105,7 +3191,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -3314,6 +3400,12 @@
"key": "radio",
"operator": "=",
"value": "na"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -3417,7 +3509,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -3620,6 +3712,12 @@
"key": "radio",
"operator": "=",
"value": "ng"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -3671,7 +3769,10 @@
"refresh": "30s",
"schemaVersion": 18,
"style": "dark",
- "tags": [],
+ "tags": [
+ "unifi",
+ "uap"
+ ],
"templating": {
"list": [
{
@@ -3738,8 +3839,8 @@
]
},
"time": {
- "from": "now-2h",
- "to": "now"
+ "from": "now-3h",
+ "to": "now-5s"
},
"timepicker": {
"nowDelay": "5s",
@@ -3767,5 +3868,5 @@
"timezone": "browser",
"title": "UniFi UAP Insights",
"uid": "8nQ_RPZiz",
- "version": 37
+ "version": 42
}
\ No newline at end of file
diff --git a/examples/unifi-usg-grafana-dash.json b/examples/unifi-usg-grafana-dash.json
index 6d64c56d..abc4b953 100644
--- a/examples/unifi-usg-grafana-dash.json
+++ b/examples/unifi-usg-grafana-dash.json
@@ -70,10 +70,20 @@
"description": "",
"editable": true,
"gnetId": 1486,
- "graphTooltip": 1,
+ "graphTooltip": 2,
"id": null,
- "iteration": 1559859384864,
- "links": [],
+ "iteration": 1559898661329,
+ "links": [
+ {
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "unifi"
+ ],
+ "type": "dashboards"
+ }
+ ],
"panels": [
{
"content": "
\n
Unifi USG\n",
@@ -640,6 +650,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -749,6 +765,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1448,6 +1470,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1603,6 +1631,12 @@
"key": "name",
"operator": "=~",
"value": "/^$host$/"
+ },
+ {
+ "condition": "AND",
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
}
]
}
@@ -1662,12 +1696,7 @@
"pointradius": 5,
"points": false,
"renderer": "flot",
- "seriesOverrides": [
- {
- "alias": "/In$/",
- "color": "#806eb7"
- }
- ],
+ "seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
@@ -1678,7 +1707,7 @@
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -1762,9 +1791,9 @@
},
"yaxes": [
{
- "decimals": 2,
+ "decimals": null,
"format": "pps",
- "label": null,
+ "label": "packets / second",
"logBase": 1,
"max": null,
"min": null,
@@ -2548,7 +2577,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Spikes on this graph that are missing from the LAN graph indicate gateway-originated traffic, like a scheduled speed test.",
+ "description": "Spikes on this graph that are missing from the LAN graph indicate gateway-originated traffic, like a scheduled speed test. Rx is on the negative axis.",
"editable": true,
"error": false,
"fill": 1,
@@ -2565,7 +2594,7 @@
"avg": false,
"current": true,
"max": true,
- "min": true,
+ "min": false,
"show": true,
"sortDesc": true,
"total": false,
@@ -2583,12 +2612,7 @@
"seriesOverrides": [
{
"alias": "/Rx$/",
- "color": "#7eb26d",
"transform": "negative-Y"
- },
- {
- "alias": "/Tx$/",
- "color": "#052b51"
}
],
"spaceLength": 10,
@@ -2601,7 +2625,7 @@
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -2705,7 +2729,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / second",
"logBase": 1,
"max": null,
"min": null,
@@ -2731,7 +2755,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "description": "Spikes on this graph that do not appear on the WAN graph indicate inter-VLAN-routing.",
+ "description": "Spikes on this graph that do not appear on the WAN graph indicate inter-VLAN-routing. Rx is on the negative axis.",
"editable": true,
"error": false,
"fill": 1,
@@ -2748,7 +2772,7 @@
"avg": false,
"current": true,
"max": true,
- "min": true,
+ "min": false,
"show": true,
"sortDesc": true,
"total": false,
@@ -2766,12 +2790,7 @@
"seriesOverrides": [
{
"alias": "/Rx$/",
- "color": "#584477",
"transform": "negative-Y"
- },
- {
- "alias": "/Tx$/",
- "color": "#ba43a9"
}
],
"spaceLength": 10,
@@ -2784,7 +2803,7 @@
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -2888,7 +2907,7 @@
"yaxes": [
{
"format": "Bps",
- "label": null,
+ "label": "bytes / second",
"logBase": 1,
"max": null,
"min": null,
@@ -2914,8 +2933,8 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "decimals": 2,
- "description": "May show problems with your WAN interface.",
+ "decimals": null,
+ "description": "May show problems with your WAN interface. Rx is on the negative axis.",
"editable": true,
"error": false,
"fill": 2,
@@ -2929,7 +2948,7 @@
"isNew": true,
"legend": {
"alignAsTable": true,
- "avg": true,
+ "avg": false,
"current": true,
"max": true,
"min": false,
@@ -2937,7 +2956,7 @@
"show": true,
"sort": null,
"sortDesc": null,
- "total": false,
+ "total": true,
"values": true
},
"lines": true,
@@ -2951,13 +2970,8 @@
"renderer": "flot",
"seriesOverrides": [
{
- "alias": "/:In$/",
- "color": "#890f02",
+ "alias": "/Rx$/",
"transform": "negative-Y"
- },
- {
- "alias": "/Out$/",
- "color": "#ea6460"
}
],
"spaceLength": 10,
@@ -2970,7 +2984,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -3012,7 +3026,7 @@
},
{
"params": [
- "Error:In"
+ "Error Rx"
],
"type": "alias"
}
@@ -3036,7 +3050,7 @@
},
{
"params": [
- "Error:Out"
+ "Error Tx"
],
"type": "alias"
}
@@ -3078,9 +3092,9 @@
},
"yaxes": [
{
- "decimals": 1,
+ "decimals": null,
"format": "pps",
- "label": null,
+ "label": "packets / second",
"logBase": 1,
"max": null,
"min": null,
@@ -3106,8 +3120,8 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "decimals": 2,
- "description": "May show problems with your WAN interface.",
+ "decimals": null,
+ "description": "May show problems with your WAN interface. Rx on negative axis.",
"editable": true,
"error": false,
"fill": 2,
@@ -3121,7 +3135,7 @@
"isNew": true,
"legend": {
"alignAsTable": true,
- "avg": true,
+ "avg": false,
"current": true,
"max": true,
"min": false,
@@ -3129,7 +3143,7 @@
"show": true,
"sort": null,
"sortDesc": null,
- "total": false,
+ "total": true,
"values": true
},
"lines": true,
@@ -3143,13 +3157,8 @@
"renderer": "flot",
"seriesOverrides": [
{
- "alias": "/:In$/",
- "color": "#890f02",
+ "alias": "/:Rx$/",
"transform": "negative-Y"
- },
- {
- "alias": "/Out$/",
- "color": "#ea6460"
}
],
"spaceLength": 10,
@@ -3162,7 +3171,7 @@
"groupBy": [
{
"params": [
- "30s"
+ "$__interval"
],
"type": "time"
},
@@ -3204,7 +3213,7 @@
},
{
"params": [
- "Drop:In"
+ "Drop Rx"
],
"type": "alias"
}
@@ -3228,7 +3237,7 @@
},
{
"params": [
- "Drop:Out"
+ "Drop Tx"
],
"type": "alias"
}
@@ -3270,9 +3279,9 @@
},
"yaxes": [
{
- "decimals": 1,
+ "decimals": null,
"format": "pps",
- "label": null,
+ "label": "packets / second",
"logBase": 1,
"max": null,
"min": null,
@@ -3298,8 +3307,8 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "decimals": 0,
- "description": "PPS on the WAN interface, calculated in 30 second buckets.",
+ "decimals": null,
+ "description": "PPS on the WAN interface. Rx is on the negative axis.",
"editable": true,
"error": false,
"fill": 1,
@@ -3335,13 +3344,8 @@
"renderer": "flot",
"seriesOverrides": [
{
- "alias": "/:In$/",
- "color": "#f9d9f9",
+ "alias": "/Rx$/",
"transform": "negative-Y"
- },
- {
- "alias": "/Out$/",
- "color": "#0a437c"
}
],
"spaceLength": 10,
@@ -3349,12 +3353,12 @@
"steppedLine": false,
"targets": [
{
- "alias": "$tag_name:$col",
+ "alias": "$tag_name $col",
"dsType": "influxdb",
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -3396,7 +3400,7 @@
},
{
"params": [
- "In"
+ "Rx"
],
"type": "alias"
}
@@ -3420,7 +3424,7 @@
},
{
"params": [
- "Out"
+ "Tx"
],
"type": "alias"
}
@@ -3463,9 +3467,9 @@
},
"yaxes": [
{
- "decimals": 1,
+ "decimals": null,
"format": "pps",
- "label": null,
+ "label": "packets / second",
"logBase": 1,
"max": null,
"min": null,
@@ -3491,8 +3495,8 @@
"dashLength": 10,
"dashes": false,
"datasource": "${DS_UNIFI}",
- "decimals": 0,
- "description": "PPS on the LAN interface, calculated in 30 second buckets.",
+ "decimals": null,
+ "description": "PPS on the LAN interface. Rx is on the negative axis.",
"editable": true,
"error": false,
"fill": 1,
@@ -3528,13 +3532,8 @@
"renderer": "flot",
"seriesOverrides": [
{
- "alias": "/:In$/",
- "color": "#2f575e",
+ "alias": "/Tx$/",
"transform": "negative-Y"
- },
- {
- "alias": "/Out$/",
- "color": "#806eb7"
}
],
"spaceLength": 10,
@@ -3542,12 +3541,12 @@
"steppedLine": false,
"targets": [
{
- "alias": "$tag_name:$col",
+ "alias": "$tag_name $col",
"dsType": "influxdb",
"groupBy": [
{
"params": [
- "1m"
+ "$__interval"
],
"type": "time"
},
@@ -3589,7 +3588,7 @@
},
{
"params": [
- "In"
+ "Rx"
],
"type": "alias"
}
@@ -3613,7 +3612,7 @@
},
{
"params": [
- "Out"
+ "Tx"
],
"type": "alias"
}
@@ -3656,9 +3655,9 @@
},
"yaxes": [
{
- "decimals": 1,
+ "decimals": null,
"format": "pps",
- "label": null,
+ "label": "packets / second",
"logBase": 1,
"max": null,
"min": null,
@@ -3682,7 +3681,10 @@
"refresh": "30s",
"schemaVersion": 18,
"style": "dark",
- "tags": [],
+ "tags": [
+ "unifi",
+ "usg"
+ ],
"templating": {
"list": [
{
@@ -3732,7 +3734,7 @@
]
},
"time": {
- "from": "now-2h",
+ "from": "now-3h",
"to": "now-5s"
},
"timepicker": {
@@ -3761,5 +3763,5 @@
"timezone": "browser",
"title": "UniFi USG Insights",
"uid": "WX6RJOMik",
- "version": 33
+ "version": 38
}
\ No newline at end of file
diff --git a/examples/unifi-usw-grafana-dash.json b/examples/unifi-usw-grafana-dash.json
index aa49cc46..f221b4ab 100644
--- a/examples/unifi-usw-grafana-dash.json
+++ b/examples/unifi-usw-grafana-dash.json
@@ -53,8 +53,18 @@
"gnetId": null,
"graphTooltip": 1,
"id": null,
- "iteration": 1559862527065,
- "links": [],
+ "iteration": 1559898667753,
+ "links": [
+ {
+ "icon": "external link",
+ "includeVars": true,
+ "keepTime": true,
+ "tags": [
+ "unifi"
+ ],
+ "type": "dashboards"
+ }
+ ],
"panels": [
{
"collapsed": false,
@@ -1471,7 +1481,7 @@
"type": "table"
},
{
- "collapsed": true,
+ "collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
@@ -1479,1895 +1489,1841 @@
"y": 46
},
"id": 4,
- "panels": [
- {
- "columns": [],
- "datasource": "${DS_UNIFI}",
- "fontSize": "90%",
- "gridPos": {
- "h": 3,
- "w": 24,
- "x": 0,
- "y": 2
- },
- "id": 291,
- "links": [],
- "options": {},
- "pageSize": null,
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "scroll": true,
- "showHeader": true,
- "sort": {
- "col": 13,
- "desc": true
- },
- "styles": [
- {
- "alias": "Port Name",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "name",
- "thresholds": [],
- "type": "number",
- "unit": "short"
- },
- {
- "alias": "Enabled",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "link": false,
- "mappingType": 1,
- "pattern": "enable",
- "thresholds": [],
- "type": "string",
- "unit": "short",
- "valueMaps": []
- },
- {
- "alias": "",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "Time",
- "thresholds": [],
- "type": "hidden",
- "unit": "short"
- },
- {
- "alias": "Switch",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "device_name",
- "thresholds": [],
- "type": "number",
- "unit": "short"
- },
- {
- "alias": "POE",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "poe_mode",
- "thresholds": [],
- "type": "string",
- "unit": "short",
- "valueMaps": []
- },
- {
- "alias": "Mode",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "op_mode",
- "thresholds": [
- ""
- ],
- "type": "string",
- "unit": "short"
- },
- {
- "alias": "Up",
- "colorMode": "cell",
- "colors": [
- "rgba(50, 172, 45, 0.97)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(245, 54, 54, 0.9)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "up",
- "thresholds": [
- "0",
- "0"
- ],
- "type": "string",
- "unit": "short",
- "valueMaps": []
- },
- {
- "alias": "Jumbo",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "jumbo",
- "thresholds": [],
- "type": "string",
- "unit": "short"
- },
- {
- "alias": "Masked",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "masked",
- "thresholds": [],
- "type": "string",
- "unit": "short"
- },
- {
- "alias": "STP",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 2,
- "mappingType": 1,
- "pattern": "stp_state",
- "thresholds": [],
- "type": "string",
- "unit": "short"
- },
- {
- "alias": "",
- "colorMode": "cell",
- "colors": [
- "rgba(50, 172, 45, 0)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(245, 54, 54, 0.9)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 0,
- "mappingType": 1,
- "pattern": "/Drops$|Errors$/",
- "thresholds": [
- "10",
- "100"
- ],
- "type": "number",
- "unit": "short"
- },
- {
- "alias": "",
- "colorMode": null,
- "colors": [
- "rgba(245, 54, 54, 0.9)",
- "rgba(237, 129, 40, 0.89)",
- "rgba(50, 172, 45, 0.97)"
- ],
- "dateFormat": "YYYY-MM-DD HH:mm:ss",
- "decimals": 1,
- "mappingType": 1,
- "pattern": "/Bytes$/",
- "thresholds": [],
- "type": "number",
- "unit": "decbytes"
- }
- ],
- "targets": [
- {
- "alias": "$tag_device_name $col",
- "groupBy": [
- {
- "params": [
- "name"
- ],
- "type": "tag"
- },
- {
- "params": [
- "enable"
- ],
- "type": "tag"
- },
- {
- "params": [
- "jumbo"
- ],
- "type": "tag"
- },
- {
- "params": [
- "up"
- ],
- "type": "tag"
- },
- {
- "params": [
- "poe_mode"
- ],
- "type": "tag"
- },
- {
- "params": [
- "masked"
- ],
- "type": "tag"
- },
- {
- "params": [
- "op_mode"
- ],
- "type": "tag"
- },
- {
- "params": [
- "stp_state"
- ],
- "type": "tag"
- },
- {
- "params": [
- "device_name"
- ],
- "type": "tag"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "table",
- "select": [
- [
- {
- "params": [
- "full_duplex"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "FUll Duplex"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "speed"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Speed"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "poe_voltage"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "POE Voltage"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "poe_power"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "POE Power"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_dropped"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Drops"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_dropped"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "TX Drops"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_errors"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Errors"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_errors"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "TX Errors"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Bytes"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "TX Bytes"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_packets"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "TX Packets"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_packets"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Packets"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_broadcast"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Broadcast"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_multicast"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "spread"
- },
- {
- "params": [
- "RX Multicast"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "title": "Switch $Port Information",
- "transform": "table",
- "type": "table"
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Shows data transfer rate per second for Switch $Port. TX on positive axis and RX on negative axis.",
- "fill": 1,
- "gridPos": {
- "h": 9,
- "w": 24,
- "x": 0,
- "y": 5
- },
- "id": 1396,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [
- {
- "alias": "/Rx$/",
- "transform": "negative-Y"
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port ($tag_name) $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "name"
- ],
- "type": "tag"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Bytes Rx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Bytes Tx"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Data Transfer: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "Bps",
- "label": "Bytes / Second",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Shows broadcast and multicast packets per second for Switch $Port. TX on positive axis and RX on negative axis.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 14
- },
- "id": 594,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [
- {
- "alias": "/Rx$/",
- "transform": "negative-Y"
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port ($tag_name) $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "name"
- ],
- "type": "tag"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "rx_broadcast"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Broadcast Rx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_broadcast"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Broadcast Tx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_multicast"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Multicast Tx"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Multicast & Broadcast: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "pps",
- "label": "PPS",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "decimals": 0,
- "description": "Shows errors and dropped packets for Switch $Port. RX on negative axis.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 14
- },
- "id": 367,
- "legend": {
- "alignAsTable": false,
- "avg": false,
- "current": false,
- "max": false,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "connected",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [
- {
- "alias": "/Rx$/",
- "transform": "negative-Y"
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port ($tag_name) $col",
- "groupBy": [
- {
- "params": [
- "1s"
- ],
- "type": "time"
- },
- {
- "params": [
- "name"
- ],
- "type": "tag"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "rx_dropped"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "30s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Drops RX"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_errors"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "30s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Errors RX"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_errors"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "30s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Errors TX"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_dropped"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "sum"
- },
- {
- "params": [
- "40s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Drops TX"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Errors and Drops: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 2,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "decimals": 0,
- "format": "short",
- "label": "packets per second",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": false
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Shows packet counters for Switch $Port. TX on positive axis and RX on negative axis.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 21
- },
- "id": 468,
- "legend": {
- "alignAsTable": true,
- "avg": true,
- "current": true,
- "max": true,
- "min": true,
- "rightSide": false,
- "show": true,
- "total": true,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "null",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [
- {
- "alias": "/Rx$/",
- "transform": "negative-Y"
- }
- ],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port ($tag_name) $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "name"
- ],
- "type": "tag"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "tx_packets"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Rx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_packets"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [
- "1s"
- ],
- "type": "non_negative_derivative"
- },
- {
- "params": [
- "Tx"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "Packets Per Second: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "pps",
- "label": "PPS",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "short",
- "label": null,
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Display POE Power for Switch $Port.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 4,
- "x": 12,
- "y": 21
- },
- "id": 745,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "connected",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "poe_power"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Current"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "POE Power: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "watt",
- "label": "Watts",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "watt",
- "label": "Watts",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": false
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Display POE Voltage for Switch $Port.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 4,
- "x": 16,
- "y": 21
- },
- "id": 921,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "connected",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "poe_voltage"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Voltage"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "POE Voltage: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "volt",
- "label": "Volts",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "watt",
- "label": "Watts",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": false
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- },
- {
- "aliasColors": {},
- "bars": false,
- "dashLength": 10,
- "dashes": false,
- "datasource": "${DS_UNIFI}",
- "description": "Display POE Current for Switch $Port.",
- "fill": 1,
- "gridPos": {
- "h": 7,
- "w": 4,
- "x": 20,
- "y": 21
- },
- "id": 922,
- "legend": {
- "alignAsTable": true,
- "avg": false,
- "current": true,
- "max": true,
- "min": false,
- "rightSide": false,
- "show": true,
- "total": false,
- "values": true
- },
- "lines": true,
- "linewidth": 1,
- "links": [],
- "nullPointMode": "connected",
- "options": {},
- "percentage": false,
- "pointradius": 2,
- "points": false,
- "renderer": "flot",
- "scopedVars": {
- "Port": {
- "selected": false,
- "text": "switch Port 1",
- "value": "switch Port 1"
- }
- },
- "seriesOverrides": [],
- "spaceLength": 10,
- "stack": false,
- "steppedLine": false,
- "targets": [
- {
- "alias": "$Port $col",
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "default",
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "poe_current"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Current"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": [
- {
- "key": "site_name",
- "operator": "=~",
- "value": "/^$Site$/"
- },
- {
- "condition": "AND",
- "key": "device_name",
- "operator": "=~",
- "value": "/^$Switch$/"
- },
- {
- "condition": "AND",
- "key": "port_id",
- "operator": "=~",
- "value": "/^$Port$/"
- }
- ]
- }
- ],
- "thresholds": [],
- "timeFrom": null,
- "timeRegions": [],
- "timeShift": null,
- "title": "POE Current: Switch $Port",
- "tooltip": {
- "shared": true,
- "sort": 0,
- "value_type": "individual"
- },
- "type": "graph",
- "xaxis": {
- "buckets": null,
- "mode": "time",
- "name": null,
- "show": true,
- "values": []
- },
- "yaxes": [
- {
- "format": "mamp",
- "label": "Amps",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": true
- },
- {
- "format": "watt",
- "label": "Watts",
- "logBase": 1,
- "max": null,
- "min": null,
- "show": false
- }
- ],
- "yaxis": {
- "align": false,
- "alignLevel": null
- }
- }
- ],
+ "panels": [],
"repeat": "Port",
"title": "Switch $Port",
"type": "row"
+ },
+ {
+ "columns": [],
+ "datasource": "${DS_UNIFI}",
+ "fontSize": "90%",
+ "gridPos": {
+ "h": 3,
+ "w": 24,
+ "x": 0,
+ "y": 47
+ },
+ "id": 291,
+ "links": [],
+ "options": {},
+ "pageSize": null,
+ "scroll": true,
+ "showHeader": true,
+ "sort": {
+ "col": 13,
+ "desc": true
+ },
+ "styles": [
+ {
+ "alias": "Port Name",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "name",
+ "thresholds": [],
+ "type": "number",
+ "unit": "short"
+ },
+ {
+ "alias": "Enabled",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "link": false,
+ "mappingType": 1,
+ "pattern": "enable",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short",
+ "valueMaps": []
+ },
+ {
+ "alias": "",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "Time",
+ "thresholds": [],
+ "type": "hidden",
+ "unit": "short"
+ },
+ {
+ "alias": "Switch",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "device_name",
+ "thresholds": [],
+ "type": "number",
+ "unit": "short"
+ },
+ {
+ "alias": "POE",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "poe_mode",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short",
+ "valueMaps": []
+ },
+ {
+ "alias": "Mode",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "op_mode",
+ "thresholds": [
+ ""
+ ],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Up",
+ "colorMode": "cell",
+ "colors": [
+ "rgba(50, 172, 45, 0.97)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(245, 54, 54, 0.9)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "up",
+ "thresholds": [
+ "0",
+ "0"
+ ],
+ "type": "string",
+ "unit": "short",
+ "valueMaps": []
+ },
+ {
+ "alias": "Jumbo",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "jumbo",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "Masked",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "masked",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "STP",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 2,
+ "mappingType": 1,
+ "pattern": "stp_state",
+ "thresholds": [],
+ "type": "string",
+ "unit": "short"
+ },
+ {
+ "alias": "",
+ "colorMode": "cell",
+ "colors": [
+ "rgba(50, 172, 45, 0)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(245, 54, 54, 0.9)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 0,
+ "mappingType": 1,
+ "pattern": "/Drops$|Errors$/",
+ "thresholds": [
+ "10",
+ "100"
+ ],
+ "type": "number",
+ "unit": "short"
+ },
+ {
+ "alias": "",
+ "colorMode": null,
+ "colors": [
+ "rgba(245, 54, 54, 0.9)",
+ "rgba(237, 129, 40, 0.89)",
+ "rgba(50, 172, 45, 0.97)"
+ ],
+ "dateFormat": "YYYY-MM-DD HH:mm:ss",
+ "decimals": 1,
+ "mappingType": 1,
+ "pattern": "/Bytes$/",
+ "thresholds": [],
+ "type": "number",
+ "unit": "decbytes"
+ }
+ ],
+ "targets": [
+ {
+ "alias": "$tag_device_name $col",
+ "groupBy": [
+ {
+ "params": [
+ "name"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "enable"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "jumbo"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "up"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "poe_mode"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "masked"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "op_mode"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "stp_state"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "device_name"
+ ],
+ "type": "tag"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "table",
+ "select": [
+ [
+ {
+ "params": [
+ "full_duplex"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "FUll Duplex"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "speed"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Speed"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "poe_voltage"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "POE Voltage"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "poe_power"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "POE Power"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_dropped"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Drops"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_dropped"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "TX Drops"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_errors"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Errors"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_errors"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "TX Errors"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Bytes"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "TX Bytes"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_packets"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "TX Packets"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_packets"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Packets"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_broadcast"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Broadcast"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_multicast"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "spread"
+ },
+ {
+ "params": [
+ "RX Multicast"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "title": "Switch $Port Information",
+ "transform": "table",
+ "type": "table"
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Shows data transfer rate per second for Switch $Port. TX on positive axis and RX on negative axis.",
+ "fill": 1,
+ "gridPos": {
+ "h": 9,
+ "w": 24,
+ "x": 0,
+ "y": 50
+ },
+ "id": 1396,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port ($tag_name) $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "name"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "rx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Bytes Rx"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_bytes"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Bytes Tx"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Data Transfer: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "Bps",
+ "label": "Bytes / Second",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Shows broadcast and multicast packets per second for Switch $Port. TX on positive axis and RX on negative axis.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 59
+ },
+ "id": 594,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port ($tag_name) $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "name"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "rx_broadcast"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Broadcast Rx"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_broadcast"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Broadcast Tx"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_multicast"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Multicast Tx"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Multicast & Broadcast: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "pps",
+ "label": "PPS",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "decimals": 0,
+ "description": "Shows errors and dropped packets for Switch $Port. RX on negative axis.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 12,
+ "y": 59
+ },
+ "id": 367,
+ "legend": {
+ "alignAsTable": false,
+ "avg": false,
+ "current": false,
+ "max": false,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": true,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port ($tag_name) $col",
+ "groupBy": [
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "name"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "rx_dropped"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "30s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Drops RX"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_errors"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "30s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Errors RX"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_errors"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "30s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Errors TX"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "tx_dropped"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "sum"
+ },
+ {
+ "params": [
+ "40s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Drops TX"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Errors and Drops: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 2,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "decimals": 0,
+ "format": "short",
+ "label": "packets per second",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Shows packet counters for Switch $Port. TX on positive axis and RX on negative axis.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 12,
+ "x": 0,
+ "y": 66
+ },
+ "id": 468,
+ "legend": {
+ "alignAsTable": true,
+ "avg": true,
+ "current": true,
+ "max": true,
+ "min": true,
+ "rightSide": false,
+ "show": true,
+ "total": true,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "null",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [
+ {
+ "alias": "/Rx$/",
+ "transform": "negative-Y"
+ }
+ ],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port ($tag_name) $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "name"
+ ],
+ "type": "tag"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "tx_packets"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "mean"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Rx"
+ ],
+ "type": "alias"
+ }
+ ],
+ [
+ {
+ "params": [
+ "rx_packets"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "mean"
+ },
+ {
+ "params": [
+ "1s"
+ ],
+ "type": "non_negative_derivative"
+ },
+ {
+ "params": [
+ "Tx"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "Packets Per Second: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "pps",
+ "label": "PPS",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "short",
+ "label": null,
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Display POE Power for Switch $Port.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 4,
+ "x": 12,
+ "y": 66
+ },
+ "id": 745,
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": true,
+ "max": true,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "poe_power"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Current"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "POE Power: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "watt",
+ "label": "Watts",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "watt",
+ "label": "Watts",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Display POE Voltage for Switch $Port.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 4,
+ "x": 16,
+ "y": 66
+ },
+ "id": 921,
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": true,
+ "max": true,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "poe_voltage"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Voltage"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "POE Voltage: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "volt",
+ "label": "Volts",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "watt",
+ "label": "Watts",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
+ },
+ {
+ "aliasColors": {},
+ "bars": false,
+ "dashLength": 10,
+ "dashes": false,
+ "datasource": "${DS_UNIFI}",
+ "description": "Display POE Current for Switch $Port.",
+ "fill": 1,
+ "gridPos": {
+ "h": 7,
+ "w": 4,
+ "x": 20,
+ "y": 66
+ },
+ "id": 922,
+ "legend": {
+ "alignAsTable": true,
+ "avg": false,
+ "current": true,
+ "max": true,
+ "min": false,
+ "rightSide": false,
+ "show": true,
+ "total": false,
+ "values": true
+ },
+ "lines": true,
+ "linewidth": 1,
+ "links": [],
+ "nullPointMode": "connected",
+ "options": {},
+ "percentage": false,
+ "pointradius": 2,
+ "points": false,
+ "renderer": "flot",
+ "seriesOverrides": [],
+ "spaceLength": 10,
+ "stack": false,
+ "steppedLine": false,
+ "targets": [
+ {
+ "alias": "$Port $col",
+ "groupBy": [
+ {
+ "params": [
+ "$__interval"
+ ],
+ "type": "time"
+ },
+ {
+ "params": [
+ "null"
+ ],
+ "type": "fill"
+ }
+ ],
+ "measurement": "usw_ports",
+ "orderByTime": "ASC",
+ "policy": "default",
+ "refId": "A",
+ "resultFormat": "time_series",
+ "select": [
+ [
+ {
+ "params": [
+ "poe_current"
+ ],
+ "type": "field"
+ },
+ {
+ "params": [],
+ "type": "last"
+ },
+ {
+ "params": [
+ "Current"
+ ],
+ "type": "alias"
+ }
+ ]
+ ],
+ "tags": [
+ {
+ "key": "site_name",
+ "operator": "=~",
+ "value": "/^$Site$/"
+ },
+ {
+ "condition": "AND",
+ "key": "device_name",
+ "operator": "=~",
+ "value": "/^$Switch$/"
+ },
+ {
+ "condition": "AND",
+ "key": "port_id",
+ "operator": "=~",
+ "value": "/^$Port$/"
+ }
+ ]
+ }
+ ],
+ "thresholds": [],
+ "timeFrom": null,
+ "timeRegions": [],
+ "timeShift": null,
+ "title": "POE Current: Switch $Port",
+ "tooltip": {
+ "shared": true,
+ "sort": 0,
+ "value_type": "individual"
+ },
+ "type": "graph",
+ "xaxis": {
+ "buckets": null,
+ "mode": "time",
+ "name": null,
+ "show": true,
+ "values": []
+ },
+ "yaxes": [
+ {
+ "format": "mamp",
+ "label": "Amps",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": true
+ },
+ {
+ "format": "watt",
+ "label": "Watts",
+ "logBase": 1,
+ "max": null,
+ "min": null,
+ "show": false
+ }
+ ],
+ "yaxis": {
+ "align": false,
+ "alignLevel": null
+ }
}
],
- "refresh": false,
+ "refresh": "30s",
"schemaVersion": 18,
"style": "dark",
- "tags": [],
+ "tags": [
+ "unifi",
+ "usw"
+ ],
"templating": {
"list": [
{
"allValue": null,
"current": {},
"datasource": "${DS_UNIFI}",
- "definition": "show tag values from \"usg\" with key=\"site_name\"",
+ "definition": "show tag values from \"usw\" with key=\"site_name\"",
"hide": 0,
- "includeAll": false,
+ "includeAll": true,
"label": null,
- "multi": false,
+ "multi": true,
"name": "Site",
"options": [],
- "query": "show tag values from \"usg\" with key=\"site_name\"",
+ "query": "show tag values from \"usw\" with key=\"site_name\"",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
@@ -3426,7 +3382,7 @@
},
"time": {
"from": "now-3h",
- "to": "now"
+ "to": "now-5s"
},
"timepicker": {
"refresh_intervals": [
@@ -3452,7 +3408,7 @@
]
},
"timezone": "",
- "title": "Unifi USW Insights",
+ "title": "UniFi USW Insights",
"uid": "HIKZ98GZz",
- "version": 78
+ "version": 85
}
\ No newline at end of file