Merge pull request #49 from davidnewhall/dn2_site_dashboard

Dashboard Updates
This commit is contained in:
David Newhall II 2019-06-18 21:18:45 -07:00 committed by GitHub
commit afd730ab65
2 changed files with 16 additions and 14 deletions

View File

@ -20,7 +20,7 @@
"type": "panel", "type": "panel",
"id": "grafana-piechart-panel", "id": "grafana-piechart-panel",
"name": "Pie Chart", "name": "Pie Chart",
"version": "1.3.3" "version": "1.3.6"
}, },
{ {
"type": "panel", "type": "panel",
@ -64,7 +64,7 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 1, "graphTooltip": 1,
"id": null, "id": null,
"iteration": 1559898655544, "iteration": 1560917693674,
"links": [ "links": [
{ {
"icon": "external link", "icon": "external link",
@ -784,7 +784,7 @@
"strokeWidth": "3", "strokeWidth": "3",
"targets": [ "targets": [
{ {
"alias": "$tag_ap_mac / $tag_radio_proto / $tag_radio / $tag_radio_name", "alias": "$tag_radio_proto",
"groupBy": [ "groupBy": [
{ {
"params": [ "params": [
@ -796,7 +796,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE (time > now() - 10m AND ap_mac =~ /$AP$/ AND \"site_name\" =~ /$Site$/ and \"name\" =~ /^$Client$/) group by radio_proto, radio, radio_name, ap_mac", "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, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -817,14 +817,14 @@
"tags": [ "tags": [
{ {
"key": "is_wired", "key": "is_wired",
"operator": "=", "operator": "!=",
"value": "false" "value": "true"
} }
] ]
} }
], ],
"timeFrom": null, "timeFrom": null,
"title": "AP Radio / Clients", "title": "Clients / AP Radio",
"transparent": true, "transparent": true,
"type": "grafana-piechart-panel", "type": "grafana-piechart-panel",
"valueName": "current" "valueName": "current"
@ -2903,5 +2903,5 @@
"timezone": "", "timezone": "",
"title": "UniFi Client Insights", "title": "UniFi Client Insights",
"uid": "YVR23BZiz", "uid": "YVR23BZiz",
"version": 54 "version": 55
} }

View File

@ -65,7 +65,7 @@
"gnetId": null, "gnetId": null,
"graphTooltip": 1, "graphTooltip": 1,
"id": null, "id": null,
"iteration": 1560630117335, "iteration": 1560916503572,
"links": [ "links": [
{ {
"icon": "external link", "icon": "external link",
@ -2789,6 +2789,8 @@
"measurement": "subsystems", "measurement": "subsystems",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "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", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
"select": [ "select": [
@ -2842,7 +2844,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Site $Site Data Transfer", "title": "Site $site Data Transfer",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 2,
@ -3021,7 +3023,7 @@
"timeFrom": null, "timeFrom": null,
"timeRegions": [], "timeRegions": [],
"timeShift": null, "timeShift": null,
"title": "Site $Site Client Counts", "title": "Site $site Client Counts",
"tooltip": { "tooltip": {
"shared": true, "shared": true,
"sort": 2, "sort": 2,
@ -3073,7 +3075,7 @@
"datasource": "${DS_UNIFI}", "datasource": "${DS_UNIFI}",
"definition": "show tag values from \"subsystems\" with key=\"site_name\"", "definition": "show tag values from \"subsystems\" with key=\"site_name\"",
"hide": 2, "hide": 2,
"includeAll": false, "includeAll": true,
"label": "", "label": "",
"multi": false, "multi": false,
"name": "site", "name": "site",
@ -3082,7 +3084,7 @@
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
"sort": 0, "sort": 1,
"tagValuesQuery": "", "tagValuesQuery": "",
"tags": [], "tags": [],
"tagsQuery": "", "tagsQuery": "",
@ -3143,5 +3145,5 @@
"timezone": "", "timezone": "",
"title": "Unifi Sites", "title": "Unifi Sites",
"uid": "5_omrT7Zz", "uid": "5_omrT7Zz",
"version": 26 "version": 36
} }