diff --git a/Makefile b/Makefile index 3162e671..08633a2c 100644 --- a/Makefile +++ b/Makefile @@ -127,9 +127,8 @@ package_build_linux: readme man linux cp *.1.gz $@/usr/share/man/man1 cp examples/*.conf.example $@/etc/$(BINARY)/ cp examples/up.conf.example $@/etc/$(BINARY)/up.conf - cp LICENSE *.html examples/*dash.json examples/up.conf.example $@/usr/share/doc/$(BINARY)/ + cp LICENSE *.html examples/up.conf.example $@/usr/share/doc/$(BINARY)/ # These go to their own folder so the img src in the html pages continue to work. - cp examples/*.png $@/usr/share/doc/$(BINARY)/examples cp init/systemd/$(BINARY).service $@/lib/systemd/system/ check_fpm: @@ -170,9 +169,8 @@ install: man readme $(BINARY) /usr/bin/install -m 0644 -cp $(BINARY).1.gz $(PREFIX)/share/man/man1 /usr/bin/install -m 0644 -cp examples/up.conf.example $(ETC)/$(BINARY)/ [ -f $(ETC)/$(BINARY)/up.conf ] || /usr/bin/install -m 0644 -cp examples/up.conf.example $(ETC)/$(BINARY)/up.conf - /usr/bin/install -m 0644 -cp LICENSE *.html examples/{*dash.json,up.conf.example} $(PREFIX)/share/doc/$(BINARY)/ + /usr/bin/install -m 0644 -cp LICENSE *.html examples/up.conf.example $(PREFIX)/share/doc/$(BINARY)/ # These go to their own folder so the img src in the html pages continue to work. - /usr/bin/install -m 0644 -cp examples/*.png $(PREFIX)/share/doc/$(BINARY)/examples # If you installed with `make install` run `make uninstall` before installing a binary package. # This will remove the package install from macOS, it will not remove a package install from Linux. diff --git a/README.md b/README.md index 9095cde0..98f9a114 100644 --- a/README.md +++ b/README.md @@ -107,23 +107,19 @@ configurations. Help me figure that out? # What's it look like? Here's a picture of the Client dashboard. - -![image](examples/unifi-clients-dashboard.png?raw=true) +![UniFi Clients Dashboard Image](https://grafana.com/api/dashboards/10418/images/6554/image) Here's a picture of the USG dashboard. - -![image](examples/unifi-usg-dashboard.png?raw=true) +![USG Dashboard Image](https://grafana.com/api/dashboards/10416/images/6552/image) Here's a picture of the UAP dashboard. This only shows one device, but you can select multiple to put specific stats side-by-side. - -![image](examples/unifi-uap-dashboard.png?raw=true) +![UAP Dashboard Image](https://grafana.com/api/dashboards/10415/images/6551/image) The USW / Switch Dashboard is pretty big with one data-filled section per selected port. You can drill down into specific sites, switches, and ports. Compare ports in different sites side-by-side. So easy! This screenshot barely does it justice. - -![image](examples/unifi-usw-dashboard.png?raw=true) +![USW Dashboard Image](https://grafana.com/api/dashboards/10417/images/6553/image) ## Copyright & License diff --git a/cmd/unifi-poller/README.md b/cmd/unifi-poller/README.md index 96d7bfd6..9486c3f9 100644 --- a/cmd/unifi-poller/README.md +++ b/cmd/unifi-poller/README.md @@ -10,6 +10,9 @@ measurements in an Influx Database. The measurements and metrics collected belon to every available site, device and client found on the controller. Including UniFi Security Gateways, Access Points, Switches and possibly more. +Dashboards for Grafana are available. +Find them at [Grafana.com](https://grafana.com/dashboards?search=unifi-poller). + DESCRIPTION --- Unifi-Poller is a small Golang application that runs on Windows, macOS, Linux or diff --git a/examples/README.md b/examples/README.md index 3d065c31..5e69d1d5 100644 --- a/examples/README.md +++ b/examples/README.md @@ -1,11 +1,8 @@ # Grafana Dashboards & Examples -This folder contains 4 grafana dashboards to get you started with the new data pool. -Import these into Grafana to quickly visualize data from your devices. -Created with Grafana 6.2. +This folder used to contain Grafana Dashboards. -These dashboards require a few plugins. -See the [Grafana Wiki Article](https://github.com/davidnewhall/unifi-poller/wiki/Grafana) for more info. +**They are now located at [Grafana.com](https://grafana.com/dashboards?search=unifi-poller).** More info is available on The [Grafana Dashboards Wiki Page](https://github.com/davidnewhall/unifi-poller/wiki/Grafana-Dashboards). Keep in mind these dashboards are just examples. You should make an Example folder in Grafana to keep them in, and copy them to new dashboards that you want to change. diff --git a/examples/unifi-clients-dashboard.png b/examples/unifi-clients-dashboard.png deleted file mode 100644 index e950b487..00000000 Binary files a/examples/unifi-clients-dashboard.png and /dev/null differ diff --git a/examples/unifi-clients-grafana-dash.json b/examples/unifi-clients-grafana-dash.json deleted file mode 100644 index c5fed9df..00000000 --- a/examples/unifi-clients-grafana-dash.json +++ /dev/null @@ -1,2907 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_UNIFI", - "label": "Unifi", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.2.1" - }, - { - "type": "panel", - "id": "grafana-piechart-panel", - "name": "Pie Chart", - "version": "1.3.6" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "natel-discrete-panel", - "name": "Discrete", - "version": "0.0.9" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "gnetId": null, - "graphTooltip": 1, - "id": null, - "iteration": 1560917693674, - "links": [ - { - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "unifi" - ], - "type": "dashboards" - } - ], - "panels": [ - { - "columns": [], - "datasource": "${DS_UNIFI}", - "description": "", - "fontSize": "80%", - "gridPos": { - "h": 13, - "w": 12, - "x": 0, - "y": 0 - }, - "id": 21, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 1, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": true, - "linkTargetBlank": true, - "linkUrl": "http://sleepers.pro", - "pattern": "Time", - "type": "hidden" - }, - { - "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": 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" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "mac" - ], - "type": "tag" - }, - { - "params": [ - "channel" - ], - "type": "tag" - }, - { - "params": [ - "radio" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "ap_mac" - ], - "type": "tag" - } - ], - "measurement": "clients", - "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 \"ap_mac\" =~ /^$AP$/) AND $timeFilter GROUP BY \"mac\", \"oui\", \"channel\", \"radio\", \"name\", \"ap_mac\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Address" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "note" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Note" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "network" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Network" - ], - "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": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "timeFrom": "1h", - "title": "Wireless Devices", - "transform": "table", - "type": "table" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "description": "", - "fontSize": "80%", - "gridPos": { - "h": 13, - "w": 12, - "x": 12, - "y": 0 - }, - "hideTimeOverride": false, - "id": 22, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 8, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "link": false, - "linkUrl": "http://$__cell", - "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, - "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": null, - "mappingType": 1, - "pattern": "/Bytes$/", - "thresholds": [], - "type": "number", - "unit": "decbytes" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "sw_port" - ], - "type": "tag" - }, - { - "params": [ - "mac" - ], - "type": "tag" - }, - { - "params": [ - "use_fixedip" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "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": false, - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Address" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "note" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Note" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "network" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Network" - ], - "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": [ - { - "key": "is_wired", - "operator": "=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - } - ] - } - ], - "timeFrom": "1h", - "title": "Wired Devices", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "description": "Visualize wireless channel usage w/ wired client counts.", - "fontSize": "70%", - "format": "short", - "gridPos": { - "h": 8, - "w": 6, - "x": 0, - "y": 13 - }, - "hideTimeOverride": true, - "id": 9, - "interval": null, - "legend": { - "header": "", - "show": false, - "values": true - }, - "legendType": "Under graph", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": 1, - "targets": [ - { - "alias": "Wired", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 10m AND is_wired = 'true' AND \"site_name\" =~ /$Site$/ group by hostname", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - }, - { - "alias": "Channel $tag_channel", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 10m AND (is_wired != 'true' AND \"site_name\" =~ /$Site$/ AND \"ap_mac\" =~ /^$AP$/ AND \"name\" =~ /^$Client$/) group by channel", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "timeFrom": null, - "title": "Wifi Channels", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "breakPoint": "25%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "description": "Visualize how many clients are connected to which radios/APs.", - "fontSize": "70%", - "format": "short", - "gridPos": { - "h": 8, - "w": 6, - "x": 6, - "y": 13 - }, - "hideTimeOverride": true, - "id": 11, - "interval": null, - "legend": { - "header": "", - "percentage": true, - "show": false, - "values": false - }, - "legendType": "Under graph", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": "3", - "targets": [ - { - "alias": "$tag_radio_proto", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT count(distinct(\"hostname\")) FROM \"clients\" WHERE \"is_wired\" != 'true' AND $timeFilter AND \"site_name\" =~ /$Site$/ AND \"name\" =~ /^$Client$/ GROUP BY radio_proto", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - } - ] - } - ], - "timeFrom": null, - "title": "Clients / AP Radio", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "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": { - "h": 8, - "w": 6, - "x": 12, - "y": 13 - }, - "hideTimeOverride": true, - "id": 12, - "interval": null, - "legend": { - "header": "", - "show": true, - "sortDesc": false, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": 1, - "targets": [ - { - "alias": "w $tag_oui", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE (time > now() - 60m AND \"name\" =~ /^$Client$/ AND \"ap_mac\" =~ /^$AP$/ and site_name =~ /$Site$/ and \"name\" =~ /^$Client$/) group by oui", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - }, - { - "alias": "e $tag_oui", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE (time > now() - 60m AND \"is_wired\" = 'true' and site_name =~ /$Site$/) group by oui", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - } - ], - "timeFrom": null, - "title": "Client MAC OUI Breakdown", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "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": { - "h": 8, - "w": 6, - "x": 18, - "y": 13 - }, - "hideTimeOverride": true, - "id": 14, - "interval": null, - "legend": { - "header": "", - "show": false, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": 1, - "targets": [ - { - "alias": "$tag_os_class, $tag_os_name, $tag_dev_cat, $tag_dev_family, $tag_dev_id,", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE (time > now() - 10m AND \"ap_mac\" =~ /^$AP$/ AND \"name\" =~ /^$Client$/ AND \"site_name\" =~ /$Site$/) group by os_class, os_name, dev_cat, dev_family, dev_id ", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - } - ], - "timeFrom": null, - "title": "OS/Dev Class/ID Breakdown", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "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, - "w": 12, - "x": 0, - "y": 21 - }, - "id": 3, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "avg", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "!~", - "value": "/^(amazon-)/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "UAP Bandwidth / Wireless Devices", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "bytes / sec", - "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": "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, - "w": 12, - "x": 12, - "y": 21 - }, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wired-rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wired-tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^camera/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Bandwidth / Cameras", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "bytes / sec", - "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": "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, - "w": 12, - "x": 0, - "y": 28 - }, - "id": 23, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "w $tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wired-rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wired-tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^amazon-(.*)/" - }, - { - "condition": "AND", - "key": "is_wired", - "operator": "!=", - "value": "false" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - }, - { - "alias": "e $tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^amazon-(.*)/" - }, - { - "condition": "AND", - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Bandwidth / Echos & FireTVs", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "bytes / sec", - "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": "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, - "w": 12, - "x": 12, - "y": 28 - }, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wired-rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wired-tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "!~", - "value": "/^(supermic-bmc|amazon-|camera-)/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Bandwidth / Wired Devices", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "bytes / sec", - "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 - } - }, - { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "#70dbed", - "text": "Upper 1" - }, - { - "color": "#806eb7", - "text": "Lower 2" - }, - { - "color": "#806eb7", - "text": "Lower 1" - }, - { - "color": "#64b0c8", - "text": "Upper 2" - } - ], - "crosshairColor": "#8F070C", - "datasource": "${DS_UNIFI}", - "description": "Shows which wireless radio a client is connected to. Setting AP does not change this.", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 37 - }, - "highlightOnMouseover": false, - "id": 17, - "legendSortBy": "-ms", - "lineColor": "rgba(0,0,0,0.1)", - "links": [], - "metricNameColor": "#000000", - "options": {}, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "rowHeight": 25, - "showLegend": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendValues": true, - "showTimeAxis": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "bssid" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "textSize": 12, - "textSizeTime": 9, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "Wifi Client / AP", - "type": "natel-discrete-panel", - "units": "short", - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "Upper 1", - "value": "80:2a:a8:12:ae:0c" - }, - { - "op": "=", - "text": "Lower 2", - "value": "80:2a:a8:11:ae:87" - }, - { - "op": "=", - "text": "Lower 1", - "value": "80:2a:a8:12:ae:87" - }, - { - "op": "=", - "text": "Upper 2", - "value": "80:2a:a8:11:ae:0c" - } - ], - "valueTextColor": "#000000", - "writeAllValues": true, - "writeLastValue": false, - "writeMetricNames": true - }, - { - "backgroundColor": "rgba(128,128,128,0.1)", - "colorMaps": [ - { - "color": "#CCC", - "text": "N/A" - } - ], - "crosshairColor": "#8F070C", - "datasource": "${DS_UNIFI}", - "description": "Shows IPs assigned to non-static clients.", - "display": "timeline", - "expandFromQueryS": 0, - "extendLastValue": true, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 37 - }, - "highlightOnMouseover": false, - "id": 18, - "legendSortBy": "-ms", - "lineColor": "rgba(0,0,0,0.1)", - "links": [], - "metricNameColor": "#000000", - "options": {}, - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "rowHeight": 24, - "showDistinctCount": false, - "showLegend": false, - "showLegendNames": true, - "showLegendPercent": true, - "showLegendValues": true, - "showTimeAxis": false, - "showTransitionCount": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "ip" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "use_fixedip", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "textSize": 12, - "textSizeTime": 9, - "timeOptions": [ - { - "name": "Years", - "value": "years" - }, - { - "name": "Months", - "value": "months" - }, - { - "name": "Weeks", - "value": "weeks" - }, - { - "name": "Days", - "value": "days" - }, - { - "name": "Hours", - "value": "hours" - }, - { - "name": "Minutes", - "value": "minutes" - }, - { - "name": "Seconds", - "value": "seconds" - }, - { - "name": "Milliseconds", - "value": "milliseconds" - } - ], - "timePrecision": { - "name": "Minutes", - "value": "minutes" - }, - "timeTextColor": "#d8d9da", - "title": "Client / IP", - "type": "natel-discrete-panel", - "units": "short", - "useTimePrecision": false, - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueTextColor": "#000000", - "writeAllValues": false, - "writeLastValue": false, - "writeMetricNames": true - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "fill": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 46 - }, - "id": 7, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "min", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rssi" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Received Signal Strength Indicator", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "label": "RSSI Quality", - "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}", - "fill": 0, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 46 - }, - "id": 10, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "signal" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Wireless Signal", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "dBm", - "label": "Signal Power", - "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}", - "fill": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 55 - }, - "id": 6, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "noise" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "UAP Client Stats / Noise", - "tooltip": { - "shared": true, - "sort": 1, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "short", - "label": "Noise", - "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": "", - "fill": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 55 - }, - "id": 19, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "tx_power" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Client$/" - }, - { - "condition": "AND", - "key": "ap_mac", - "operator": "=~", - "value": "/^$AP$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "TX Power", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "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 - } - } - ], - "refresh": "30s", - "schemaVersion": 18, - "style": "dark", - "tags": [ - "unifi" - ], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"clients\" with key=\"site_name\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "Site", - "options": [], - "query": "show tag values from \"clients\" with key=\"site_name\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"clients\" with key=\"ap_mac\" where site_name =~ /$Site$/", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "AP", - "options": [], - "query": "show tag values from \"clients\" with key=\"ap_mac\" where site_name =~ /$Site$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"clients\" with key=\"name\" where site_name =~ /$Site$/", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "Client", - "options": [], - "query": "show tag values from \"clients\" with key=\"name\" where site_name =~ /$Site$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now-5s" - }, - "timepicker": { - "nowDelay": "20s", - "refresh_intervals": [ - "5s", - "10s", - "30s", - "1m", - "5m", - "15m" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "UniFi Client Insights", - "uid": "YVR23BZiz", - "version": 55 -} \ No newline at end of file diff --git a/examples/unifi-sites-dashboard.png b/examples/unifi-sites-dashboard.png deleted file mode 100644 index 8c98285c..00000000 Binary files a/examples/unifi-sites-dashboard.png and /dev/null differ diff --git a/examples/unifi-sites-grafana-dash.json b/examples/unifi-sites-grafana-dash.json deleted file mode 100644 index d9df099d..00000000 --- a/examples/unifi-sites-grafana-dash.json +++ /dev/null @@ -1,3149 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_UNIFI", - "label": "Unifi", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.2.1" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "This dashboard shows information about Unifi Sites", - "editable": true, - "gnetId": null, - "graphTooltip": 1, - "id": null, - "iteration": 1560916503572, - "links": [ - { - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "unifi" - ], - "type": "dashboards" - } - ], - "panels": [ - { - "content": "Each site contains 5 subsystems: wan, lan, wlan, www, vpn. Each subsystem contains data specific to that system, but every subsystem shares the same fields. \nThis means that most fields you find appear empty. That means the field is probably for a different subsystem.\nThe site metrics tend to contain a lot of data about the local USG.\nNote: The three singlestat panels with thresholds do not have a subsystem selected and they may not be entirely accurate.\n\n", - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 37, - "links": [], - "mode": "html", - "options": {}, - "timeFrom": null, - "timeShift": null, - "title": "Information", - "type": "text" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 3 - }, - "id": 4, - "panels": [], - "repeat": "site", - "title": "Site: $site", - "type": "row" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "ms", - "gauge": { - "maxValue": 400, - "minValue": 10, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 4 - }, - "id": 32, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "latency" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "www" - } - ] - } - ], - "thresholds": "100,200", - "timeFrom": null, - "timeShift": null, - "title": "WWW Latency", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "ms", - "gauge": { - "maxValue": 200, - "minValue": 1, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 3, - "y": 4 - }, - "id": 33, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(133, 22, 190, 0.14)", - "full": false, - "lineColor": "#FFB357", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "speedtest_ping" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "www" - } - ] - } - ], - "thresholds": "50,100", - "timeFrom": null, - "timeShift": null, - "title": "Speed Test Ping", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 6, - "y": 4 - }, - "id": 34, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(133, 22, 190, 0.14)", - "full": false, - "lineColor": "#FFB357", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gw_cpu" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wan" - } - ] - } - ], - "thresholds": "25,50", - "timeFrom": null, - "timeShift": null, - "title": "Gateway CPU", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 3, - "x": 9, - "y": 4 - }, - "id": 35, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(133, 22, 190, 0.14)", - "full": false, - "lineColor": "#FFB357", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "gw_mem" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wan" - } - ] - } - ], - "thresholds": "50,75", - "timeFrom": null, - "timeShift": null, - "title": "Gateway Memory", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "100%", - "gridPos": { - "h": 4, - "w": 12, - "x": 12, - "y": 4 - }, - "id": 14, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "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": "", - "thresholds": [], - "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)" - ], - "decimals": 2, - "pattern": "/xPut/", - "thresholds": [], - "type": "number", - "unit": "MBs" - }, - { - "alias": "Speedtest Status", - "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": "speedtest_status", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "speedtest_status" - ], - "type": "tag" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "attr_no_delete" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "NoDelete" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "status" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Status" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "xput_down" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "xPutRx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "xput_up" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "xPutTx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "www" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "WWW Subsystem", - "transform": "table", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 8 - }, - "id": 18, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_gw" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Gateways", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 8 - }, - "id": 19, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_sw" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "lan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Switches", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 8 - }, - "id": 17, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_ap" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wlan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "WAPs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 8 - }, - "id": 24, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_user" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "vpn" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "VPN Users", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 8 - }, - "id": 28, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_user" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wlan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "WLAN Users", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 8 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_user" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "lan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "LAN Users", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 8 - }, - "id": 26, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_sta" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Total Users", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "100%", - "gridPos": { - "h": 4, - "w": 5, - "x": 14, - "y": 8 - }, - "id": 10, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Remote", - "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": "remote_user_enabled", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Site2Site", - "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": "site_to_site_enabled", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "remote_user_enabled" - ], - "type": "tag" - }, - { - "params": [ - "site_to_site_enabled" - ], - "type": "tag" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "attr_no_delete" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "NoDelete" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "status" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Status" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "vpn" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "VPN Subsystem", - "transform": "table", - "type": "table" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "100%", - "gridPos": { - "h": 4, - "w": 5, - "x": 19, - "y": 8 - }, - "id": 11, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "LAN IP", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "lan_ip", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "lan_ip" - ], - "type": "tag" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "attr_no_delete" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "NoDelete" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "status" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Status" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "lan" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "LAN Subsystem", - "transform": "table", - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 0, - "y": 10 - }, - "id": 30, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "drops" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "www" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "WWW Drops", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "description": "This panel currently does not select a subsystem, so the data reflected here may only be fore 1 random system. Keep this in mind when you build your own graphs from this data.", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 2, - "y": 10 - }, - "id": 27, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_adopted" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Adopted", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#C4162A", - "#C4162A" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 4, - "y": 10 - }, - "id": 22, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_disabled" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": "1,2", - "timeFrom": null, - "timeShift": null, - "title": "Disabled", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#C4162A", - "#C4162A" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 6, - "y": 10 - }, - "id": 25, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_disconnected" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": "1,2", - "timeFrom": null, - "timeShift": null, - "title": "Disconnected", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "#C4162A", - "#C4162A" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 8, - "y": 10 - }, - "id": 20, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_new_alarms" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": "1,2", - "timeFrom": null, - "timeShift": null, - "title": "Alarms", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 10, - "y": 10 - }, - "id": 31, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_iot" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wlan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "WLAN IoT", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 2, - "x": 12, - "y": 10 - }, - "id": 21, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "", - "targets": [ - { - "groupBy": [], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_guest" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wlan" - } - ] - } - ], - "thresholds": "", - "timeFrom": null, - "timeShift": null, - "title": "Guests", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "max" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "100%", - "gridPos": { - "h": 3, - "w": 24, - "x": 0, - "y": 12 - }, - "id": 12, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "alias": "Gateway MAC", - "colorMode": null, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "decimals": 2, - "pattern": "gw_mac", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "GW 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": "gw_name", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "GW Version", - "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": "gw_version", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Netmask", - "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": "netmask", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "WAN 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": "wan_ip", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Name Servers", - "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": "nameservers", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "groupBy": [ - { - "params": [ - "gw_mac" - ], - "type": "tag" - }, - { - "params": [ - "gw_version" - ], - "type": "tag" - }, - { - "params": [ - "gw_name" - ], - "type": "tag" - }, - { - "params": [ - "netmask" - ], - "type": "tag" - }, - { - "params": [ - "wan_ip" - ], - "type": "tag" - }, - { - "params": [ - "nameservers" - ], - "type": "tag" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "attr_no_delete" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "NoDelete" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "status" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Status" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "num_new_alarms" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Alarms" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - }, - { - "condition": "AND", - "key": "subsystem", - "operator": "=", - "value": "wan" - } - ] - } - ], - "timeFrom": null, - "timeShift": null, - "title": "WAN Subsystem", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": null, - "description": "Shows data transfer for each subsystem on the site. RX is on the negative axis.", - "fill": 0, - "gridPos": { - "h": 8, - "w": 24, - "x": 0, - "y": 15 - }, - "id": 15, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "maxPerRow": 2, - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeatDirection": "h", - "seriesOverrides": [ - { - "alias": "/RX$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_subsystem $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "subsystem" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT max(\"rx_bytes-r\") AS \"Bytes RX\", max(\"tx_bytes-r\") AS \"Bytes TX\" FROM \"subsystems\" WHERE (\"site_name\" =~ /^$site$/) AND $timeFilter GROUP BY time($__interval), \"subsystem\" fill(null)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rx_bytes-r" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - }, - { - "params": [ - "Bytes RX" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "tx_bytes-r" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - }, - { - "params": [ - "Bytes TX" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Site $site Data Transfer", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "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}", - "decimals": 0, - "description": "This graphs shows clients connected to the site.", - "fill": 0, - "gridPos": { - "h": 7, - "w": 24, - "x": 0, - "y": 23 - }, - "id": 2, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeat": null, - "repeatDirection": "h", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_subsystem $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "subsystem" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "subsystems", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_user" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - }, - { - "params": [ - "Users" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "remote_user_num_active" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - }, - { - "params": [ - "Remote Active" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "remote_user_num_inactive" - ], - "type": "field" - }, - { - "params": [], - "type": "max" - }, - { - "params": [ - "Remote Inactive" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Site $site Client Counts", - "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": null, - "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 - } - } - ], - "schemaVersion": 18, - "style": "dark", - "tags": [ - "unifi" - ], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"subsystems\" with key=\"site_name\"", - "hide": 2, - "includeAll": true, - "label": "", - "multi": false, - "name": "site", - "options": [], - "query": "show tag values from \"subsystems\" with key=\"site_name\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"subsystems\" with key=\"subsystem\"", - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "Subsystem", - "options": [], - "query": "show tag values from \"subsystems\" with key=\"subsystem\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 0, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now-5s" - }, - "timepicker": { - "refresh_intervals": [ - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "Unifi Sites", - "uid": "5_omrT7Zz", - "version": 36 -} \ No newline at end of file diff --git a/examples/unifi-uap-dashboard.png b/examples/unifi-uap-dashboard.png deleted file mode 100644 index f26ccd70..00000000 Binary files a/examples/unifi-uap-dashboard.png and /dev/null differ diff --git a/examples/unifi-uap-grafana-dash.json b/examples/unifi-uap-grafana-dash.json deleted file mode 100644 index 29cd33cd..00000000 --- a/examples/unifi-uap-grafana-dash.json +++ /dev/null @@ -1,4393 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_UNIFI", - "label": "Unifi", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.2.1" - }, - { - "type": "panel", - "id": "grafana-clock-panel", - "name": "Clock", - "version": "1.0.3" - }, - { - "type": "panel", - "id": "grafana-piechart-panel", - "name": "Pie Chart", - "version": "1.3.6" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "", - "editable": true, - "gnetId": 1486, - "graphTooltip": 1, - "id": null, - "iteration": 1560914080807, - "links": [ - { - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "unifi" - ], - "type": "dashboards" - } - ], - "panels": [ - { - "content": "
\n
Unifi UAP
\n", - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 0 - }, - "id": 34, - "links": [], - "mode": "html", - "options": {}, - "title": "", - "transparent": true, - "type": "text" - }, - { - "aliasColors": {}, - "breakPoint": "25%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "description": "", - "fontSize": "70%", - "format": "short", - "gridPos": { - "h": 8, - "w": 6, - "x": 3, - "y": 0 - }, - "hideTimeOverride": true, - "id": 36, - "interval": null, - "legend": { - "header": "", - "percentage": true, - "show": true, - "sortDesc": true, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": "3", - "targets": [ - { - "alias": "$tag_radio_proto", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "hide": false, - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter and is_wired != 'true' and site_name =~ /$Site$/) group by radio_proto", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - } - ], - "timeFrom": "1h", - "title": "Clients per Band - All APs", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "description": "", - "fontSize": "70%", - "format": "short", - "gridPos": { - "h": 8, - "w": 6, - "x": 9, - "y": 0 - }, - "hideTimeOverride": true, - "id": 38, - "interval": null, - "legend": { - "header": "", - "show": true, - "sortDesc": true, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": 1, - "targets": [ - { - "alias": "Chan $tag_channel", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND is_wired != 'true' and site_name =~ /$Site$/ group by channel", - "rawQuery": true, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "value" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [] - } - ], - "timeFrom": "1h", - "title": "Client per Wifi Channels - All APs", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "aliasColors": {}, - "breakPoint": "50%", - "cacheTimeout": null, - "combine": { - "label": "Others", - "threshold": 0 - }, - "datasource": "${DS_UNIFI}", - "decimals": 0, - "description": "", - "fontSize": "70%", - "format": "short", - "gridPos": { - "h": 8, - "w": 5, - "x": 15, - "y": 0 - }, - "hideTimeOverride": true, - "id": 40, - "interval": null, - "legend": { - "header": "", - "show": true, - "sort": "current", - "sortDesc": true, - "values": true - }, - "legendType": "Right side", - "links": [], - "maxDataPoints": 3, - "nullPointMode": "connected", - "options": {}, - "pieType": "pie", - "strokeWidth": 1, - "targets": [ - { - "alias": "$tag_oui", - "groupBy": [ - { - "params": [ - "channel" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND \"is_wired\" != 'true' and site_name =~ /$Site$/ group by oui", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "hostname" - ], - "type": "field" - }, - { - "params": [], - "type": "distinct" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "=", - "value": "false" - } - ] - } - ], - "timeFrom": "1h", - "title": "Client MAC OUI Breakdown - All APs", - "transparent": true, - "type": "grafana-piechart-panel", - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "${DS_UNIFI}", - "description": "", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 20, - "y": 0 - }, - "id": 48, - "interval": null, - "isNew": true, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter and is_wired != 'true' and site_name =~ /$Site$/)", - "rawQuery": true, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "channel" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "title": "Total Users - All APs", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "${DS_UNIFI}", - "description": "This only works when 1 AP is selected.", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 0 - }, - "id": 10, - "interval": null, - "isNew": true, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "", - "targets": [ - { - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "channel" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "title": "$host 2.4GHz Channel", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [], - "valueName": "current" - }, - { - "bgColor": "#3f2b5b", - "clockType": "12 hour", - "countdownSettings": { - "customFormat": null, - "endCountdownTime": "2018-04-29T21:47:00.000Z", - "endText": "00:00:00" - }, - "dateSettings": { - "dateFormat": "YYYY-MM-DD", - "fontSize": "12px", - "fontWeight": "bold", - "showDate": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 3 - }, - "id": 32, - "links": [], - "mode": "time", - "offsetFromUtc": null, - "offsetFromUtcMinutes": null, - "options": {}, - "refreshSettings": { - "syncWithDashboard": false - }, - "timeSettings": { - "customFormat": "HH:mm:ss", - "fontSize": "30px", - "fontWeight": "normal" - }, - "timezone": null, - "timezoneSettings": { - "fontSize": "12px", - "fontWeight": "normal", - "showTimezone": false, - "zoneFormat": "offsetAbbv" - }, - "title": "Now", - "type": "grafana-clock-panel" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "rgba(245, 54, 54, 0.9)", - "rgba(237, 129, 40, 0.89)", - "rgba(50, 172, 45, 0.97)" - ], - "datasource": "${DS_UNIFI}", - "description": "This only works when 1 AP is selected.", - "editable": true, - "error": false, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 4, - "w": 2, - "x": 22, - "y": 4 - }, - "height": "", - "id": 9, - "interval": null, - "isNew": true, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "device_name", - "targets": [ - { - "alias": "", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"channel\" FROM \"uap_radios\" WHERE (\"device_name\" =~ /^$host$/ AND \"radio\" = 'na') AND $timeFilter GROUP BY \"device_name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "channel" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "title": "5GHz Radio Channel", - "type": "singlestat", - "valueFontSize": "80%", - "valueMaps": [], - "valueName": "current" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "editable": true, - "error": false, - "fontSize": "100%", - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 1, - "isNew": true, - "links": [], - "options": {}, - "pageSize": null, - "scroll": false, - "showHeader": true, - "sort": { - "col": 11, - "desc": true - }, - "styles": [ - { - "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, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "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": 2, - "pattern": "Uptime", - "thresholds": [], - "type": "number", - "unit": "dtdurations" - }, - { - "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, - "link": false, - "linkTargetBlank": true, - "linkUrl": "http:", - "pattern": "name", - "preserveFormat": false, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Config Version", - "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, - "pattern": "cfgversion", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Board Rev", - "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, - "pattern": "board_rev", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Model", - "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, - "pattern": "model", - "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, - "pattern": "device_ap", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Unifi Serial #", - "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, - "pattern": "serial", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Site ID", - "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, - "pattern": "site_id", - "thresholds": [], - "type": "hidden", - "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": 2, - "pattern": "Version", - "thresholds": [], - "type": "string", - "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, - "pattern": "Last Seen", - "sanitize": true, - "thresholds": [], - "type": "number", - "unit": "dateTimeAsUS" - }, - { - "alias": "Bandsteering 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, - "pattern": "bandsteering_mode", - "thresholds": [], - "type": "string", - "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, - "pattern": "CPU", - "thresholds": [], - "type": "number", - "unit": "percent" - }, - { - "alias": "Guests", - "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": 0, - "pattern": "guest-num_sta", - "thresholds": [], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "$col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "model" - ], - "type": "tag" - }, - { - "params": [ - "cfgversion" - ], - "type": "tag" - }, - { - "params": [ - "board_rev" - ], - "type": "tag" - }, - { - "params": [ - "serial" - ], - "type": "tag" - }, - { - "params": [ - "site_id" - ], - "type": "tag" - }, - { - "params": [ - "bandsteering_mode" - ], - "type": "tag" - }, - { - "params": [ - "device_ap" - ], - "type": "tag" - }, - { - "params": [ - "guest-num_sta" - ], - "type": "tag" - } - ], - "measurement": "uap", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "version" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Version" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "IP" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "uptime" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Uptime" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "last_seen" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "*1000" - ], - "type": "math" - }, - { - "params": [ - "Last Seen" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cpu" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "CPU" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "user-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Users" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "timeFrom": null, - "title": "AP Details", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "cacheTimeout": null, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "description": "", - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 14 - }, - "hideTimeOverride": true, - "id": 30, - "interval": "", - "legend": { - "avg": false, - "current": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "uap", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "cpu" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "title": "CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": "", - "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, - "cacheTimeout": null, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "description": "", - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 14 - }, - "hideTimeOverride": true, - "id": 47, - "interval": "", - "legend": { - "avg": false, - "current": false, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "null", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "uap", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT \"mem_used\" FROM \"uap\" WHERE (\"name\" =~ /^$host$/ AND \"site_name\" =~ /^$Site$/) AND $timeFilter GROUP BY \"name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "mem" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": "1h", - "timeRegions": [], - "timeShift": null, - "title": "Memory Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": "", - "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}", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 21 - }, - "id": 3, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/load15$/", - "fill": 0, - "lines": true, - "linewidth": 6 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "uap", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "loadavg_1" - ], - "type": "field" - }, - { - "params": [ - "load 1" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "loadavg_5" - ], - "type": "field" - }, - { - "params": [ - "laid 5" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "loadavg_15" - ], - "type": "field" - }, - { - "params": [ - "load15" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Load Average", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": null, - "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}", - "decimals": 0, - "editable": true, - "error": false, - "fill": 0, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 21 - }, - "id": 46, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": true, - "targets": [ - { - "alias": "$tag_device_name total", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT last(\"num_sta\") FROM \"uap_radios\" WHERE (\"device_name\" =~ /^$host$/ AND \"radio\" = 'na') AND $timeFilter GROUP BY time($__interval), \"device_name\"", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - }, - { - "condition": "AND", - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Clients per Access Point", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "", - "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": "Devices TX / RX bytes per second grouped by OUI. RX on negative axis.", - "fill": 1, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 28 - }, - "id": 42, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_oui $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "oui" - ], - "type": "tag" - }, - { - "params": [ - "none" - ], - "type": "fill" - } - ], - "hide": false, - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(sum(\"rx_bytes\"), 1s) AS \"Rx\", derivative(sum(\"rx_bytes\"), 1s) AS \"Rx\" FROM \"clients\" WHERE (\"oui\" = 'Htc' AND \"is_wired\" = 'false') AND $timeFilter GROUP BY time(30s), \"oui\" fill(none)", - "rawQuery": false, - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "tx_bytes_r" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "rx_bytes_r" - ], - "type": "field" - }, - { - "params": [], - "type": "sum" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WIFI Traffic per Vendor (all AP in Site(s): $Site)", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "label": null, - "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}", - "decimals": 0, - "editable": true, - "error": false, - "fill": 2, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 28 - }, - "id": 19, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": true, - "hideZero": true, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": true, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name 5GHz $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Users" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "guest-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Guests" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - }, - { - "alias": "$tag_device_name 2.4GHz $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "guest-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Guests" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "user-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Users" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Users and Guests per AP band", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "none", - "label": "", - "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}", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 36 - }, - "id": 18, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "ccq" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - " / 10" - ], - "type": "math" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Client Connection Quality", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": null, - "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}", - "fill": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 36 - }, - "id": 44, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": false, - "hideZero": false, - "max": true, - "min": true, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_ap_mac", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "ap_mac" - ], - "type": "tag" - } - ], - "measurement": "clients", - "orderByTime": "ASC", - "policy": "default", - "query": "SELECT derivative(first(\"wired-rx_bytes\"), 1s) FROM \"clients\" WHERE (\"hostname\" = 'dns-rtn') AND $timeFilter GROUP BY time(10s) fill(none)", - "rawQuery": false, - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rssi" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "is_wired", - "operator": "!=", - "value": "true" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Rssi (all APs in Site(s): $Site)", - "tooltip": { - "shared": true, - "sort": 2, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "dBm", - "label": "Rssi", - "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}", - "editable": true, - "error": false, - "fill": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 0, - "y": 44 - }, - "id": 8, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "cu_self_rx" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cu_self_tx" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cu_total" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Total" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "5 GHz Channel Utilization", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "percent", - "label": null, - "logBase": 1, - "max": null, - "min": "0", - "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": "Displays 2.4GHz usage.", - "editable": true, - "error": false, - "fill": 0, - "gridPos": { - "h": 8, - "w": 12, - "x": 12, - "y": 44 - }, - "id": 27, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "cu_self_rx" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cu_self_tx" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cu_total" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Total" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "2.4GHz Channel Utilization", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "percent", - "label": null, - "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": "RX is on the negative Axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 52 - }, - "id": 20, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "*8" - ], - "type": "math" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "*8" - ], - "type": "math" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "5 GHz Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "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": "RX is on the negative Axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 52 - }, - "id": 24, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "current", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "*8" - ], - "type": "math" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "*8" - ], - "type": "math" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "2.4GHz Traffic", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "bps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "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}", - "decimals": 0, - "description": "PPS on the na band. In is on the negative Axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 59 - }, - "id": 22, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/In$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Out" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "5 GHz Packets", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "pps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "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}", - "decimals": 0, - "description": "PPS on the ng band calculated in 30 second buckets. In is on the negative Axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 59 - }, - "id": 25, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/In$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Out" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "2.4GHz Packets", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "pps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "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}", - "decimals": 0, - "description": "Visualize packet errors (several types) per second in the 5GHz band.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 66 - }, - "id": 21, - "interval": "", - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/In$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "radio" - ], - "type": "tag" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop:Out" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error:Out" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_crypts" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "BadCrypt:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_frags" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "BadFrag:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_retries" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "ExsRetry:Out" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "na" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "5GHz Drops/Errors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "pps", - "label": "", - "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}", - "decimals": 0, - "description": "In is on the negative axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 66 - }, - "id": 26, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": true, - "show": true, - "sort": null, - "sortDesc": null, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/In$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_device_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "uap_radios", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "vap_rx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop:Out" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error:Out" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_crypts" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "BadCrypt:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_rx_frags" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "BadFrag:In" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vap_tx_retries" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "ExsRetry:Out" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "radio", - "operator": "=", - "value": "ng" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "2.4GHz Drops/Errors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "pps", - "label": null, - "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 - } - } - ], - "refresh": "30s", - "schemaVersion": 18, - "style": "dark", - "tags": [ - "unifi", - "uap" - ], - "templating": { - "list": [ - { - "current": { - "text": "Glances", - "value": "Glances" - }, - "hide": 2, - "includeAll": false, - "label": null, - "multi": false, - "name": "dataSource", - "options": [], - "query": "influxdb", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "type": "datasource" - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"uap\" with key=\"site_name\"", - "hide": 0, - "includeAll": true, - "label": "", - "multi": true, - "name": "Site", - "options": [], - "query": "show tag values from \"uap\" with key=\"site_name\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": null, - "tags": [], - "tagsQuery": null, - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"uap\" with key=\"name\" where site_name =~ /$Site$/", - "hide": 0, - "includeAll": true, - "label": "UniFi AP:", - "multi": true, - "name": "host", - "options": [], - "query": "show tag values from \"uap\" with key=\"name\" where site_name =~ /$Site$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": null, - "tags": [], - "tagsQuery": null, - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now-5s" - }, - "timepicker": { - "nowDelay": "5s", - "refresh_intervals": [ - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "UniFi UAP Insights", - "uid": "8nQ_RPZiz", - "version": 56 -} \ No newline at end of file diff --git a/examples/unifi-usg-dashboard.png b/examples/unifi-usg-dashboard.png deleted file mode 100644 index 9cd5f17a..00000000 Binary files a/examples/unifi-usg-dashboard.png and /dev/null differ diff --git a/examples/unifi-usg-grafana-dash.json b/examples/unifi-usg-grafana-dash.json deleted file mode 100644 index abc4b953..00000000 --- a/examples/unifi-usg-grafana-dash.json +++ /dev/null @@ -1,3767 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_UNIFI", - "label": "Unifi", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.2.1" - }, - { - "type": "panel", - "id": "grafana-clock-panel", - "name": "Clock", - "version": "0.1.0" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "singlestat", - "name": "Singlestat", - "version": "" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - }, - { - "type": "panel", - "id": "text", - "name": "Text", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "showIn": 0, - "type": "dashboard" - } - ] - }, - "description": "", - "editable": true, - "gnetId": 1486, - "graphTooltip": 2, - "id": null, - "iteration": 1559898661329, - "links": [ - { - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "unifi" - ], - "type": "dashboards" - } - ], - "panels": [ - { - "content": "
\n
Unifi USG
\n", - "gridPos": { - "h": 4, - "w": 3, - "x": 0, - "y": 0 - }, - "id": 34, - "links": [], - "mode": "html", - "options": {}, - "title": "", - "transparent": true, - "type": "text" - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "editable": true, - "error": false, - "fontSize": "100%", - "gridPos": { - "h": 4, - "w": 21, - "x": 3, - "y": 0 - }, - "id": 1, - "isNew": true, - "links": [], - "options": {}, - "pageSize": null, - "scroll": false, - "showHeader": true, - "sort": { - "col": 11, - "desc": true - }, - "styles": [ - { - "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, - "pattern": "Time", - "thresholds": [], - "type": "hidden", - "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": 2, - "pattern": "Uptime", - "thresholds": [], - "type": "number", - "unit": "dtdurations" - }, - { - "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, - "link": false, - "linkTargetBlank": true, - "linkUrl": "http:", - "pattern": "name", - "preserveFormat": false, - "sanitize": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Config Version", - "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, - "pattern": "cfgversion", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Model", - "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, - "pattern": "model", - "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, - "pattern": "mac", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Unifi Serial #", - "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, - "pattern": "serial", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Site ID", - "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, - "pattern": "site_id", - "thresholds": [], - "type": "hidden", - "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": 2, - "pattern": "Version", - "thresholds": [], - "type": "string", - "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, - "pattern": "Last Seen", - "sanitize": true, - "thresholds": [], - "type": "number", - "unit": "dateTimeAsUS" - }, - { - "alias": "", - "colorMode": "value", - "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": 1, - "pattern": "CPU", - "thresholds": [ - "60", - "80" - ], - "type": "number", - "unit": "percent" - }, - { - "alias": "LAN 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, - "pattern": "connect_request_ip", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "", - "colorMode": "value", - "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": 1, - "pattern": "Memory", - "thresholds": [ - "50", - "80" - ], - "type": "number", - "unit": "percent" - }, - { - "alias": "", - "colorMode": "value", - "colors": [ - "#890f02", - "#890f02", - "rgb(35, 143, 0)" - ], - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "decimals": 0, - "pattern": "Upgradable", - "thresholds": [ - "0", - "0" - ], - "type": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "$col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "model" - ], - "type": "tag" - }, - { - "params": [ - "cfgversion" - ], - "type": "tag" - }, - { - "params": [ - "connect_request_ip" - ], - "type": "tag" - }, - { - "params": [ - "serial" - ], - "type": "tag" - }, - { - "params": [ - "site_id" - ], - "type": "tag" - }, - { - "params": [ - "mac" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "version" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Version" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "WAN IP" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "uptime" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Uptime" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "last_seen" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "*1000" - ], - "type": "math" - }, - { - "params": [ - "Last Seen" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "cpu" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "CPU" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "mem" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Memory" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "upgradable" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Upgradable" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "timeFrom": null, - "title": "USG Details", - "transform": "table", - "transparent": true, - "type": "table" - }, - { - "cacheTimeout": null, - "colorBackground": true, - "colorValue": false, - "colors": [ - "#511749", - "#3f2b5b", - "#511749" - ], - "datasource": "${DS_UNIFI}", - "decimals": 3, - "format": "dtdurations", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": false, - "thresholdMarkers": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 4 - }, - "id": 29, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "20%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "uptime" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "title": "System Uptime", - "type": "singlestat", - "valueFontSize": "30%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 0, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 1, - "x": 3, - "y": 4 - }, - "hideTimeOverride": true, - "id": 39, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "guest-num_sta" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "timeFrom": "1h", - "title": "Guests", - "transparent": true, - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 1, - "description": "", - "format": "ms", - "gauge": { - "maxValue": 100, - "minValue": 10, - "show": true, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 4, - "y": 4 - }, - "hideTimeOverride": false, - "id": 45, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "#3f2b5b", - "full": true, - "lineColor": "#dedaf7", - "show": true - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "uplink_latency" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "40,60", - "timeFrom": null, - "title": "Uplink Latency", - "transparent": true, - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_UNIFI}", - "decimals": 1, - "description": "", - "format": "Mbits", - "gauge": { - "maxValue": 50, - "minValue": 0, - "show": true, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 8, - "y": 4 - }, - "hideTimeOverride": false, - "id": 44, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "#3f2b5b", - "full": false, - "lineColor": "#dedaf7", - "show": false - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "speedtest-status_xput_upload" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "10,20", - "timeFrom": null, - "title": "Upload Test", - "transparent": true, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#d44a3a", - "rgba(237, 129, 40, 0.89)", - "#299c46" - ], - "datasource": "${DS_UNIFI}", - "decimals": 1, - "description": "", - "format": "Mbits", - "gauge": { - "maxValue": 1000, - "minValue": 0, - "show": true, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 12, - "y": 4 - }, - "hideTimeOverride": false, - "id": 41, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "#3f2b5b", - "full": false, - "lineColor": "#dedaf7", - "show": false - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "speedtest-status_xput_download" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "200,400", - "timeFrom": null, - "title": "Download Test", - "transparent": true, - "type": "singlestat", - "valueFontSize": "50%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "0" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 1, - "format": "percent", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": true, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 16, - "y": 4 - }, - "hideTimeOverride": false, - "id": 37, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "#3f2b5b", - "full": true, - "lineColor": "#806eb7", - "show": true - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "cpu" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "60,80", - "timeFrom": null, - "title": "CPU Usage", - "transparent": true, - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": false, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 1, - "description": "", - "format": "percent", - "gauge": { - "minValue": null, - "show": true, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 6, - "w": 4, - "x": 20, - "y": 4 - }, - "hideTimeOverride": false, - "id": 30, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "#3f2b5b", - "full": true, - "lineColor": "#dedaf7", - "show": true - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "mem" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "50,80", - "timeFrom": null, - "title": "Memory Usage", - "transparent": true, - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 0, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 1, - "x": 3, - "y": 6 - }, - "hideTimeOverride": true, - "id": 38, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "", - "postfixFontSize": "50%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": true - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "user-num_sta" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "timeFrom": "1h", - "title": "Users", - "transparent": true, - "type": "singlestat", - "valueFontSize": "70%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "bgColor": "#3f2b5b", - "clockType": "12 hour", - "countdownSettings": { - "customFormat": null, - "endCountdownTime": "2018-04-29T21:47:00.000Z", - "endText": "00:00:00" - }, - "dateSettings": { - "dateFormat": "YYYY-MM-DD", - "fontSize": "12px", - "fontWeight": "bold", - "showDate": true - }, - "gridPos": { - "h": 3, - "w": 3, - "x": 0, - "y": 7 - }, - "id": 32, - "links": [], - "mode": "time", - "offsetFromUtc": null, - "offsetFromUtcMinutes": null, - "options": {}, - "refreshSettings": { - "syncWithDashboard": false - }, - "timeSettings": { - "customFormat": "HH:mm:ss", - "fontSize": "24px", - "fontWeight": "normal" - }, - "timezone": null, - "timezoneSettings": { - "fontSize": "12px", - "fontWeight": "normal", - "showTimezone": false, - "zoneFormat": "offsetAbbv" - }, - "title": "Now", - "type": "grafana-clock-panel" - }, - { - "cacheTimeout": null, - "colorBackground": false, - "colorValue": true, - "colors": [ - "#299c46", - "rgba(237, 129, 40, 0.89)", - "#d44a3a" - ], - "datasource": "${DS_UNIFI}", - "decimals": 0, - "format": "none", - "gauge": { - "maxValue": 100, - "minValue": 0, - "show": false, - "thresholdLabels": true, - "thresholdMarkers": true - }, - "gridPos": { - "h": 2, - "w": 1, - "x": 3, - "y": 8 - }, - "hideTimeOverride": true, - "id": 46, - "interval": null, - "links": [], - "mappingType": 1, - "mappingTypes": [ - { - "name": "value to text", - "value": 1 - }, - { - "name": "range to text", - "value": 2 - } - ], - "maxDataPoints": 100, - "nullPointMode": "connected", - "nullText": null, - "options": {}, - "postfix": "M", - "postfixFontSize": "30%", - "prefix": "", - "prefixFontSize": "50%", - "rangeMaps": [ - { - "from": "null", - "text": "N/A", - "to": "null" - } - ], - "sparkline": { - "fillColor": "rgba(31, 118, 189, 0.18)", - "full": false, - "lineColor": "rgb(31, 120, 193)", - "show": false - }, - "tableColumn": "system_uptime", - "targets": [ - { - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "uplink_speed" - ], - "type": "field" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": "", - "timeFrom": "1h", - "title": "Speed", - "transparent": true, - "type": "singlestat", - "valueFontSize": "30%", - "valueMaps": [ - { - "op": "=", - "text": "N/A", - "value": "null" - } - ], - "valueName": "current" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": 2, - "description": "", - "editable": true, - "error": false, - "fill": 2, - "gridPos": { - "h": 7, - "w": 9, - "x": 0, - "y": 10 - }, - "id": 47, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": true, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name:$col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan1_rx_multicast" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Multicast:In" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Multicast", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "pps", - "label": "packets / 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 - } - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "90%", - "gridPos": { - "h": 7, - "w": 15, - "x": 9, - "y": 10 - }, - "id": 43, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 0, - "desc": true - }, - "styles": [ - { - "alias": "Time", - "dateFormat": "YYYY-MM-DD HH:mm:ss", - "pattern": "Time", - "type": "hidden" - }, - { - "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, - "pattern": "device_name", - "thresholds": [], - "type": "hidden", - "unit": "short" - }, - { - "alias": "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, - "pattern": "device_mac", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "On", - "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, - "pattern": "enabled", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "IGMP", - "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, - "pattern": "igmp_snooping", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Guest", - "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, - "pattern": "is_guest", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Nat", - "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, - "pattern": "is_nat", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Network 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, - "pattern": "name", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "Group", - "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, - "pattern": "networkgroup", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "UPNP", - "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, - "pattern": "upnp_lan_enabled", - "thresholds": [], - "type": "string", - "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": 2, - "pattern": "Domain", - "thresholds": [], - "type": "string", - "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": 2, - "pattern": "IP", - "thresholds": [], - "type": "string", - "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": 2, - "pattern": "Subnet", - "thresholds": [], - "type": "string", - "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": 0, - "pattern": "Clients", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "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": 0, - "pattern": "VLAN", - "thresholds": [], - "type": "number", - "unit": "none" - }, - { - "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, - "pattern": "Purpose", - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "dhcpd_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, - "pattern": "config_network_type", - "preserveFormat": false, - "thresholds": [], - "type": "string", - "unit": "short" - }, - { - "alias": "DHCPD", - "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, - "pattern": "dhcpd_enabled", - "thresholds": [], - "type": "string", - "unit": "short" - } - ], - "targets": [ - { - "alias": "$tag_device_name $col", - "groupBy": [ - { - "params": [ - "device_name" - ], - "type": "tag" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "device_mac" - ], - "type": "tag" - }, - { - "params": [ - "dhcpd_enabled" - ], - "type": "tag" - }, - { - "params": [ - "enabled" - ], - "type": "tag" - }, - { - "params": [ - "is_nat" - ], - "type": "tag" - }, - { - "params": [ - "networkgroup" - ], - "type": "tag" - }, - { - "params": [ - "upnp_lan_enabled" - ], - "type": "tag" - }, - { - "params": [ - "igmp_snooping" - ], - "type": "tag" - }, - { - "params": [ - "is_guest" - ], - "type": "tag" - } - ], - "measurement": "usg_networks", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "domain_name" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Domain" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "IP" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "ip_subnet" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Subnet" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Clients" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "vlan" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "VLAN" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "purpose" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Purpose" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "device_name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - }, - { - "groupBy": [], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "table", - "select": [ - [ - { - "params": [ - "wan1_enable" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "enabled" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_ip" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "IP" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_netmask" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Subnet" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "user-num_sta" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Clients" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_gateway" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Domain" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_mac" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "device_mac" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_name" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "name" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_name" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "networkgroup" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "false" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "igmp_snooping" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "false" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "upnp_lan_enabled" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "false" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "is_nat" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "false" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "is_guest" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "config_network_wan_type" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "dhcpd_enabled" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_purpose" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Purpose" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "title": "Networks", - "transform": "table", - "type": "table" - }, - { - "aliasColors": {}, - "bars": false, - "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. Rx is on the negative axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 9, - "w": 12, - "x": 0, - "y": 17 - }, - "id": 3, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan-rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan-tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Throughput", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "transparent": true, - "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": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "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, - "gridPos": { - "h": 9, - "w": 12, - "x": 12, - "y": 17 - }, - "id": 35, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "lan-rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "lan-tx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "LAN Throughput", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "transparent": true, - "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": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": null, - "description": "May show problems with your WAN interface. Rx is on the negative axis.", - "editable": true, - "error": false, - "fill": 2, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 26 - }, - "id": 26, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sort": null, - "sortDesc": null, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name:$col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan1_rx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_tx_errors" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Error Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Errors", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "pps", - "label": "packets / 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}", - "decimals": null, - "description": "May show problems with your WAN interface. Rx on negative axis.", - "editable": true, - "error": false, - "fill": 2, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 26 - }, - "id": 48, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sort": null, - "sortDesc": null, - "total": true, - "values": true - }, - "lines": true, - "linewidth": 2, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/:Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name:$col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan1_rx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan1_tx_dropped" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Drop Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Drops", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 0, - "value_type": "cumulative" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "pps", - "label": "packets / 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}", - "decimals": null, - "description": "PPS on the WAN interface. Rx is on the negative axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 0, - "y": 33 - }, - "id": 36, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Rx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "wan-rx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "wan-tx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "WAN Packets", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "pps", - "label": "packets / second", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "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}", - "decimals": null, - "description": "PPS on the LAN interface. Rx is on the negative axis.", - "editable": true, - "error": false, - "fill": 1, - "gridPos": { - "h": 7, - "w": 12, - "x": 12, - "y": 33 - }, - "id": 25, - "isNew": true, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "rightSide": false, - "show": true, - "sort": "max", - "sortDesc": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 3, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 5, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/Tx$/", - "transform": "negative-Y" - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "dsType": "influxdb", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usg", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "lan-rx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "lan-tx_packets" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "derivative" - }, - { - "params": [ - "Tx" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "name", - "operator": "=~", - "value": "/^$host$/" - }, - { - "condition": "AND", - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "LAN Packets", - "tooltip": { - "msResolution": false, - "shared": true, - "sort": 2, - "value_type": "cumulative" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "pps", - "label": "packets / second", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "format": "pps", - "label": null, - "logBase": 1, - "max": null, - "min": null, - "show": false - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - } - ], - "refresh": "30s", - "schemaVersion": 18, - "style": "dark", - "tags": [ - "unifi", - "usg" - ], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"usg\" with key=\"site_name\"", - "hide": 0, - "includeAll": true, - "label": "", - "multi": true, - "name": "Site", - "options": [], - "query": "show tag values from \"usg\" with key=\"site_name\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": null, - "tags": [], - "tagsQuery": null, - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"usg\" with key=\"name\" where site_name =~ /$Site$/", - "hide": 0, - "includeAll": true, - "label": "UniFi USG:", - "multi": true, - "name": "host", - "options": [], - "query": "show tag values from \"usg\" with key=\"name\" where site_name =~ /$Site$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": null, - "tags": [], - "tagsQuery": null, - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now-5s" - }, - "timepicker": { - "nowDelay": "5s", - "refresh_intervals": [ - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "browser", - "title": "UniFi USG Insights", - "uid": "WX6RJOMik", - "version": 38 -} \ No newline at end of file diff --git a/examples/unifi-usw-dashboard.png b/examples/unifi-usw-dashboard.png deleted file mode 100644 index 948d8da3..00000000 Binary files a/examples/unifi-usw-dashboard.png and /dev/null differ diff --git a/examples/unifi-usw-grafana-dash.json b/examples/unifi-usw-grafana-dash.json deleted file mode 100644 index a40c3ce2..00000000 --- a/examples/unifi-usw-grafana-dash.json +++ /dev/null @@ -1,3414 +0,0 @@ -{ - "__inputs": [ - { - "name": "DS_UNIFI", - "label": "Unifi", - "description": "", - "type": "datasource", - "pluginId": "influxdb", - "pluginName": "InfluxDB" - } - ], - "__requires": [ - { - "type": "grafana", - "id": "grafana", - "name": "Grafana", - "version": "6.2.1" - }, - { - "type": "panel", - "id": "graph", - "name": "Graph", - "version": "" - }, - { - "type": "datasource", - "id": "influxdb", - "name": "InfluxDB", - "version": "1.0.0" - }, - { - "type": "panel", - "id": "table", - "name": "Table", - "version": "" - } - ], - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": "-- Grafana --", - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "description": "Unifi Switch Metrics", - "editable": true, - "gnetId": null, - "graphTooltip": 1, - "id": null, - "iteration": 1559898956053, - "links": [ - { - "icon": "external link", - "includeVars": true, - "keepTime": true, - "tags": [ - "unifi" - ], - "type": "dashboards" - } - ], - "panels": [ - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 0 - }, - "id": 137, - "panels": [], - "title": "Aggregate Graphs", - "type": "row" - }, - { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": 1, - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 0, - "y": 1 - }, - "id": 1149, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/F$/", - "yaxis": 2 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name Temperature C", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usw", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "general_temperature" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Switch$/" - } - ] - }, - { - "alias": "$tag_name Temperature F", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usw", - "orderByTime": "ASC", - "policy": "default", - "refId": "B", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "general_temperature" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "*9/5+32" - ], - "type": "math" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Switch$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Tmperature", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 1, - "format": "celsius", - "label": "Celcius", - "logBase": 1, - "max": null, - "min": null, - "show": true - }, - { - "decimals": null, - "format": "farenheit", - "label": "Farenheit", - "logBase": 1, - "max": null, - "min": null, - "show": true - } - ], - "yaxis": { - "align": false, - "alignLevel": null - } - }, - { - "aliasColors": { - "switch load 1": "red", - "switch load 5": "blue" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": null, - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 6, - "y": 1 - }, - "id": 1150, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": false, - "show": true, - "total": false, - "values": true - }, - "lines": true, - "linewidth": 1, - "links": [], - "nullPointMode": "connected", - "options": {}, - "percentage": false, - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [ - { - "alias": "/load 15$/", - "fill": 0, - "linewidth": 6 - } - ], - "spaceLength": 10, - "stack": false, - "steppedLine": false, - "targets": [ - { - "alias": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usw", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "loadavg_1" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "load 1" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "loadavg_5" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "load 5" - ], - "type": "alias" - } - ], - [ - { - "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$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Load Average", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "short", - "label": null, - "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": { - "switch CPU %": "dark-purple" - }, - "bars": false, - "dashLength": 10, - "dashes": false, - "datasource": "${DS_UNIFI}", - "decimals": null, - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 12, - "y": 1 - }, - "id": 1169, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": 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": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usw", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "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": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch CPU Usage", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "percent", - "label": "CPU %", - "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}", - "decimals": null, - "fill": 1, - "gridPos": { - "h": 7, - "w": 6, - "x": 18, - "y": 1 - }, - "id": 1170, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "max": true, - "min": 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": "$tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "measurement": "usw", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "mem_total" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "Total" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "mem_used" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "Used" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "mem_buffer" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "Buffer" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - }, - { - "condition": "AND", - "key": "name", - "operator": "=~", - "value": "/^$Switch$/" - } - ] - } - ], - "thresholds": [], - "timeFrom": null, - "timeRegions": [], - "timeShift": null, - "title": "Switch Memory", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": null, - "format": "decbytes", - "label": "Memory in Bytes", - "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 data transferred for ports: $Port. TX on positive axis and RX on negative axis.", - "fill": 1, - "gridPos": { - "h": 17, - "w": 24, - "x": 0, - "y": 8 - }, - "id": 135, - "legend": { - "alignAsTable": true, - "avg": false, - "current": true, - "hideEmpty": true, - "hideZero": false, - "max": true, - "min": false, - "rightSide": true, - "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": "$tag_port_id $tag_name $col", - "groupBy": [ - { - "params": [ - "$__interval" - ], - "type": "time" - }, - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "port_id" - ], - "type": "tag" - } - ], - "measurement": "usw_ports", - "orderByTime": "ASC", - "policy": "default", - "refId": "A", - "resultFormat": "time_series", - "select": [ - [ - { - "params": [ - "rx_bytes" - ], - "type": "field" - }, - { - "params": [], - "type": "mean" - }, - { - "params": [ - "1s" - ], - "type": "non_negative_derivative" - }, - { - "params": [ - "Rx" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "tx_bytes" - ], - "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": "Data Transfer", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "buckets": null, - "mode": "time", - "name": null, - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "Bps", - "label": "Bytes 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 - } - }, - { - "columns": [], - "datasource": "${DS_UNIFI}", - "fontSize": "90%", - "gridPos": { - "h": 21, - "w": 24, - "x": 0, - "y": 25 - }, - "id": 214, - "links": [], - "options": {}, - "pageSize": null, - "scroll": true, - "showHeader": true, - "sort": { - "col": 11, - "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": "Dot1x", - "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": "dot1x_status", - "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": "number", - "unit": "short" - }, - { - "alias": "Port", - "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": 0, - "mappingType": 1, - "pattern": "port_idx", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "AutoNeg", - "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": "autoneg", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "FlowCtrl RX", - "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": "flowctrl_rx", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "FlowCtrl TX", - "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": "flowctrl_tx", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "alias": "Uplink", - "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": "is_uplink", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "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": "number", - "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": "number", - "unit": "short" - }, - { - "alias": "Media", - "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": "media", - "thresholds": [], - "type": "number", - "unit": "short" - }, - { - "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": "number", - "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": "number", - "unit": "short" - } - ], - "targets": [ - { - "alias": "$tag_device_name $col", - "groupBy": [ - { - "params": [ - "name" - ], - "type": "tag" - }, - { - "params": [ - "is_uplink" - ], - "type": "tag" - }, - { - "params": [ - "enable" - ], - "type": "tag" - }, - { - "params": [ - "jumbo" - ], - "type": "tag" - }, - { - "params": [ - "media" - ], - "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" - }, - { - "params": [ - "flowctrl_rx" - ], - "type": "tag" - }, - { - "params": [ - "flowctrl_tx" - ], - "type": "tag" - }, - { - "params": [ - "autoneg" - ], - "type": "tag" - }, - { - "params": [ - "dot1x_status" - ], - "type": "tag" - }, - { - "params": [ - "port_idx" - ], - "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": [ - "poe_current" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "POE Current" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "poe_voltage" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "POE Voltage" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "speed" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "Speed" - ], - "type": "alias" - } - ], - [ - { - "params": [ - "poe_power" - ], - "type": "field" - }, - { - "params": [], - "type": "last" - }, - { - "params": [ - "POE Power" - ], - "type": "alias" - } - ] - ], - "tags": [ - { - "key": "site_name", - "operator": "=~", - "value": "/^$Site$/" - }, - { - "condition": "AND", - "key": "device_name", - "operator": "=~", - "value": "/^$Switch$/" - } - ] - } - ], - "title": "All Port Information", - "transform": "table", - "transparent": true, - "type": "table" - }, - { - "collapsed": false, - "gridPos": { - "h": 1, - "w": 24, - "x": 0, - "y": 46 - }, - "id": 4, - "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": "30s", - "schemaVersion": 18, - "style": "dark", - "tags": [ - "unifi", - "usw" - ], - "templating": { - "list": [ - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"usw\" with key=\"site_name\"", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "Site", - "options": [], - "query": "show tag values from \"usw\" with key=\"site_name\"", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /$Site$/", - "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$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - }, - { - "allValue": null, - "current": {}, - "datasource": "${DS_UNIFI}", - "definition": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /$Switch$/ AND site_name =~ /$Site$/", - "hide": 0, - "includeAll": true, - "label": null, - "multi": true, - "name": "Port", - "options": [], - "query": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /$Switch$/ AND site_name =~ /$Site$/", - "refresh": 1, - "regex": "", - "skipUrlSync": false, - "sort": 3, - "tagValuesQuery": "", - "tags": [], - "tagsQuery": "", - "type": "query", - "useTags": false - } - ] - }, - "time": { - "from": "now-3h", - "to": "now-5s" - }, - "timepicker": { - "refresh_intervals": [ - "30s", - "1m", - "5m", - "15m", - "30m", - "1h", - "2h", - "1d" - ], - "time_options": [ - "5m", - "15m", - "1h", - "6h", - "12h", - "24h", - "2d", - "7d", - "30d" - ] - }, - "timezone": "", - "title": "UniFi USW Insights", - "uid": "HIKZ98GZz", - "version": 87 -} \ No newline at end of file