Grafana dashboard: Mellanox - What Just Happened? Debug
Description: The Debug Dashboard allows users to receive detailed information about all the recorded "What Just Happened?" drops. It includes a graph of dropped packets per time and a detailed table of dropped packets.


[Deploying Mellanox What-Just-Happen dashboards on Grafana](https://github.com/Mellanox/wjhgraf/wiki/Deploying-Mellanox-What-Just-Happen-dashboards-on-Grafana) 

{
  "__inputs": [
    {
      "name": "DS_TELEGRAF",
      "label": "telegraf",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.0.2"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": "5.0.0"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": "5.0.0"
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": "5.0.0"
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": false,
  "gnetId": 11224,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1574156341265,
  "links": [],
  "panels": [
    {
      "content": "<center><a href=\"http://www.mellanox.com\" target=\"_new\"><img width=\"150px\" src=\"http://www.mellanox.com/img/news/media_kit/logo/white/mellanox-logo-square-white.png\"></a></center>\n\n\n",
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 0,
        "y": 0
      },
      "id": 13,
      "links": [],
      "mode": "html",
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "text"
    },
    {
      "content": "<h1><b><br>Mellanox Event Telemetry - What Just Happened? - Debug</b></h1>\n<a href=\"/d/XiWyzYZWk/mellanox-what-just-happened-monitoring\">Go to Monitoring Dashboard</a><br>\n<a href=\"/d/3Qie9y1Wz/mellanox-what-just-happened-layer-1-events\">Go to Layer 1 Dashboard</a> ",
      "gridPos": {
        "h": 5,
        "w": 15,
        "x": 3,
        "y": 0
      },
      "id": 15,
      "links": [],
      "mode": "html",
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "text"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorPostfix": false,
      "colorPrefix": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "${DS_TELEGRAF}",
      "format": "locale",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 18,
        "y": 0
      },
      "id": 9,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "100%",
      "prefix": "",
      "prefixFontSize": "100%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": true,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT  count(packet_ethernet_etherTypeName) as value FROM \"DroppedPackets\" WHERE \"message\"=~ /^$message$/ and \"deviceIP\"=~ /^$deviceIP$/ and ((\"message\"='Forwarding' and \"dropReason\"=~ /^$dropReason$/) or \"message\"='ACL') and \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ \n and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and ($timeFilter)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": "",
      "timeFrom": null,
      "timeShift": null,
      "title": "Dropped Packets for selected time range and filters",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "200%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_TELEGRAF}",
      "fill": 1,
      "gridPos": {
        "h": 3,
        "w": 23,
        "x": 0,
        "y": 5
      },
      "id": 17,
      "legend": {
        "alignAsTable": false,
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "paceLength": 10,
      "percentage": false,
      "pointradius": 0.5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "alias": "All Drop Types",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": true,
          "measurement": "wjh_socket_listener",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT count(\"packet_ethernet_etherType\") FROM \"DroppedPackets\" WHERE \"message\"=~ /^$message$/ and \"deviceIP\"=~ /^$deviceIP$/ and \"dropReason\"=~ /^$dropReason$/ and \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ \n and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"severity\"=~ /^$severity$/ and $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "etherType"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "count"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "ACL Drops",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"packet_ethernet_etherTypeName\") FROM \"DroppedPackets\" WHERE \"message\"='ACL' and \"deviceIP\"=~ /^$deviceIP$/  and \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ \n and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"severity\"=~ /^$severity$/ and $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Forwarding Drops",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"packet_ethernet_etherTypeName\") FROM \"DroppedPackets\" WHERE \"message\"='Forwarding' and \"deviceIP\"=~ /^$deviceIP$/ and \"dropReason\"=~ /^$dropReason$/ and \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ \n and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"severity\"=~ /^$severity$/ and $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Buffer Drops",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT count(\"packet_ethernet_etherTypeName\") FROM \"DroppedPackets\" WHERE \"message\"='bufferDrop' and \"deviceIP\"=~ /^$deviceIP$/ and \"dropReason\"=~ /^$dropReason$/ and \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ \n and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"severity\"=~ /^$severity$/ and $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": true,
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Dropped Packets",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "transparent": true,
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "decimals": null,
          "format": "short",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cacheTimeout": null,
      "columns": [],
      "datasource": "${DS_TELEGRAF}",
      "fontSize": "100%",
      "gridPos": {
        "h": 16,
        "w": 23,
        "x": 0,
        "y": 8
      },
      "id": 2,
      "links": [],
      "maxPerRow": 2,
      "pageSize": 20,
      "repeat": null,
      "repeatDirection": "v",
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 5,
        "desc": false
      },
      "styles": [
        {
          "alias": "Time",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "Category",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "message",
          "preserveFormat": true,
          "sanitize": false,
          "thresholds": [],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "ACL",
              "value": "aclDrop"
            },
            {
              "text": "Buffer",
              "value": "bufferDrop"
            },
            {
              "text": "Forwarding",
              "value": "fwdDrop"
            }
          ]
        },
        {
          "alias": "Switch IP",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "deviceIP",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Sub Category",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "dropType",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "Tunnel",
              "value": "tunnel"
            },
            {
              "text": "Layer 2",
              "value": "l2"
            },
            {
              "text": "Layer 3",
              "value": "l3"
            }
          ]
        },
        {
          "alias": "Reason",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "dropReason",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "SMAC",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": false,
          "mappingType": 1,
          "pattern": "packet_ethernet_srcMac",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "DMAC",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_ethernet_dstMac",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "SIP",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_ip_srcIp",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "DIP",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_ip_dstIp",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Protocol",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "packet_ip_protocol",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "DPort",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "packet_transport_dstPort",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "VLAN",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "link": false,
          "mappingType": 1,
          "pattern": "packet_ethernet_vlanId",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "In Port",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "ingressPort",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "OutPort",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "egressPort",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "VNI",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "packet_VXLAN_vni",
          "thresholds": [],
          "type": "number",
          "unit": "none"
        },
        {
          "alias": "InnerSIP",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_VXLAN_innerSrcIp",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "InnerDIP",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_VXLAN_innerDstIp",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Severity",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "severity",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Ethertype",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "packet_ethernet_etherTypeName",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Additional Info",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "description",
          "preserveFormat": false,
          "thresholds": [],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "",
              "value": ""
            }
          ]
        },
        {
          "alias": "Binding Point",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "bindingPoint",
          "preserveFormat": true,
          "thresholds": [],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "text": "INGRESS",
              "value": "WJH_ACL_BINDING_POINT_INGRESS"
            },
            {
              "text": "EGRESS",
              "value": "WJH_ACL_BINDING_POINT_EGRESS"
            },
            {
              "text": "RIF_INGRESS",
              "value": "WJH_ACL_BINDING_POINT_RIF_INGRESS"
            },
            {
              "text": "RIF_EGRESS",
              "value": "WJH_ACL_BINDING_POINT_RIF_EGRESS"
            }
          ]
        },
        {
          "alias": "SPort",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 0,
          "mappingType": 1,
          "pattern": "packet_transport_srcPort",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [],
          "hide": false,
          "measurement": "prefixsocket_listener",
          "orderByTime": "ASC",
          "policy": "autogen",
          "query": "SELECT \"message\",\"severity\",\"deviceIP\",\"ingressPort\",\"dropReason\",\"description\",\"bindingPoint\",\"packet_ethernet_srcMac\",\"packet_ethernet_dstMac\",\"packet_ip_srcIp\",\"packet_ip_dstIp\",\"packet_transport_srcPort\",\"packet_transport_dstPort\",\"packet_ethernet_etherTypeName\",\"packet_ip_protocol\",\"packet_ethernet_vlanId\" FROM (SELECT \"message\",\"severity\",\"deviceIP\",\"ingressPort\",\"dropReason\",\"description\",\"bindingPoint\",\"packet_ethernet_srcMac\",\"packet_ethernet_dstMac\",\"packet_ip_srcIp\",\"packet_ip_dstIp\",\"packet_transport_srcPort\",\"packet_transport_dstPort\",\"packet_ethernet_etherTypeName\",\"packet_ip_protocol\",\"packet_ethernet_vlanId\" FROM \"DroppedPackets\" WHERE \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"message\"=~ /^$message$/ and \"message\"!='ACL' and \"deviceIP\"=~ /^$deviceIP$/ and \"dropReason\"=~ /^$dropReason$/ and \"severity\"=~ /^$severity$/ and ($timeFilter) LIMIT 500000), (SELECT \"message\",\"severity\",\"deviceIP\",\"ingressPort\",\"aclName\" as \"dropReason\",\"rule\" as \"description\",\"bindingPoint\",\"packet_ethernet_srcMac\",\"packet_ethernet_dstMac\",\"packet_ip_srcIp\",\"packet_ip_dstIp\",\"packet_transport_srcPort\",\"packet_transport_dstPort\",\"packet_ethernet_etherTypeName\",\"packet_ip_protocol\",\"packet_ethernet_vlanId\" FROM \"DroppedPackets\" WHERE \"packet_ip_srcIp\"=~ /^$srcIp$/ and \"packet_ip_dstIp\"=~ /^$dstIp$/ and \"packet_ethernet_srcMac\"=~ /^$srcMac$/ and \"packet_ethernet_dstMac\"=~ /^$dstMac$/ and  \"packet_transport_dstPort\"=~ /^$dstPort$/ and \"message\"=~ /^$message$/ and \"message\"='ACL' and \"deviceIP\"=~ /^$deviceIP$/ and \"severity\"=~ /^$severity$/ and ($timeFilter) LIMIT 500000)  LIMIT 500000",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "ethernet_etherType"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ethernet_pcp"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ethernet_vlanId"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ip_protocol"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "ip_tos"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "reason"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "timestamp"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "transport_dstPort"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "transport_srcPort"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vxlan_innerDstPort"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vxlan_innerProtocol"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vxlan_innerSrcPort"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "vxlan_vni"
                ],
                "type": "field"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Dropped Packets",
      "transform": "table",
      "type": "table"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 18,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF}",
        "definition": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = severity",
        "hide": 0,
        "includeAll": true,
        "label": "Severity",
        "multi": true,
        "name": "severity",
        "options": [],
        "query": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = severity",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF}",
        "definition": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = message",
        "hide": 0,
        "includeAll": true,
        "label": "Drop Category",
        "multi": true,
        "name": "message",
        "options": [],
        "query": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = message",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF}",
        "definition": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = dropReason",
        "hide": 0,
        "includeAll": true,
        "label": "Drop Reason",
        "multi": true,
        "name": "dropReason",
        "options": [],
        "query": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = dropReason",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_TELEGRAF}",
        "definition": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = deviceIP",
        "hide": 0,
        "includeAll": true,
        "label": "Switch IP",
        "multi": true,
        "name": "deviceIP",
        "options": [],
        "query": "SHOW TAG VALUES FROM DroppedPackets WITH KEY = deviceIP",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "current": {
          "selected": true,
          "text": "*",
          "value": "*"
        },
        "hide": 0,
        "label": "SIP",
        "name": "srcIp",
        "options": [
          {
            "selected": true,
            "text": "*",
            "value": "*"
          }
        ],
        "query": "*",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "selected": true,
          "text": "*",
          "value": "*"
        },
        "hide": 0,
        "label": "DIP",
        "name": "dstIp",
        "options": [
          {
            "selected": true,
            "text": "*",
            "value": "*"
          }
        ],
        "query": "*",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "selected": true,
          "text": "*",
          "value": "*"
        },
        "hide": 0,
        "label": "SMAC",
        "name": "srcMac",
        "options": [
          {
            "selected": true,
            "text": "*",
            "value": "*"
          }
        ],
        "query": "*",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "selected": true,
          "text": "*",
          "value": "*"
        },
        "hide": 0,
        "label": "DMAC",
        "name": "dstMac",
        "options": [
          {
            "selected": true,
            "text": "*",
            "value": "*"
          }
        ],
        "query": "*",
        "skipUrlSync": false,
        "type": "textbox"
      },
      {
        "current": {
          "selected": true,
          "text": "*",
          "value": "*"
        },
        "hide": 0,
        "label": "DPort",
        "name": "dstPort",
        "options": [
          {
            "selected": true,
            "text": "*",
            "value": "*"
          }
        ],
        "query": "*",
        "skipUrlSync": false,
        "type": "textbox"
      }
    ]
  },
  "time": {
    "from": "now-5m",
    "to": "now"
  },
  "timepicker": {
    "hidden": false,
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "10m",
      "15m",
      "30m",
      "1h"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Mellanox - What Just Happened? Debug",
  "uid": "enfsjBWZk",
  "version": 91,
  "description": "The Debug Dashboard allows users to receive detailed information about all the recorded \"What Just Happened?\" drops. It includes a graph of dropped packets per time and a detailed table of dropped packets.\n"
}