{
  "apiVersion": "dashboard.grafana.app/v2",
  "kind": "Dashboard",
  "metadata": {
    "name": "cejt0je6hg0lca1",
    "generation": 27,
    "creationTimestamp": "2026-06-08T16:27:44Z",
    "labels": {},
    "annotations": {}
  },
  "spec": {
    "annotations": [
      {
        "kind": "AnnotationQuery",
        "spec": {
          "query": {
            "kind": "DataQuery",
            "group": "grafana",
            "version": "v0",
            "spec": {},
            "labels": {
              "grafana.app/export-label": "grafana-1"
            }
          },
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "builtIn": true
        }
      }
    ],
    "cursorSync": "Crosshair",
    "editable": true,
    "elements": {
      "panel-100": {
        "kind": "Panel",
        "spec": {
          "id": 100,
          "title": "All Network Test Results Trend",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "expr": "count by(overall_status) (\r\n  # Branch 1: connection failed (priority)\r\n  label_replace(\r\n    (\r\n      min by(profile_id, connection_status, sensor_name) (\r\n        {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status!=\"SUCCESS\"}\r\n      ) == 0\r\n    ),\r\n    \"overall_status\", \"$1\", \"connection_status\", \"(.*)\"\r\n  )\r\n  or\r\n  # Branch 2: connection OK, but the profile's test status failed\r\n  label_replace(\r\n    (\r\n      min by(profile_id, status, sensor_name) (\r\n        {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status=\"SUCCESS\", status!=\"SUCCESS\"}\r\n      ) == 0\r\n    ),\r\n    \"overall_status\", \"$1\", \"status\", \"(.*)\"\r\n  )\r\n\r\n)",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "FAILURE",
                    "hidden": false
                  }
                },
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "expr": "count by(overall_status) (\r\n  label_replace(\r\n    (\r\n      min by(profile_id, sensor_name) (\r\n        {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status=\"SUCCESS\", status=\"SUCCESS\"}\r\n      ) == 1\r\n    ),\r\n    \"overall_status\", \"SUCCESS\", \"\", \"\"\r\n  )\r\n)",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "SUCCESS",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "timeseries",
            "version": "13.0.2",
            "spec": {
              "options": {
                "annotations": {
                  "clustering": -1,
                  "multiLane": false
                },
                "legend": {
                  "calcs": [
                    "sum",
                    "lastNotNull",
                    "mean"
                  ],
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": true,
                  "sortBy": "Total",
                  "sortDesc": true
                },
                "tooltip": {
                  "hideZeros": false,
                  "mode": "multi",
                  "sort": "desc"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "value": 0,
                        "color": "green"
                      },
                      {
                        "value": 80,
                        "color": "red"
                      }
                    ]
                  },
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red",
                    "seriesBy": "last"
                  },
                  "custom": {
                    "axisBorderShow": false,
                    "axisCenteredZero": false,
                    "axisColorMode": "text",
                    "axisLabel": "",
                    "axisPlacement": "auto",
                    "barAlignment": 0,
                    "barWidthFactor": 0.6,
                    "drawStyle": "line",
                    "fillOpacity": 23,
                    "gradientMode": "none",
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    },
                    "insertNulls": false,
                    "lineInterpolation": "smooth",
                    "lineStyle": {
                      "fill": "solid"
                    },
                    "lineWidth": 1,
                    "pointSize": 3,
                    "scaleDistribution": {
                      "type": "linear"
                    },
                    "showPoints": "auto",
                    "showValues": false,
                    "spanNulls": 14400000,
                    "stacking": {
                      "group": "A",
                      "mode": "percent"
                    },
                    "thresholdsStyle": {
                      "mode": "off"
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "semi-dark-green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  },
                  {
                    "matcher": {
                      "id": "byRegexp",
                      "options": "/.*SUCCESS/"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-101": {
        "kind": "Panel",
        "spec": {
          "id": 101,
          "title": "All Network Test Results",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "exemplar": false,
                        "expr": "sum by(overall_status) (count_over_time(\r\n  avg by(overall_status, sensor_name, profile_name) (\r\n        label_replace(\r\n                {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status!=\"SUCCESS\"},\r\n        \"overall_status\", \"$1\", \"connection_status\", \"(.*)\"\r\n        )\r\n        or\r\n        label_replace(\r\n                {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status!=\"SUCCESS\"},\r\n        \"overall_status\", \"$1\", \"status\", \"(.*)\"\r\n        )\r\n        or\r\n        label_replace(\r\n                {__name__=~\"wyebot_tests_.*_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status=\"SUCCESS\"},\r\n        \"overall_status\", \"SUCCESS\", \"\", \"\")\r\n        )[$__range:10m]\r\n))",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": true,
                        "legendFormat": "__auto",
                        "range": false,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "Success",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "piechart",
            "version": "13.0.2",
            "spec": {
              "options": {
                "displayLabels": [
                  "percent"
                ],
                "legend": {
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": false
                },
                "pieType": "pie",
                "reduceOptions": {
                  "calcs": [
                    "sum"
                  ],
                  "fields": "",
                  "values": false
                },
                "sort": "desc",
                "tooltip": {
                  "hideZeros": false,
                  "mode": "multi",
                  "sort": "none"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "Tests",
                  "decimals": 2,
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red"
                  },
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-102": {
        "kind": "Panel",
        "spec": {
          "id": 102,
          "title": "Network Test Status",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "exemplar": false,
                        "expr": "sum by(overall_status) (count_over_time(\n  avg by(overall_status, sensor_name, profile_name) (\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status!=\"SUCCESS\"},\n        \"overall_status\", \"$1\", \"connection_status\", \"(.*)\"\n        )\n        or\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status!=\"SUCCESS\"},\n        \"overall_status\", \"$1\", \"status\", \"(.*)\"\n        )\n        or\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status=\"SUCCESS\"},\n        \"overall_status\", \"SUCCESS\", \"\", \"\")\n        )[$__range:10m]\n))",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": true,
                        "legendFormat": "__auto",
                        "range": false,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "Success",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "piechart",
            "version": "13.0.2",
            "spec": {
              "options": {
                "displayLabels": [
                  "percent"
                ],
                "legend": {
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": false
                },
                "pieType": "pie",
                "reduceOptions": {
                  "calcs": [
                    "sum"
                  ],
                  "fields": "",
                  "values": false
                },
                "sort": "desc",
                "tooltip": {
                  "hideZeros": false,
                  "mode": "multi",
                  "sort": "desc"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "Tests",
                  "decimals": 2,
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red"
                  },
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-103": {
        "kind": "Panel",
        "spec": {
          "id": 103,
          "title": "Network Test Trend",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "expr": "count by(overall_status) (\r\n  # Branch 1: connection failed (priority)\r\n  label_replace(\r\n    (\r\n      min by(profile_id, connection_status, sensor_name) (\r\n        {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status!=\"SUCCESS\"}\r\n      ) == 0\r\n    ),\r\n    \"overall_status\", \"$1\", \"connection_status\", \"(.*)\"\r\n  )\r\n  or\r\n  # Branch 2: connection OK, but the profile's test status failed\r\n  label_replace(\r\n    (\r\n      min by(profile_id, status, sensor_name) (\r\n        {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status=\"SUCCESS\", status!=\"SUCCESS\"}\r\n      ) == 0\r\n    ),\r\n    \"overall_status\", \"$1\", \"status\", \"(.*)\"\r\n  )\r\n\r\n)",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "FAILURE",
                    "hidden": false
                  }
                },
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "expr": "count by(overall_status) (\r\n  label_replace(\r\n    (\r\n      min by(profile_id, sensor_name) (\r\n        {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\",\r\n         sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\",\r\n         connection_status=\"SUCCESS\", status=\"SUCCESS\"}\r\n      ) == 1\r\n    ),\r\n    \"overall_status\", \"SUCCESS\", \"\", \"\"\r\n  )\r\n)",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "SUCCESS",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "timeseries",
            "version": "13.0.2",
            "spec": {
              "options": {
                "annotations": {
                  "clustering": -1,
                  "multiLane": false
                },
                "legend": {
                  "calcs": [
                    "sum",
                    "lastNotNull",
                    "mean"
                  ],
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": true,
                  "sortBy": "Total",
                  "sortDesc": true,
                  "width": 750
                },
                "tooltip": {
                  "hideZeros": false,
                  "mode": "multi",
                  "sort": "desc"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "value": 0,
                        "color": "green"
                      },
                      {
                        "value": 80,
                        "color": "red"
                      }
                    ]
                  },
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red",
                    "seriesBy": "last"
                  },
                  "custom": {
                    "axisBorderShow": false,
                    "axisCenteredZero": false,
                    "axisColorMode": "text",
                    "axisLabel": "",
                    "axisPlacement": "auto",
                    "barAlignment": 0,
                    "barWidthFactor": 0.6,
                    "drawStyle": "line",
                    "fillOpacity": 23,
                    "gradientMode": "none",
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    },
                    "insertNulls": false,
                    "lineInterpolation": "smooth",
                    "lineStyle": {
                      "fill": "solid"
                    },
                    "lineWidth": 1,
                    "pointSize": 3,
                    "scaleDistribution": {
                      "type": "linear"
                    },
                    "showPoints": "auto",
                    "showValues": false,
                    "spanNulls": true,
                    "stacking": {
                      "group": "A",
                      "mode": "percent"
                    },
                    "thresholdsStyle": {
                      "mode": "off"
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "semi-dark-green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  },
                  {
                    "matcher": {
                      "id": "byRegexp",
                      "options": "/.*SUCCESS/"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-105": {
        "kind": "Panel",
        "spec": {
          "id": 105,
          "title": "Connection Time",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "editorMode": "code",
                        "expr": "sum by(location_name)(\n  label_replace(\n    avg by(location_name)(avg_over_time(wyebot_connections_association_time{location_name=~\"$location\", ssid=~\"$ssid\", sensor_name=~\"$sensor\"}[30m:]))\n  , \"metric\", \"association\", \"\", \"\")\n  or\n  label_replace(\n    avg by(location_name)(avg_over_time(wyebot_connections_dhcp_time{location_name=~\"$location\", ssid=~\"$ssid\", sensor_name=~\"$sensor\"}[30m:]))\n  , \"metric\", \"dhcp\", \"\", \"\")\n  or\n  label_replace(\n    avg by(location_name)(avg_over_time(wyebot_connections_eap_time{location_name=~\"$location\", ssid=~\"$ssid\", sensor_name=~\"$sensor\"}[30m:]))\n  , \"metric\", \"eap\", \"\", \"\")\n)",
                        "legendFormat": "__auto",
                        "range": true
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "A",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "heatmap",
            "version": "13.0.2",
            "spec": {
              "options": {
                "annotations": {
                  "clustering": -1,
                  "multiLane": false
                },
                "calculate": false,
                "cellGap": 1,
                "color": {
                  "exponent": 0.5,
                  "fill": "dark-orange",
                  "max": 30000,
                  "mode": "scheme",
                  "reverse": false,
                  "scale": "exponential",
                  "scheme": "RdYlGn",
                  "steps": 64
                },
                "exemplars": {
                  "color": "rgba(255,0,255,0.7)"
                },
                "filterValues": {
                  "le": 1e-9
                },
                "legend": {
                  "show": true
                },
                "rowsFrame": {
                  "layout": "auto"
                },
                "tooltip": {
                  "mode": "multi",
                  "showColorScale": true,
                  "yHistogram": false
                },
                "yAxis": {
                  "axisPlacement": "left",
                  "axisWidth": 150,
                  "reverse": false
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "ms",
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    },
                    "scaleDistribution": {
                      "type": "linear"
                    }
                  }
                },
                "overrides": []
              }
            }
          }
        }
      },
      "panel-108": {
        "kind": "Panel",
        "spec": {
          "id": 108,
          "title": "DNS Time",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "editorMode": "code",
                        "expr": "avg by(location_name) (\n  avg_over_time(wyebot_connections_dns_time{location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\"}[30m:])\n  or\n  avg_over_time(wyebot_tests_dns_performance{location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\"}[30m:])\n)",
                        "legendFormat": "__auto",
                        "range": true
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "A",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "heatmap",
            "version": "13.0.2",
            "spec": {
              "options": {
                "annotations": {
                  "clustering": -1,
                  "multiLane": false
                },
                "calculate": false,
                "cellGap": 1,
                "color": {
                  "exponent": 0.5,
                  "fill": "dark-orange",
                  "max": 300,
                  "mode": "scheme",
                  "reverse": false,
                  "scale": "exponential",
                  "scheme": "RdYlGn",
                  "steps": 64
                },
                "exemplars": {
                  "color": "rgba(255,0,255,0.7)"
                },
                "filterValues": {
                  "le": 1e-9
                },
                "legend": {
                  "show": true
                },
                "rowsFrame": {
                  "layout": "auto"
                },
                "tooltip": {
                  "mode": "multi",
                  "showColorScale": true,
                  "yHistogram": false
                },
                "yAxis": {
                  "axisPlacement": "left",
                  "axisWidth": 150,
                  "reverse": false
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "ms",
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    },
                    "scaleDistribution": {
                      "type": "linear"
                    }
                  }
                },
                "overrides": []
              }
            }
          }
        }
      },
      "panel-59": {
        "kind": "Panel",
        "spec": {
          "id": 59,
          "title": "Total Connections",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "expr": "count by(connection_status) \r\n(wyebot_connections_association_time{location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\"})",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "Success",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "piechart",
            "version": "13.0.2",
            "spec": {
              "options": {
                "displayLabels": [
                  "percent"
                ],
                "legend": {
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": false
                },
                "pieType": "pie",
                "reduceOptions": {
                  "calcs": [
                    "sum"
                  ],
                  "fields": "",
                  "values": false
                },
                "sort": "desc",
                "tooltip": {
                  "hideZeros": false,
                  "mode": "single",
                  "sort": "none"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "none",
                  "decimals": 0,
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red"
                  },
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-62": {
        "kind": "Panel",
        "spec": {
          "id": 62,
          "title": "Connection Report",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "builder",
                        "expr": "count by(connection_status) (wyebot_connections_association_time{sensor_name=~\"$sensor\", ssid=~\"$ssid\", location_name=~\"$location\"})",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "__auto",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "A",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "timeseries",
            "version": "13.0.2",
            "spec": {
              "options": {
                "annotations": {
                  "clustering": -1,
                  "multiLane": false
                },
                "legend": {
                  "calcs": [],
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": true,
                  "sortBy": "Name",
                  "sortDesc": true
                },
                "tooltip": {
                  "hideZeros": false,
                  "mode": "single",
                  "sort": "none"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "value": 0,
                        "color": "green"
                      },
                      {
                        "value": 80,
                        "color": "red"
                      }
                    ]
                  },
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red",
                    "seriesBy": "last"
                  },
                  "custom": {
                    "axisBorderShow": false,
                    "axisCenteredZero": false,
                    "axisColorMode": "text",
                    "axisLabel": "",
                    "axisPlacement": "auto",
                    "barAlignment": 0,
                    "barWidthFactor": 0.6,
                    "drawStyle": "line",
                    "fillOpacity": 23,
                    "gradientMode": "none",
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    },
                    "insertNulls": false,
                    "lineInterpolation": "linear",
                    "lineStyle": {
                      "fill": "solid"
                    },
                    "lineWidth": 1,
                    "pointSize": 3,
                    "scaleDistribution": {
                      "type": "linear"
                    },
                    "showPoints": "auto",
                    "showValues": false,
                    "spanNulls": 14400000,
                    "stacking": {
                      "group": "A",
                      "mode": "percent"
                    },
                    "thresholdsStyle": {
                      "mode": "off"
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "semi-dark-green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-87": {
        "kind": "Panel",
        "spec": {
          "id": 87,
          "title": "$test_type status",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "code",
                        "exemplar": false,
                        "expr": "sum by(overall_status) (count_over_time(\n  avg by(overall_status, sensor_name, profile_name) (\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status!=\"SUCCESS\"},\n        \"overall_status\", \"$1\", \"connection_status\", \"(.*)\"\n        )\n        or\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status!=\"SUCCESS\"},\n        \"overall_status\", \"$1\", \"status\", \"(.*)\"\n        )\n        or\n        label_replace(\n                {__name__=~\"wyebot_tests_${test_type}_status\", location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\", profile_name=~\"$profile_name\", connection_status=\"SUCCESS\", status=\"SUCCESS\"},\n        \"overall_status\", \"SUCCESS\", \"\", \"\")\n        )[$__range:10m]\n))",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": true,
                        "legendFormat": "__auto",
                        "range": false,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "Success",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "piechart",
            "version": "13.0.2",
            "spec": {
              "options": {
                "displayLabels": [
                  "percent"
                ],
                "legend": {
                  "displayMode": "table",
                  "placement": "right",
                  "showLegend": false
                },
                "pieType": "pie",
                "reduceOptions": {
                  "calcs": [
                    "sum"
                  ],
                  "fields": "",
                  "values": false
                },
                "sort": "desc",
                "tooltip": {
                  "hideZeros": false,
                  "mode": "multi",
                  "sort": "none"
                }
              },
              "fieldConfig": {
                "defaults": {
                  "unit": "Tests",
                  "decimals": 2,
                  "color": {
                    "mode": "shades",
                    "fixedColor": "semi-dark-red"
                  },
                  "custom": {
                    "hideFrom": {
                      "legend": false,
                      "tooltip": false,
                      "viz": false
                    }
                  }
                },
                "overrides": [
                  {
                    "matcher": {
                      "id": "byName",
                      "options": "SUCCESS"
                    },
                    "properties": [
                      {
                        "id": "color",
                        "value": {
                          "fixedColor": "green",
                          "mode": "fixed"
                        }
                      }
                    ]
                  }
                ]
              }
            }
          }
        }
      },
      "panel-98": {
        "kind": "Panel",
        "spec": {
          "id": 98,
          "title": "Sensors",
          "description": "",
          "links": [],
          "data": {
            "kind": "QueryGroup",
            "spec": {
              "queries": [
                {
                  "kind": "PanelQuery",
                  "spec": {
                    "query": {
                      "kind": "DataQuery",
                      "group": "prometheus",
                      "version": "v0",
                      "spec": {
                        "disableTextWrap": false,
                        "editorMode": "builder",
                        "expr": "sum(wyebot_sensor_status{sensor_name=~\"$sensor\"})",
                        "fullMetaSearch": false,
                        "includeNullMetadata": true,
                        "instant": false,
                        "legendFormat": "Online Sensors",
                        "range": true,
                        "useBackend": false
                      },
                      "labels": {
                        "grafana.app/export-label": "prometheus-1"
                      }
                    },
                    "refId": "A",
                    "hidden": false
                  }
                }
              ],
              "transformations": [],
              "queryOptions": {
                "interval": "10m"
              }
            }
          },
          "vizConfig": {
            "kind": "VizConfig",
            "group": "stat",
            "version": "13.0.2",
            "spec": {
              "options": {
                "colorMode": "value",
                "graphMode": "area",
                "justifyMode": "auto",
                "orientation": "auto",
                "percentChangeColorMode": "standard",
                "reduceOptions": {
                  "calcs": [
                    "lastNotNull"
                  ],
                  "fields": "",
                  "values": false
                },
                "showPercentChange": false,
                "textMode": "auto",
                "wideLayout": true
              },
              "fieldConfig": {
                "defaults": {
                  "decimals": 0,
                  "thresholds": {
                    "mode": "absolute",
                    "steps": [
                      {
                        "value": 0,
                        "color": "green"
                      },
                      {
                        "value": 80,
                        "color": "red"
                      }
                    ]
                  },
                  "color": {
                    "mode": "fixed",
                    "fixedColor": "semi-dark-green"
                  }
                },
                "overrides": []
              }
            }
          }
        }
      }
    },
    "layout": {
      "kind": "RowsLayout",
      "spec": {
        "rows": [
          {
            "kind": "RowsLayoutRow",
            "spec": {
              "title": "",
              "collapse": false,
              "hideHeader": true,
              "layout": {
                "kind": "GridLayout",
                "spec": {
                  "items": [
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 0,
                        "y": 0,
                        "width": 4,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-101"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 4,
                        "y": 0,
                        "width": 2,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-98"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 6,
                        "y": 0,
                        "width": 18,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-100"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 0,
                        "y": 8,
                        "width": 24,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-87"
                        },
                        "repeat": {
                          "mode": "variable",
                          "value": "test_type",
                          "direction": "h",
                          "maxPerRow": 6
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          {
            "kind": "RowsLayoutRow",
            "spec": {
              "title": "Sensor Connections",
              "collapse": false,
              "layout": {
                "kind": "GridLayout",
                "spec": {
                  "items": [
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 0,
                        "y": 0,
                        "width": 3,
                        "height": 6,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-59"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 3,
                        "y": 0,
                        "width": 21,
                        "height": 6,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-62"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 0,
                        "y": 6,
                        "width": 12,
                        "height": 7,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-105"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 12,
                        "y": 6,
                        "width": 12,
                        "height": 7,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-108"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          {
            "kind": "RowsLayoutRow",
            "spec": {
              "title": "$profile_name",
              "collapse": false,
              "repeat": {
                "mode": "variable",
                "value": "profile_name"
              },
              "layout": {
                "kind": "GridLayout",
                "spec": {
                  "items": [
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 0,
                        "y": 0,
                        "width": 3,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-102"
                        }
                      }
                    },
                    {
                      "kind": "GridLayoutItem",
                      "spec": {
                        "x": 3,
                        "y": 0,
                        "width": 21,
                        "height": 8,
                        "element": {
                          "kind": "ElementReference",
                          "name": "panel-103"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        ]
      }
    },
    "links": [],
    "liveNow": false,
    "preload": false,
    "tags": [
      "overview"
    ],
    "timeSettings": {
      "timezone": "browser",
      "from": "now-24h",
      "to": "now",
      "autoRefresh": "15m",
      "autoRefreshIntervals": [
        "5s",
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
      ],
      "hideTimepicker": false,
      "fiscalYearStartMonth": 0
    },
    "title": "Wyebot Network Tests Overview",
    "variables": [
      {
        "kind": "QueryVariable",
        "spec": {
          "name": "location",
          "current": {
            "text": "",
            "value": ""
          },
          "label": "Location",
          "hide": "dontHide",
          "refresh": "onDashboardLoad",
          "skipUrlSync": false,
          "query": {
            "kind": "DataQuery",
            "group": "prometheus",
            "version": "v0",
            "spec": {
              "qryType": 1,
              "query": "label_values(location_name)",
              "refId": "PrometheusVariableQueryEditor-VariableQuery"
            },
            "labels": {
              "grafana.app/export-label": "prometheus-1"
            }
          },
          "regex": "",
          "regexApplyTo": "value",
          "sort": "disabled",
          "definition": "label_values(location_name)",
          "options": [],
          "multi": true,
          "includeAll": true,
          "allowCustomValue": false
        }
      },
      {
        "kind": "QueryVariable",
        "spec": {
          "name": "sensor",
          "current": {
            "text": "",
            "value": ""
          },
          "label": "Sensor",
          "hide": "dontHide",
          "refresh": "onTimeRangeChanged",
          "skipUrlSync": false,
          "query": {
            "kind": "DataQuery",
            "group": "prometheus",
            "version": "v0",
            "spec": {
              "qryType": 1,
              "query": "label_values({location_name=~\"$location\"},sensor_name)",
              "refId": "PrometheusVariableQueryEditor-VariableQuery"
            },
            "labels": {
              "grafana.app/export-label": "prometheus-1"
            }
          },
          "regex": "",
          "regexApplyTo": "value",
          "sort": "disabled",
          "definition": "label_values({location_name=~\"$location\"},sensor_name)",
          "options": [],
          "multi": true,
          "includeAll": true,
          "allowCustomValue": false
        }
      },
      {
        "kind": "QueryVariable",
        "spec": {
          "name": "ssid",
          "current": {
            "text": "",
            "value": ""
          },
          "label": "SSID",
          "hide": "dontHide",
          "refresh": "onTimeRangeChanged",
          "skipUrlSync": false,
          "query": {
            "kind": "DataQuery",
            "group": "prometheus",
            "version": "v0",
            "spec": {
              "qryType": 1,
              "query": "label_values(wyebot_connections_association_time{location_name=~\"$location\"},ssid)",
              "refId": "PrometheusVariableQueryEditor-VariableQuery"
            },
            "labels": {
              "grafana.app/export-label": "prometheus-1"
            }
          },
          "regex": "",
          "regexApplyTo": "value",
          "sort": "disabled",
          "definition": "label_values(wyebot_connections_association_time{location_name=~\"$location\"},ssid)",
          "options": [],
          "multi": true,
          "includeAll": true,
          "allowCustomValue": false
        }
      },
      {
        "kind": "QueryVariable",
        "spec": {
          "name": "profile_name",
          "current": {
            "text": "",
            "value": ""
          },
          "label": "Test Profiles",
          "hide": "dontHide",
          "refresh": "onTimeRangeChanged",
          "skipUrlSync": false,
          "query": {
            "kind": "DataQuery",
            "group": "prometheus",
            "version": "v0",
            "spec": {
              "qryType": 1,
              "query": "label_values({location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\"},profile_name)",
              "refId": "PrometheusVariableQueryEditor-VariableQuery"
            },
            "labels": {
              "grafana.app/export-label": "prometheus-1"
            }
          },
          "regex": "",
          "regexApplyTo": "value",
          "sort": "disabled",
          "definition": "label_values({location_name=~\"$location\", sensor_name=~\"$sensor\", ssid=~\"$ssid\"},profile_name)",
          "options": [],
          "multi": true,
          "includeAll": true,
          "allowCustomValue": false
        }
      },
      {
        "kind": "QueryVariable",
        "spec": {
          "name": "test_type",
          "current": {
            "text": "",
            "value": ""
          },
          "hide": "hideVariable",
          "refresh": "onTimeRangeChanged",
          "skipUrlSync": false,
          "query": {
            "kind": "DataQuery",
            "group": "prometheus",
            "version": "v0",
            "spec": {
              "qryType": 1,
              "query": "label_values({location_name=~\"$location\", ssid=~\"$ssid\", sensor_name=~\"$sensor\", profile_name=~\"$profile_name\"},__name__)",
              "refId": "PrometheusVariableQueryEditor-VariableQuery"
            },
            "labels": {
              "grafana.app/export-label": "prometheus-1"
            }
          },
          "regex": "/wyebot_tests_(.*)_status/",
          "regexApplyTo": "value",
          "sort": "disabled",
          "definition": "label_values({location_name=~\"$location\", ssid=~\"$ssid\", sensor_name=~\"$sensor\", profile_name=~\"$profile_name\"},__name__)",
          "options": [],
          "multi": false,
          "includeAll": true,
          "allowCustomValue": false
        }
      }
    ]
  }
}