Grafana dashboard: Ruckus MSP Cloud Dashboard - Venue
Description: This Dashboard queries all APs from all the End Customers (tenants) of MSP and show a single windows to monitor


{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": {
    "8DJS3GmRz": {
      "name": "Menu",
      "uid": "8DJS3GmRz",
      "kind": 1,
      "model": {
        "type": "dashlist",
        "title": "Menu",
        "datasource": {
          "type": "influxdb",
          "uid": "mFy80RpVk"
        },
        "pluginVersion": "9.3.2",
        "description": "",
        "options": {
          "folderId": 3,
          "maxItems": 4,
          "query": "",
          "showHeadings": false,
          "showRecentlyViewed": false,
          "showSearch": false,
          "showStarred": true,
          "tags": []
        },
        "targets": [
          {
            "datasource": {
              "type": "influxdb",
              "uid": "mFy80RpVk"
            },
            "refId": "A"
          }
        ]
      }
    }
  },
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.3.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "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"
      }
    ]
  },
  "description": "This Dashboard queries all APs from all the End Customers (tenants) of MSP and show a single windows to monitor",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": null,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": true,
      "title": "Ruckus Cloud",
      "tooltip": "Ruckus Cloud",
      "type": "link",
      "url": "https://ruckus.cloud"
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              }
            ]
          },
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Customer_Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Show tenant",
                    "url": "d/x1d4sjWRkdsf/tenant?orgId=1&var-tenant=${__data.fields[\"Customer_Name\"]}&var-series_name=$series_name"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 33,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [],
          "fields": "/.*/",
          "values": true
        },
        "text": {
          "titleSize": 15,
          "valueSize": 20
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "Customer_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"valueStr\") AS \"Status\" FROM \"PowersupplyStatus\" WHERE $timeFilter GROUP BY \"Device\"",
          "rawQuery": false,
          "refId": "E",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Customer_Name": false,
              "Field": false,
              "Last": false,
              "Stat": true,
              "Status": false,
              "Time": true,
              "last": true
            },
            "indexByName": {
              "Customer_Name": 4,
              "Dev_fw": 12,
              "Device_IPaddr": 2,
              "Device_MAC": 3,
              "Device_Model": 11,
              "Device_Name": 1,
              "Device_type": 10,
              "Last_Seen": 6,
              "Serial_No": 8,
              "Stat": 13,
              "Status": 9,
              "Time": 0,
              "Uptime": 7,
              "Venue_Name": 5
            },
            "renameByName": {
              "AP_IPaddr": "IP Address",
              "AP_MAC": "MAC Address",
              "AP_Name": "Access Point Name",
              "Customer_Name": "End Customer name (Tenant) :   ",
              "Dev_fw": "Firmware",
              "Device": "",
              "Device_IPaddr": "Device IP",
              "Device_MAC": "Device MAC",
              "Device_Model": "Device Model",
              "Device_Name": "Device Name",
              "Device_type": "Type",
              "Last_Seen": "Last seen on ",
              "Serial_No": "Serial Number",
              "Status": "Status",
              "Uptime": "Last known Uptime",
              "Venue_Name": "Venue Name",
              "valueStr": "HiVision Status"
            }
          }
        }
      ],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "center",
            "displayMode": "auto",
            "inspect": false
          },
          "mappings": [
            {
              "options": {
                "from": 0,
                "result": {
                  "index": 0,
                  "text": "Last Known data push"
                },
                "to": 500
              },
              "type": "range"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Time"
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocalNoDateIfToday"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 2,
        "w": 24,
        "x": 0,
        "y": 2
      },
      "id": 18,
      "options": {
        "footer": {
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": false
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "limit": "1",
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Devices of $venue",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "sltaps.last": false,
              "totalap.last": false
            },
            "indexByName": {
              "Time": 1,
              "sltaps.last": 0
            },
            "renameByName": {
              "totalap.last": ""
            }
          }
        }
      ],
      "transparent": true,
      "type": "table"
    },
    {
      "gridPos": {
        "h": 8,
        "w": 3,
        "x": 0,
        "y": 4
      },
      "id": 24,
      "libraryPanel": {
        "uid": "8DJS3GmRz",
        "name": "Menu"
      }
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": []
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.down {Status: 3_04_DisconnectedFromCloud}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Disconnected"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.down {Status: 4_04_HeartbeatLost}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Heartbeat Lost"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.down {Status: 1_01_NeverContactedCloud}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Never Contacted Cloud"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.down {Status: 2_00_Operational}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Operational"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.down {Status: 2_02_ApplyingConfiguration}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Applying Configuration"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 7,
        "x": 3,
        "y": 4
      },
      "id": 26,
      "options": {
        "displayLabels": [
          "value"
        ],
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "values": [
            "value"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "pluginVersion": "8.4.6",
      "targets": [
        {
          "alias": "$tag_Device_type - $tag_Severity - $tag_Status",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "Severity"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_type"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Status"
              ],
              "type": "tag"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            }
          ]
        }
      ],
      "title": "Summary of Devices - $venue",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {}
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "auto",
            "displayMode": "json-view",
            "filterable": true,
            "inspect": false,
            "minWidth": 50
          },
          "mappings": [
            {
              "options": {
                "Error": {
                  "color": "dark-red",
                  "index": 0
                },
                "Not Saved": {
                  "color": "dark-yellow",
                  "index": 3
                },
                "Off": {
                  "color": "dark-red",
                  "index": 1
                },
                "Warning": {
                  "color": "dark-yellow",
                  "index": 2
                },
                "unsecure": {
                  "color": "dark-yellow",
                  "index": 4
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(255, 255, 255)",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Status"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "Configuration Update Failed": {
                        "color": "yellow",
                        "index": 2
                      },
                      "Disconnected From Cloud": {
                        "color": "red",
                        "index": 1
                      },
                      "Firmware Upgrade Failed": {
                        "color": "yellow",
                        "index": 0
                      },
                      "Heartbeat Lost": {
                        "color": "orange",
                        "index": 3
                      },
                      "Rebooting": {
                        "color": "light-yellow",
                        "index": 4
                      }
                    },
                    "type": "value"
                  }
                ]
              },
              {
                "id": "custom.displayMode",
                "value": "color-text"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Last seen on "
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocalNoDateIfToday"
              },
              {
                "id": "custom.align",
                "value": "right"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Device IP"
            },
            "properties": [
              {
                "id": "custom.align",
                "value": "right"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Device Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Show Device",
                    "url": "d/MHK5JWhVk/devices?orgId=1&var-device=${__data.fields[\"Device Name\"]}&var-series_name=$series_name&from=now-15m&to=now"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 14,
        "x": 10,
        "y": 4
      },
      "id": 27,
      "options": {
        "footer": {
          "enablePagination": true,
          "fields": [
            "Serial_No"
          ],
          "reducer": [
            "distinctCount"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Status"
          }
        ]
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "Device_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_IPaddr"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Last_Seen"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Customer_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Status"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_Model"
              ],
              "type": "tag"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"valueStr\") AS \"Status\" FROM \"PowersupplyStatus\" WHERE $timeFilter GROUP BY \"Device\"",
          "rawQuery": false,
          "refId": "E",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "Stat"
                ],
                "type": "alias"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Status",
              "operator": "=~",
              "value": "/Failed|Disconnected|Rebooting|Lost|Offline/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "title": "Needs attention",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Customer_Name": false,
              "Stat": true,
              "Status": false,
              "Time": true
            },
            "indexByName": {
              "Device_IPaddr": 5,
              "Device_Model": 4,
              "Device_Name": 1,
              "Last_Seen": 3,
              "Stat": 7,
              "Status": 2,
              "Time": 0,
              "Venue_Name": 6
            },
            "renameByName": {
              "AP_IPaddr": "IP Address",
              "AP_MAC": "MAC Address",
              "AP_Name": "Access Point Name",
              "Customer_Name": "End Customer name",
              "Dev_fw": "Firmware",
              "Device": "",
              "Device_IPaddr": "Device IP",
              "Device_MAC": "Device MAC",
              "Device_Model": "Model",
              "Device_Name": "Device Name",
              "Device_type": "Type",
              "Last_Seen": "Last seen on ",
              "Serial_No": "Serial Number",
              "Status": "Status",
              "Uptime": "Last known Uptime",
              "Venue_Name": "Venue Name",
              "valueStr": "HiVision Status"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0 devices need attention",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": []
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 0,
        "y": 12
      },
      "id": 37,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "Devices Needs Attention",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") FROM /^$series_name$/ WHERE (\"Customer_Name\" =~ /^$tenant$/ AND \"Severity\" = 'Requires Attention' AND $timeFilter)  OR (\"Customer_Name\" =~ /^$tenant$/ AND \"Severity\" = 'Transceint Issue' AND $timeFilter) OR  (\"Customer_Name\" =~ /^$tenant$/ AND \"Status\" = 'OFFLINE' AND $timeFilter) GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Status",
              "operator": "=~",
              "value": "/Failed|Disconnected|Rebooting|Lost|Offline/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0 APs need attention",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Needs attention",
                    "url": "d/x1d4sjWRkdsf/ruckus-cloud-tenant-dashboard?orgId=1&from=now-15m&to=now&viewPanel=27"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 3,
        "y": 12
      },
      "id": 41,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "APs Needs Attention",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT sum(\"value\") FROM /^$series_name$/ WHERE (\"Customer_Name\" =~ /^$tenant$/ AND \"Severity\" = 'Requires Attention' AND \"Device_type\" = 'Access Point' AND $timeFilter) OR  (\"Customer_Name\" =~ /^$tenant$/ AND \"Severity\" = 'Transceint Issue' AND \"Device_type\" = 'Access Point' AND $timeFilter) GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Status",
              "operator": "=~",
              "value": "/Failed|Disconnected|Rebooting|Lost/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0 ICX need attention",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Needs attention",
                    "url": "d/x1d4sjWRkdsf/ruckus-cloud-tenant-dashboard?orgId=1&from=now-15m&to=now&viewPanel=27"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 6,
        "y": 12
      },
      "id": 45,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "ICX Needs Attention",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Status",
              "operator": "=",
              "value": "Offline"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-BlPu"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "series",
            "axisLabel": "Devices",
            "axisPlacement": "auto",
            "axisSoftMin": 0,
            "barAlignment": 1,
            "drawStyle": "bars",
            "fillOpacity": 14,
            "gradientMode": "scheme",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 10,
            "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
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "sltaps.sum"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Total AP"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Value"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Disconnected APs"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 15,
        "x": 9,
        "y": 12
      },
      "id": 35,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            }
          ]
        }
      ],
      "timeFrom": "24h",
      "title": "$tenant Device Status over time",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "No Devices found",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": []
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 0,
        "y": 16
      },
      "id": 39,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "Out of (total)",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "0",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Needs attention",
                    "url": "d/x1d4sjWRkdsf/ruckus-cloud-tenant-dashboard?orgId=1&from=now-15m&to=now&viewPanel=27"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 3,
        "y": 16
      },
      "id": 43,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "Out of (total)",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Device_type",
              "operator": "=",
              "value": "Access Point"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "noValue": "No Switches",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 1
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Out of (total)"
            },
            "properties": [
              {
                "id": "thresholds",
                "value": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "dark-blue",
                      "value": null
                    }
                  ]
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Needs Attention"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Needs attention",
                    "url": "d/x1d4sjWRkdsf/ruckus-cloud-tenant-dashboard?orgId=1&from=now-15m&to=now&viewPanel=27"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 6,
        "y": 16
      },
      "id": 47,
      "options": {
        "colorMode": "background",
        "graphMode": "area",
        "justifyMode": "center",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "alias": "Out of (total)",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "sum"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            },
            {
              "condition": "AND",
              "key": "Device_type",
              "operator": "=",
              "value": "Switch"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "transformations": [],
      "transparent": true,
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_INFLUXDB}"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": "auto",
            "displayMode": "auto",
            "filterable": true,
            "inspect": false
          },
          "mappings": [
            {
              "options": {
                "Error": {
                  "color": "dark-red",
                  "index": 0
                },
                "Not Saved": {
                  "color": "dark-yellow",
                  "index": 3
                },
                "Off": {
                  "color": "dark-red",
                  "index": 1
                },
                "Warning": {
                  "color": "dark-yellow",
                  "index": 2
                },
                "unsecure": {
                  "color": "dark-yellow",
                  "index": 4
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "rgb(255, 255, 255)",
                "value": null
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Uptime"
            },
            "properties": [
              {
                "id": "custom.displayMode",
                "value": "auto"
              },
              {
                "id": "unit",
                "value": "s"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Status"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "options": {
                      "1_01_NeverContactedCloud": {
                        "color": "blue",
                        "index": 1,
                        "text": "Never Contacted Cloud"
                      },
                      "2_00_Operational": {
                        "color": "green",
                        "index": 0,
                        "text": "Operational"
                      },
                      "2_02_ApplyingConfiguration": {
                        "color": "super-light-green",
                        "index": 4,
                        "text": "Applying Configuration"
                      },
                      "3_04_DisconnectedFromCloud": {
                        "color": "red",
                        "index": 2,
                        "text": "Disconnected From Cloud"
                      },
                      "4_04_HeartbeatLost": {
                        "color": "orange",
                        "index": 3,
                        "text": "Heartbeat Lost"
                      }
                    },
                    "type": "value"
                  }
                ]
              },
              {
                "id": "custom.displayMode",
                "value": "color-text"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Last seen on "
            },
            "properties": [
              {
                "id": "unit",
                "value": "dateTimeAsLocalNoDateIfToday"
              },
              {
                "id": "custom.align",
                "value": "right"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Device Name"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "title": "Show Device details",
                    "url": "d/MHK5JWhVk/devices?orgId=1&var-device=${__data.fields[\"Device Name\"]}&var-series_name=$series_name&from=now-15m&to=now"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 12,
        "w": 24,
        "x": 0,
        "y": 20
      },
      "id": 12,
      "options": {
        "footer": {
          "fields": [
            "Serial_No"
          ],
          "reducer": [
            "distinctCount"
          ],
          "show": true
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "Status"
          }
        ]
      },
      "pluginVersion": "9.3.2",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "Device_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_IPaddr"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_MAC"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Customer_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Last_Seen"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Serial_No"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Venue_Name"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Uptime"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Status"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Dev_fw"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_Model"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Device_type"
              ],
              "type": "tag"
            },
            {
              "params": [
                "Severity"
              ],
              "type": "tag"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "/^$series_name$/",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"valueStr\") AS \"Status\" FROM \"PowersupplyStatus\" WHERE $timeFilter GROUP BY \"Device\"",
          "rawQuery": false,
          "refId": "E",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "Stat"
                ],
                "type": "alias"
              }
            ]
          ],
          "tags": [
            {
              "key": "Venue_Name",
              "operator": "=~",
              "value": "/^$venue$/"
            }
          ]
        }
      ],
      "timeFrom": "15m",
      "title": "Device Status - $venue",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Customer_Name": true,
              "Stat": true,
              "Status": false,
              "Time": true
            },
            "indexByName": {
              "Customer_Name": 4,
              "Dev_fw": 12,
              "Device_IPaddr": 2,
              "Device_MAC": 3,
              "Device_Model": 11,
              "Device_Name": 1,
              "Device_type": 10,
              "Last_Seen": 6,
              "Serial_No": 8,
              "Stat": 13,
              "Status": 9,
              "Time": 0,
              "Uptime": 7,
              "Venue_Name": 5
            },
            "renameByName": {
              "AP_IPaddr": "IP Address",
              "AP_MAC": "MAC Address",
              "AP_Name": "Access Point Name",
              "Customer_Name": "End Customer name",
              "Dev_fw": "Firmware",
              "Device": "",
              "Device_IPaddr": "Device IP",
              "Device_MAC": "Device MAC",
              "Device_Model": "Device Model",
              "Device_Name": "Device Name",
              "Device_type": "Type",
              "Last_Seen": "Last seen on ",
              "Serial_No": "Serial Number",
              "Status": "Status",
              "Uptime": "Last known Uptime",
              "Venue_Name": "Venue Name",
              "valueStr": "HiVision Status"
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": false,
  "schemaVersion": 37,
  "style": "dark",
  "tags": [
    "ruckus",
    "msp",
    "cloud"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": true,
          "text": "sltaps",
          "value": "sltaps"
        },
        "hide": 2,
        "name": "series_name",
        "options": [
          {
            "selected": true,
            "text": "sltaps",
            "value": "sltaps"
          }
        ],
        "query": "sltaps",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_INFLUXDB}"
        },
        "definition": "select Venue_Name, value from $series_name WHERE time >= now() - 15m and time <= now()",
        "description": "Enter your Venue",
        "hide": 0,
        "includeAll": false,
        "label": "Venue",
        "multi": false,
        "name": "venue",
        "options": [],
        "query": "select Venue_Name, value from $series_name WHERE time >= now() - 15m and time <= now()",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-15m",
    "to": "now"
  },
  "timepicker": {
    "hidden": false,
    "refresh_intervals": [
      "15m"
    ]
  },
  "timezone": "browser",
  "title": "Ruckus MSP Cloud Dashboard - Venue",
  "uid": "09chXZ24k",
  "version": 35,
  "weekStart": "",
  "gnetId": 17853
}