Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "annotations": {
- "list": [
- {
- "builtIn": 1,
- "datasource": {
- "type": "grafana",
- "uid": "-- Grafana --"
- },
- "enable": true,
- "hide": true,
- "iconColor": "rgba(0, 211, 255, 1)",
- "name": "Annotations & Alerts",
- "target": {
- "limit": 100,
- "matchAny": false,
- "tags": [],
- "type": "dashboard"
- },
- "type": "dashboard"
- }
- ]
- },
- "editable": true,
- "fiscalYearStartMonth": 0,
- "graphTooltip": 0,
- "id": 10,
- "links": [
- {
- "asDropdown": true,
- "icon": "external link",
- "includeVars": false,
- "keepTime": false,
- "tags": [
- "unifi-poller"
- ],
- "targetBlank": false,
- "title": "UniFi Poller",
- "tooltip": "",
- "type": "dashboards",
- "url": ""
- }
- ],
- "liveNow": false,
- "panels": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "max": 1200000000000,
- "min": 0,
- "thresholds": {
- "mode": "percentage",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#EAB839",
- "value": 75
- },
- {
- "color": "red",
- "value": 90
- }
- ]
- },
- "unit": "decbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 0,
- "y": 0
- },
- "id": 3,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.5.5",
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "orderByTime": "ASC",
- "query": "SELECT (r_end - r_start + t_end - t_start) as Total FROM\n (SELECT first(tx_bytes) as t_start FROM usw WHERE $timeFilter),\n (SELECT last(tx_bytes) as t_end FROM usw WHERE $timeFilter),\n (SELECT first(rx_bytes) as r_start FROM usw WHERE $timeFilter),\n (SELECT last(rx_bytes) as r_end FROM usw WHERE $timeFilter)\nfill(previous)",
- "rawQuery": true,
- "refId": "A",
- "resultFormat": "table",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": []
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "hide": false,
- "measurement": "usw",
- "orderByTime": "ASC",
- "policy": "autogen",
- "refId": "B",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Download"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Upload"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": []
- }
- ],
- "title": "Cumulative WAN Throughput",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "mappings": [],
- "max": 1200000000000,
- "min": 0,
- "thresholds": {
- "mode": "percentage",
- "steps": [
- {
- "color": "blue",
- "value": null
- }
- ]
- },
- "unit": "decbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 7,
- "w": 12,
- "x": 12,
- "y": 0
- },
- "id": 5,
- "options": {
- "orientation": "auto",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "showThresholdLabels": false,
- "showThresholdMarkers": true
- },
- "pluginVersion": "9.5.5",
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "query": "SELECT (r_end - r_start + t_end - t_start) as Total FROM\n (SELECT first(tx_bytes) as t_start FROM \"autogen\".\"usw_ports\" WHERE $timeFilter),\n (SELECT last(tx_bytes) as t_end FROM \"autogen\".\"usw_ports\" WHERE $timeFilter),\n (SELECT first(rx_bytes) as r_start FROM \"autogen\".\"usw_ports\" WHERE $timeFilter),\n (SELECT last(rx_bytes) as r_end FROM \"autogen\".\"usw_ports\" WHERE $timeFilter)\nfill(previous)",
- "rawQuery": true,
- "refId": "A",
- "resultFormat": "table"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "hide": false,
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "autogen",
- "refId": "B",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Download"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Upload"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": []
- }
- ],
- "title": "Cumulative LAN Throughput",
- "type": "gauge"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "max": 1200000000000,
- "min": 0,
- "thresholds": {
- "mode": "percentage",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "#EAB839",
- "value": 75
- },
- {
- "color": "red",
- "value": 90
- }
- ]
- },
- "unit": "decbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 7
- },
- "id": 6,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.5.5",
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "query": "SELECT (r_end - r_start + t_end - t_start) as tr_total FROM\n (SELECT first(tx_bytes) as t_start FROM usg_wan_ports WHERE $timeFilter),\n (SELECT last(tx_bytes) as t_end FROM usg_wan_ports WHERE $timeFilter),\n (SELECT first(rx_bytes) as r_start FROM usg_wan_ports WHERE $timeFilter),\n (SELECT last(rx_bytes) as r_end FROM usg_wan_ports WHERE $timeFilter)\nfill(previous)",
- "rawQuery": true,
- "refId": "A",
- "resultFormat": "table"
- }
- ],
- "title": "Cumulative WAN Throughput Alert",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineStyle": {
- "fill": "solid"
- },
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": true,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- }
- ]
- },
- "unit": "decbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 24,
- "x": 0,
- "y": 8
- },
- "id": 4,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usg_wan_ports",
- "orderByTime": "ASC",
- "policy": "autogen",
- "query": "SELECT mean_rx, mean_tx FROM \n (SELECT first(tx_bytes) as t_start FROM usg_wan_ports WHERE $timeFilter),\n (SELECT last(tx_bytes) as t_end FROM usg_wan_ports WHERE $timeFilter),\n (SELECT first(rx_bytes) as r_start FROM usg_wan_ports WHERE $timeFilter),\n (SELECT last(rx_bytes) as r_end FROM usg_wan_ports WHERE $timeFilter),\n (SELECT mean(\"rx_bytes\") as mean_rx FROM usg_wan_ports WHERE $timeFilter GROUP BY time($__interval) fill(null)),\n (SELECT mean(\"tx_bytes\") as mean_tx FROM usg_wan_ports WHERE $timeFilter GROUP BY time($__interval) fill(null))\nWHERE $timeFilter\n",
- "rawQuery": true,
- "refId": "A",
- "resultFormat": "time_series",
- "select": [
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ],
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": []
- }
- ],
- "title": "Cumulative WAN Throughput",
- "transformations": [],
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 25,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "smooth",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "Bps"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "difference"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Rx"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "difference_1"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Tx"
- },
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 10,
- "w": 24,
- "x": 0,
- "y": 18
- },
- "hideTimeOverride": true,
- "id": 2,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": false
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.0.6",
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "YT4I7YGVz"
- },
- "groupBy": [
- {
- "params": [
- "1m"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "measurement": "usw_ports",
- "orderByTime": "ASC",
- "policy": "autogen",
- "query": "SELECT difference(mean(\"rx_bytes\")), difference(mean(\"tx_bytes\")) FROM \"usw_ports\" WHERE (\"device_name\" = 'Office Lite 8 PoE' AND \"port_id\" = 'Office Lite 8 PoE Port 5') AND $timeFilter GROUP BY time($__interval) fill(null)",
- "rawQuery": false,
- "refId": "A",
- "resultFormat": "logs",
- "select": [
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [],
- "type": "difference"
- },
- {
- "params": [
- " / 60"
- ],
- "type": "math"
- }
- ],
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [],
- "type": "difference"
- },
- {
- "params": [
- " / 60"
- ],
- "type": "math"
- }
- ]
- ],
- "tags": [
- {
- "key": "device_name::tag",
- "operator": "=",
- "value": "Dream Machine Pro"
- },
- {
- "condition": "AND",
- "key": "port_idx::tag",
- "operator": "=",
- "value": "9"
- }
- ]
- }
- ],
- "title": "WAN Current Rates",
- "type": "timeseries"
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "cellOptions": {
- "type": "auto"
- },
- "inspect": false
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/^Bytes/"
- },
- "properties": [
- {
- "id": "unit",
- "value": "decbytes"
- },
- {
- "id": "decimals",
- "value": 1
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "mac"
- },
- "properties": [
- {
- "id": "displayName",
- "value": "Device MAC"
- },
- {
- "id": "unit",
- "value": "short"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Uptime"
- },
- "properties": [
- {
- "id": "unit",
- "value": "s"
- },
- {
- "id": "decimals",
- "value": 2
- },
- {
- "id": "custom.align"
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 12,
- "w": 24,
- "x": 0,
- "y": 28
- },
- "id": 8,
- "links": [],
- "options": {
- "cellHeight": "sm",
- "footer": {
- "countRows": false,
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "frameIndex": 0,
- "showHeader": true,
- "sortBy": [
- {
- "desc": true,
- "displayName": "Bytes Total"
- }
- ]
- },
- "pluginVersion": "9.5.5",
- "targets": [
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "mac"
- ],
- "type": "tag"
- }
- ],
- "hide": false,
- "measurement": "clients",
- "orderByTime": "ASC",
- "policy": "autogen",
- "query": "SELECT last(\"essid\") AS \"ESSID\", last(\"uptime\") AS \"Uptime\", mean(\"rx_bytes\") AS \"Bytes Rx\", mean(\"tx_bytes\") AS \"Bytes Tx\", last(\"ip\") AS \"Address\", last(\"hostname\") AS \"Name\" FROM \"autogen\".\"clients\" WHERE $timeFilter GROUP BY \"mac\"",
- "rawQuery": false,
- "refId": "A",
- "resultFormat": "table",
- "select": [
- [
- {
- "params": [
- "essid"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "ESSID"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "uptime"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Uptime"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "rx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [
- "Bytes Rx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "tx_bytes"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- },
- {
- "params": [
- "Bytes Tx"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "ip"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Address"
- ],
- "type": "alias"
- }
- ],
- [
- {
- "params": [
- "hostname"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "last"
- },
- {
- "params": [
- "Name"
- ],
- "type": "alias"
- }
- ]
- ],
- "tags": []
- },
- {
- "datasource": {
- "type": "influxdb",
- "uid": "c41e2d38-d75a-4234-a388-4f6818042d65"
- },
- "groupBy": [
- {
- "params": [
- "$__interval"
- ],
- "type": "time"
- },
- {
- "params": [
- "null"
- ],
- "type": "fill"
- }
- ],
- "hide": false,
- "orderByTime": "ASC",
- "query": "SELECT ESSID, Uptime, Address, Hostname, BytesRx, BytesTx, r_start, t_start, r_end, t_end\nFROM \n (SELECT last(\"essid\") AS \"ESSID\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT last(\"uptime\") AS \"Uptime\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT last(\"ip\") AS \"Address\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT last(\"hostname\") AS \"Hostname\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n\n (SELECT mean(\"rx_bytes\") AS \"BytesRx\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT mean(\"tx_bytes\") AS \"BytesTx\" FROM \"autogen\".\"clients\" WHERE $timeFilter),\n\n (SELECT first(tx_bytes) as t_start FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT last(tx_bytes) as t_end FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT first(rx_bytes) as r_start FROM \"autogen\".\"clients\" WHERE $timeFilter),\n (SELECT last(rx_bytes) as r_end FROM \"autogen\".\"clients\" WHERE $timeFilter)\n\nWHERE $timeFilter GROUP BY \"mac\" fill(previous)",
- "rawQuery": true,
- "refId": "B",
- "resultFormat": "table",
- "select": [
- [
- {
- "params": [
- "value"
- ],
- "type": "field"
- },
- {
- "params": [],
- "type": "mean"
- }
- ]
- ],
- "tags": []
- }
- ],
- "title": "Clients",
- "transform": "table",
- "transformations": [
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true,
- "channel": true,
- "radio_name": true,
- "radio_proto": true
- },
- "indexByName": {
- "Address": 3,
- "Bytes Rx": 6,
- "Bytes Tx": 7,
- "ESSID": 4,
- "Name": 2,
- "Time": 0,
- "Uptime": 5,
- "mac": 1
- },
- "renameByName": {}
- }
- },
- {
- "id": "calculateField",
- "options": {
- "alias": "Bytes Total",
- "binary": {
- "left": "Bytes Rx",
- "reducer": "sum",
- "right": "Bytes Tx"
- },
- "mode": "binary",
- "reduce": {
- "reducer": "sum"
- },
- "replaceFields": false
- }
- }
- ],
- "type": "table"
- }
- ],
- "refresh": "30s",
- "schemaVersion": 38,
- "style": "dark",
- "tags": [
- "unifi",
- "unifi-poller"
- ],
- "templating": {
- "list": []
- },
- "time": {
- "from": "now/M",
- "to": "now"
- },
- "timepicker": {},
- "timezone": "",
- "title": "Unifi: Overview",
- "uid": "d0c5adb7-b45a-441e-a632-e3d8127259ea",
- "version": 27,
- "weekStart": ""
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement