Merge branch 'master' of github.com:unpoller/dashboards

This commit is contained in:
Cody Lee 2024-05-08 08:37:55 -05:00
commit 1b972ae38d
No known key found for this signature in database
6 changed files with 1775 additions and 1775 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
"__inputs": [ "__inputs": [
{ {
"name": "DS_UNIFI_POLLER", "name": "DS_UNIFI_POLLER",
"label": "UniFi Poller", "label": "Unpoller",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "influxdb", "pluginId": "influxdb",
@ -60,7 +60,7 @@
} }
] ]
}, },
"description": "UniFi Poller v2.0.1 Displays detailed information for clients in a UniFi network.", "description": "Unpoller v2.9 Displays detailed information for clients in a UniFi network.",
"editable": true, "editable": true,
"gnetId": 10418, "gnetId": 10418,
"graphTooltip": 1, "graphTooltip": 1,
@ -75,7 +75,7 @@
"tags": [ "tags": [
"unifi-poller" "unifi-poller"
], ],
"title": "UniFi Poller", "title": "Unpoller",
"type": "dashboards" "type": "dashboards"
}, },
{ {
@ -370,7 +370,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "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\"", "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" = 'false' AND \"ap_mac\" =~ /^${AP:regex}$/) AND $timeFilter GROUP BY \"mac\", \"oui\", \"channel\", \"radio\", \"name\", \"ap_mac\"",
"rawQuery": false, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "table", "resultFormat": "table",
@ -470,13 +470,13 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -702,7 +702,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "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\"", "query": "SELECT last(\"ip\") AS \"Address\", last(\"note\") AS \"Note\", last(\"network\") AS \"Network\" FROM \"clients\" WHERE (\"is_wired\" != 'false' AND \"name\" =~ /^${Client:regex}$/ AND \"site_name\" =~ /^${Site:regex}$/) AND $timeFilter GROUP BY \"sw_port\", \"mac\", \"oui\", \"use_fixedip\", \"name\"",
"rawQuery": false, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "table", "resultFormat": "table",
@ -790,13 +790,13 @@
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wired$/" "value": "/^${Wired:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "sw_name", "key": "sw_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -861,7 +861,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /$Site$/ AND \"name\" =~ /^$Wired$/ AND sw_name =~ /$Switch$/ ) GROUP BY \"hostname\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /^${Site:regex}$/ AND \"name\" =~ /^${Wired:regex}$/ AND sw_name =~ /^${Switch:regex}$/ ) GROUP BY \"hostname\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -904,7 +904,7 @@
"hide": false, "hide": false,
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /$Site$/ AND \"name\" =~ /^$Wireless$/ AND ap_name =~ /$AP$/ ) GROUP BY \"channel\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND (\"site_name\" =~ /^${Site:regex}$/ AND \"name\" =~ /^${Wireless:regex}$/ AND ap_name =~ /^${AP:regex}$/ ) GROUP BY \"channel\"",
"rawQuery": true, "rawQuery": true,
"refId": "B", "refId": "B",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -986,7 +986,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT count(distinct(\"hostname\")) FROM \"clients\" WHERE $timeFilter AND \"ap_name\" =~ /$AP$/ AND \"site_name\" =~ /$Site$/ AND \"name\" =~ /^$Wireless$/ GROUP BY radio_proto", "query": "SELECT count(distinct(\"hostname\")) FROM \"clients\" WHERE $timeFilter AND \"ap_name\" =~ /^${AP:regex}$/ AND \"site_name\" =~ /^${Site:regex}$/ AND \"name\" =~ /^${Wireless:regex}$/ GROUP BY radio_proto",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1074,7 +1074,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /$Site$/ AND ((\"name\" =~ /^$Wireless$/ AND \"ap_name\" =~ /^$AP$/) OR (\"name\" =~ /^$Wired$/ AND \"sw_name\" =~ /$Switch$/ )) GROUP BY \"oui\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /^${Site:regex}$/ AND ((\"name\" =~ /^${Wireless:regex}$/ AND \"ap_name\" =~ /^${AP:regex}$/) OR (\"name\" =~ /^${Wired:regex}$/ AND \"sw_name\" =~ /^${Switch:regex}$/ )) GROUP BY \"oui\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1160,7 +1160,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /$Site$/ AND ((\"name\" =~ /^$Wireless$/ AND \"ap_name\" =~ /^$AP$/) OR (\"name\" =~ /^$Wired$/ AND \"sw_name\" =~ /$Switch$/ )) GROUP BY \"os_class\", \"os_name\", \"dev_cat\", \"dev_family\", \"dev_id\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE time > now() - 5m AND site_name =~ /^${Site:regex}$/ AND ((\"name\" =~ /^${Wireless:regex}$/ AND \"ap_name\" =~ /^${AP:regex}$/) OR (\"name\" =~ /^${Wired:regex}$/ AND \"sw_name\" =~ /^${Switch:regex}$/ )) GROUP BY \"os_class\", \"os_name\", \"dev_cat\", \"dev_family\", \"dev_id\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1282,7 +1282,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE (\"name\" !~ /^amazon-|camera|cam$/ AND \"name\" =~ /^$Wired$/ AND \"site_name\" =~ /^$Site$/ AND \"sw_name\" =~ /^$Switch$/) AND $timeFilter GROUP BY time($__interval),\"name\",\"mac\"fill(none)", "query": "SELECT derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE (\"name\" !~ /^amazon-|camera|cam$/ AND \"name\" =~ /^${Wired:regex}$/ AND \"site_name\" =~ /^${Site:regex}$/ AND \"sw_name\" =~ /^${Switch:regex}$/) AND $timeFilter GROUP BY time($__interval),\"name\",\"mac\"fill(none)",
"rawQuery": false, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1346,19 +1346,19 @@
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wired$/" "value": "/^${Wired:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "sw_name", "key": "sw_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -1560,19 +1560,19 @@
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1713,19 +1713,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -1880,7 +1880,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^$Client$/ AND (\"ap_name\" =~ /^$AP$/ OR \"sw_name\" =~ /$Switch$/) AND \"site_name\" =~ /^$Site$/ AND $timeFilter GROUP BY \"name\"", "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^${Client:regex}$/ AND (\"ap_name\" =~ /^${AP:regex}$/ OR \"sw_name\" =~ /^${Switch:regex}$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"",
"rawQuery": false, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1898,19 +1898,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
}, },
@ -1934,7 +1934,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^$Client$/ AND (\"ap_name\" =~ /^$AP$/ OR \"sw_name\" =~ /$Switch$/) AND \"site_name\" =~ /^$Site$/ AND $timeFilter GROUP BY \"name\"", "query": "SELECT \"ip\" FROM \"clients\" WHERE \"use_fixedip\" != 'true' AND \"name\" =~ /^${Client:regex}$/ AND (\"ap_name\" =~ /^${AP:regex}$/ OR \"sw_name\" =~ /^${Switch:regex}$/) AND \"site_name\" =~ /^${Site:regex}$/ AND $timeFilter GROUP BY \"name\"",
"rawQuery": false, "rawQuery": false,
"refId": "B", "refId": "B",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1952,19 +1952,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wired$/" "value": "/^${Wired:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "sw_name", "key": "sw_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2179,19 +2179,19 @@
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wired$/" "value": "/^${Wired:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "sw_name", "key": "sw_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
}, },
@ -2291,19 +2291,19 @@
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -2426,7 +2426,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT non_negative_derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", non_negative_derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE \"name\" =~ /camera|cam$/ AND \"site_name\" =~ /^$Site$/ AND (\"sw_name\" =~ /^$Switch$/ OR \"ap_name\" =~ /^$AP$/) AND $timeFilter GROUP BY time($__interval), \"name\", \"mac\"", "query": "SELECT non_negative_derivative(sum(\"wired-rx_bytes\"), 1s) AS \"Rx\", non_negative_derivative(sum(\"wired-tx_bytes\"), 1s) AS \"Tx\" FROM \"clients\" WHERE \"name\" =~ /camera|cam$/ AND \"site_name\" =~ /^${Site:regex}$/ AND (\"sw_name\" =~ /^${Switch:regex}$/ OR \"ap_name\" =~ /^${AP:regex}$/) AND $timeFilter GROUP BY time($__interval), \"name\", \"mac\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -2490,19 +2490,19 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "sw_name", "key": "sw_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "OR", "condition": "OR",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -2639,19 +2639,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2789,19 +2789,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2938,19 +2938,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3086,19 +3086,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3241,19 +3241,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3390,19 +3390,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3546,19 +3546,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3696,19 +3696,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3845,19 +3845,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3995,19 +3995,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4146,19 +4146,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4301,19 +4301,19 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Wireless$/" "value": "/^${Wireless:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4396,14 +4396,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\" WHERE source =~ /^$Controller$/ ", "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Site", "name": "Site",
"options": [], "options": [],
"query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\" WHERE source =~ /^$Controller$/ ", "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4418,14 +4418,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"ap_name\" WHERE site_name =~ /^$Site$/ ", "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"ap_name\" WHERE site_name =~ /^${Site:regex}$/ ",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "AP", "name": "AP",
"options": [], "options": [],
"query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"ap_name\" WHERE site_name =~ /^$Site$/ ", "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"ap_name\" WHERE site_name =~ /^${Site:regex}$/ ",
"refresh": 2, "refresh": 2,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4440,14 +4440,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"sw_name\" WHERE site_name =~ /^$Site$/ ", "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"sw_name\" WHERE site_name =~ /^${Site:regex}$/ ",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Switch", "name": "Switch",
"options": [], "options": [],
"query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"sw_name\" WHERE site_name =~ /^$Site$/ ", "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"sw_name\" WHERE site_name =~ /^${Site:regex}$/ ",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4462,14 +4462,14 @@
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^$Site$/ AND ap_name =~ /^$AP$/ AND is_wired=false", "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^${AP:regex}$/ AND is_wired=false",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Wireless", "name": "Wireless",
"options": [], "options": [],
"query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^$Site$/ AND ap_name =~ /^$AP$/ AND is_wired=false", "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND ap_name =~ /^${AP:regex}$/ AND is_wired=false",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4484,14 +4484,14 @@
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^$Site$/ AND sw_name =~ /^$Switch$/ AND is_wired=true", "definition": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^${Switch:regex}$/ AND is_wired=true",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Wired", "name": "Wired",
"options": [], "options": [],
"query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^$Site$/ AND sw_name =~ /^$Switch$/ AND is_wired=true", "query": "SHOW TAG VALUES FROM \"clients\" WITH KEY = \"name\" WHERE site_name =~ /^${Site:regex}$/ AND sw_name =~ /^${Switch:regex}$/ AND is_wired=true",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4568,5 +4568,5 @@
"timezone": "browser", "timezone": "browser",
"title": "UniFi-Poller: Client Insights - InfluxDB", "title": "UniFi-Poller: Client Insights - InfluxDB",
"uid": "YVR23BZiz", "uid": "YVR23BZiz",
"version": 16 "version": 17
} }

View File

@ -2,7 +2,7 @@
"__inputs": [ "__inputs": [
{ {
"name": "DS_UNIFI_POLLER", "name": "DS_UNIFI_POLLER",
"label": "UniFi Poller", "label": "Unpoller",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "influxdb", "pluginId": "influxdb",
@ -60,7 +60,7 @@
} }
] ]
}, },
"description": "UniFi Poller v2.0 Displays detailed information for network Sites in a UniFi controller.", "description": "Unpoller v2.9 Displays detailed information for network Sites in a UniFi controller.",
"editable": true, "editable": true,
"gnetId": 10414, "gnetId": 10414,
"graphTooltip": 1, "graphTooltip": 1,
@ -75,7 +75,7 @@
"tags": [ "tags": [
"unifi-poller" "unifi-poller"
], ],
"title": "UniFi Poller", "title": "Unpoller",
"type": "dashboards" "type": "dashboards"
}, },
{ {
@ -219,7 +219,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -334,7 +334,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -449,7 +449,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -564,7 +564,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -751,7 +751,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -857,7 +857,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -972,7 +972,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1087,7 +1087,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1202,7 +1202,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1317,7 +1317,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1432,7 +1432,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1547,7 +1547,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1702,7 +1702,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1887,7 +1887,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -1993,7 +1993,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2109,7 +2109,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2218,7 +2218,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2327,7 +2327,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2436,7 +2436,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2545,7 +2545,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2660,7 +2660,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2860,7 +2860,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2963,7 +2963,7 @@
"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)", "query": "SELECT max(\"rx_bytes-r\") AS \"Bytes RX\", max(\"tx_bytes-r\") AS \"Bytes TX\" FROM \"subsystems\" WHERE (\"site_name\" =~ /^${Site:regex}$/) AND $timeFilter GROUP BY time($__interval), \"subsystem\" fill(null)",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -3009,7 +3009,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3018,7 +3018,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,
@ -3199,7 +3199,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3208,7 +3208,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,
@ -3253,7 +3253,7 @@
"dashes": false, "dashes": false,
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"decimals": 0, "decimals": 0,
"description": "This graph only works if DPI is enabled on the controller and DPI collection is enabled in UniFi Poller. Rx is on the negative axis.", "description": "This graph only works if DPI is enabled on the controller and DPI collection is enabled in Unpoller. Rx is on the negative axis.",
"fill": 0, "fill": 0,
"fillGradient": 0, "fillGradient": 0,
"gridPos": { "gridPos": {
@ -3383,7 +3383,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3431,8 +3431,8 @@
} }
} }
], ],
"repeat": "site", "repeat": "Site",
"title": "Site: $site", "title": "Site: $Site",
"type": "row" "type": "row"
} }
], ],
@ -3470,14 +3470,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", "definition": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"hide": 2, "hide": 2,
"includeAll": true, "includeAll": true,
"label": "", "label": "",
"multi": false, "multi": false,
"name": "site", "name": "Site",
"options": [], "options": [],
"query": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", "query": "show tag values from \"subsystems\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -3542,5 +3542,5 @@
"timezone": "browser", "timezone": "browser",
"title": "UniFi-Poller: Network Sites - InfluxDB", "title": "UniFi-Poller: Network Sites - InfluxDB",
"uid": "5_omrT7Zz", "uid": "5_omrT7Zz",
"version": 9 "version": 10
} }

View File

@ -2,7 +2,7 @@
"__inputs": [ "__inputs": [
{ {
"name": "DS_UNIFI_POLLER", "name": "DS_UNIFI_POLLER",
"label": "UniFi Poller", "label": "Unpoller",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "influxdb", "pluginId": "influxdb",
@ -72,7 +72,7 @@
} }
] ]
}, },
"description": "UniFi Poller v2.0 Displays detailed information for wireless access points in a UniFi network.", "description": "Unpoller v2.9 Displays detailed information for wireless access points in a UniFi network.",
"editable": true, "editable": true,
"gnetId": 10415, "gnetId": 10415,
"graphTooltip": 1, "graphTooltip": 1,
@ -87,7 +87,7 @@
"tags": [ "tags": [
"unifi-poller" "unifi-poller"
], ],
"title": "UniFi Poller", "title": "Unpoller",
"type": "dashboards" "type": "dashboards"
}, },
{ {
@ -186,7 +186,7 @@
"measurement": "uap", "measurement": "uap",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/ GROUP BY \"channel\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /^${AP:regex}$/ AND site_name =~ /^${Site:regex}$/ GROUP BY \"channel\"",
"rawQuery": true, "rawQuery": true,
"refId": "B", "refId": "B",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -265,7 +265,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/) GROUP BY \"radio_proto\", \"ap_name\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /^${AP:regex}$/ AND site_name =~ /^${Site:regex}$/) GROUP BY \"radio_proto\", \"ap_name\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -348,7 +348,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/ GROUP BY \"oui\"", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE $timeFilter AND ap_name =~ /^${AP:regex}$/ AND site_name =~ /^${Site:regex}$/ GROUP BY \"oui\"",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -460,7 +460,7 @@
"measurement": "uap_radios", "measurement": "uap_radios",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/)", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /^${AP:regex}$/ AND site_name =~ /^${Site:regex}$/)",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -490,7 +490,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -588,7 +588,7 @@
"measurement": "clients", "measurement": "clients",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /$AP$/ AND site_name =~ /$Site$/ AND is_guest = \"true\")", "query": "select count(distinct(hostname)) FROM \"clients\" WHERE ($timeFilter AND ap_name =~ /^${AP:regex}$/ AND site_name =~ /^${Site:regex}$/ AND is_guest = \"true\")",
"rawQuery": true, "rawQuery": true,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1150,13 +1150,13 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1673,13 +1673,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -1763,13 +1763,13 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1874,7 +1874,7 @@
"measurement": "uap", "measurement": "uap",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "default", "policy": "default",
"query": "SELECT \"mem_used\" FROM \"uap\" WHERE (\"name\" =~ /^$host$/ AND \"site_name\" =~ /^$Site$/) AND $timeFilter GROUP BY \"name\"", "query": "SELECT \"mem_used\" FROM \"uap\" WHERE (\"name\" =~ /^$host$/ AND \"site_name\" =~ /^${Site:regex}$/) AND $timeFilter GROUP BY \"name\"",
"rawQuery": false, "rawQuery": false,
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "time_series",
@ -1892,13 +1892,13 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2062,13 +2062,13 @@
{ {
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2208,13 +2208,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -2384,13 +2384,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -2550,7 +2550,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2562,7 +2562,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
}, },
@ -2630,7 +2630,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -2642,7 +2642,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2778,13 +2778,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -2918,13 +2918,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "ap_name", "key": "ap_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -3067,13 +3067,13 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -3224,13 +3224,13 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -3420,7 +3420,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -3432,7 +3432,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3615,7 +3615,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -3627,7 +3627,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3811,13 +3811,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -4001,7 +4001,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -4013,7 +4013,7 @@
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
} }
] ]
} }
@ -4196,7 +4196,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -4208,7 +4208,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4393,7 +4393,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -4405,7 +4405,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4741,7 +4741,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -4753,7 +4753,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -5083,7 +5083,7 @@
{ {
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$AP$/" "value": "/^${AP:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -5095,7 +5095,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -5181,14 +5181,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"uap\" with key=\"site_name\" where source =~ /$Controller$/", "definition": "show tag values from \"uap\" with key=\"site_name\" where source =~ /^${Controller:regex}$/",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "", "label": "",
"multi": true, "multi": true,
"name": "Site", "name": "Site",
"options": [], "options": [],
"query": "show tag values from \"uap\" with key=\"site_name\" where source =~ /$Controller$/", "query": "show tag values from \"uap\" with key=\"site_name\" where source =~ /^${Controller:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -5203,14 +5203,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"uap\" with key=\"name\" where site_name =~ /$Site$/", "definition": "show tag values from \"uap\" with key=\"name\" where site_name =~ /^${Site:regex}$/",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "UniFi AP:", "label": "UniFi AP:",
"multi": true, "multi": true,
"name": "AP", "name": "AP",
"options": [], "options": [],
"query": "show tag values from \"uap\" with key=\"name\" where site_name =~ /$Site$/", "query": "show tag values from \"uap\" with key=\"name\" where site_name =~ /^${Site:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -5253,5 +5253,5 @@
"timezone": "browser", "timezone": "browser",
"title": "UniFi-Poller: UAP Insights - InfluxDB", "title": "UniFi-Poller: UAP Insights - InfluxDB",
"uid": "8nQ_RPZiz", "uid": "8nQ_RPZiz",
"version": 10 "version": 11
} }

View File

@ -2,7 +2,7 @@
"__inputs": [ "__inputs": [
{ {
"name": "DS_UNIFI_POLLER", "name": "DS_UNIFI_POLLER",
"label": "UniFi Poller", "label": "Unpoller",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "influxdb", "pluginId": "influxdb",
@ -61,7 +61,7 @@
} }
] ]
}, },
"description": "UniFi Poller v2.0 Displays detailed information for security gateways in a UniFi network.", "description": "Unpoller v2.9 Displays detailed information for security gateways in a UniFi network.",
"editable": true, "editable": true,
"gnetId": 10416, "gnetId": 10416,
"graphTooltip": 2, "graphTooltip": 2,
@ -76,7 +76,7 @@
"tags": [ "tags": [
"unifi-poller" "unifi-poller"
], ],
"title": "UniFi Poller", "title": "Unpoller",
"type": "dashboards" "type": "dashboards"
}, },
{ {
@ -594,7 +594,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -719,7 +719,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -845,7 +845,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -971,7 +971,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1095,7 +1095,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1219,7 +1219,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1343,7 +1343,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1470,7 +1470,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1597,7 +1597,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1723,7 +1723,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1847,7 +1847,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -1971,7 +1971,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2315,7 +2315,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
}, },
@ -2424,7 +2424,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2569,7 +2569,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -2761,7 +2761,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
}, },
@ -2836,7 +2836,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3028,7 +3028,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3223,7 +3223,7 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
@ -3431,7 +3431,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3682,7 +3682,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -3933,7 +3933,7 @@
"condition": "AND", "condition": "AND",
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
} }
] ]
} }
@ -4201,14 +4201,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usg\" with key=\"site_name\" where source =~ /$Controller$/", "definition": "show tag values from \"usg\" with key=\"site_name\" where source =~ /^${Controller:regex}$/",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": "", "label": "",
"multi": true, "multi": true,
"name": "Site", "name": "Site",
"options": [], "options": [],
"query": "show tag values from \"usg\" with key=\"site_name\" where source =~ /$Controller$/", "query": "show tag values from \"usg\" with key=\"site_name\" where source =~ /^${Controller:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4223,14 +4223,14 @@
"allValue": null, "allValue": null,
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usg\" with key=\"name\" where site_name =~ /$Site$/", "definition": "show tag values from \"usg\" with key=\"name\" where site_name =~ /^${Site:regex}$/",
"hide": 2, "hide": 2,
"includeAll": true, "includeAll": true,
"label": "UniFi USG:", "label": "UniFi USG:",
"multi": false, "multi": false,
"name": "host", "name": "host",
"options": [], "options": [],
"query": "show tag values from \"usg\" with key=\"name\" where site_name =~ /$Site$/", "query": "show tag values from \"usg\" with key=\"name\" where site_name =~ /^${Site:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4273,5 +4273,5 @@
"timezone": "browser", "timezone": "browser",
"title": "UniFi-Poller: USG Insights - InfluxDB", "title": "UniFi-Poller: USG Insights - InfluxDB",
"uid": "WX6RJOMik", "uid": "WX6RJOMik",
"version": 12 "version": 13
} }

