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.
-
-
+
Here's a picture of the USG dashboard.
-
-
+
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.
-
-
+
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.
-
-
+
## 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