View File

@ -2,7 +2,7 @@
"__inputs": [ "__inputs": [
{ {
"name": "DS_UNIFI_POLLER", "name": "DS_UNIFI_POLLER",
"label": "UniFi Poller", "label": "Unpoller",
"description": "", "description": "",
"type": "datasource", "type": "datasource",
"pluginId": "influxdb", "pluginId": "influxdb",
@ -48,7 +48,7 @@
} }
] ]
}, },
"description": "UniFi Poller v2.0.1 Displays detailed information for network switches in a UniFi network.", "description": "Unpoller v2.9 Displays detailed information for network switches in a UniFi network.",
"editable": true, "editable": true,
"gnetId": 10417, "gnetId": 10417,
"graphTooltip": 1, "graphTooltip": 1,
@ -63,7 +63,7 @@
"tags": [ "tags": [
"unifi-poller" "unifi-poller"
], ],
"title": "UniFi Poller", "title": "Unpoller",
"type": "dashboards" "type": "dashboards"
}, },
{ {
@ -567,13 +567,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -635,13 +635,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -750,13 +750,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -848,13 +848,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -1006,13 +1006,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1067,13 +1067,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1128,13 +1128,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -1318,13 +1318,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1379,13 +1379,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1440,13 +1440,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -1597,13 +1597,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1658,13 +1658,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
}, },
@ -1719,13 +1719,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "name", "key": "name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -1912,19 +1912,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -2515,13 +2515,13 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
} }
] ]
} }
@ -2993,19 +2993,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -3160,19 +3160,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -3385,19 +3385,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -3635,19 +3635,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -3837,19 +3837,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -3997,19 +3997,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -4157,19 +4157,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -4317,19 +4317,19 @@
{ {
"key": "site_name", "key": "site_name",
"operator": "=~", "operator": "=~",
"value": "/^$Site$/" "value": "/^${Site:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "device_name", "key": "device_name",
"operator": "=~", "operator": "=~",
"value": "/^$Switch$/" "value": "/^${Switch:regex}$/"
}, },
{ {
"condition": "AND", "condition": "AND",
"key": "port_id", "key": "port_id",
"operator": "=~", "operator": "=~",
"value": "/^$Port$/" "value": "/^${Port:regex}$/"
} }
] ]
} }
@ -4417,14 +4417,14 @@
"allValue": "", "allValue": "",
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", "definition": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Site", "name": "Site",
"options": [], "options": [],
"query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^$Controller$/ ", "query": "show tag values from \"usw_ports\" with key=\"site_name\" WHERE source =~ /^${Controller:regex}$/ ",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4481,14 +4481,14 @@
"allValue": "", "allValue": "",
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/ AND type=~/^$Devices$/", "definition": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type =~ /^${Devices:regex}$/",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Switch", "name": "Switch",
"options": [], "options": [],
"query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^$Site$/ AND type=~/^$Devices$/", "query": "show tag values from \"usw_ports\" with key=\"device_name\" where site_name =~ /^${Site:regex}$/ AND type =~ /^${Devices:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4503,14 +4503,14 @@
"allValue": ".*", "allValue": ".*",
"current": {}, "current": {},
"datasource": "${DS_UNIFI_POLLER}", "datasource": "${DS_UNIFI_POLLER}",
"definition": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^$Switch$/ AND site_name =~ /^$Site$/", "definition": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^${Switch:regex}$/ AND site_name =~ /^${Site:regex}$/",
"hide": 0, "hide": 0,
"includeAll": true, "includeAll": true,
"label": null, "label": null,
"multi": true, "multi": true,
"name": "Port", "name": "Port",
"options": [], "options": [],
"query": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^$Switch$/ AND site_name =~ /^$Site$/", "query": "show tag values from \"usw_ports\" with key=\"port_id\" where device_name =~ /^${Switch:regex}$/ AND site_name =~ /^${Site:regex}$/",
"refresh": 1, "refresh": 1,
"regex": "", "regex": "",
"skipUrlSync": false, "skipUrlSync": false,
@ -4553,5 +4553,5 @@
"timezone": "browser", "timezone": "browser",
"title": "UniFi-Poller: USW Insights - InfluxDB", "title": "UniFi-Poller: USW Insights - InfluxDB",
"uid": "HIKZ98GZz", "uid": "HIKZ98GZz",
"version": 21 "version": 22
} }