{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "",
  "editable": true,
  "gnetId": null,
  "graphTooltip": 0,
  "id": 62,
  "iteration": 1590005811392,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "datasource": "Prometheus",
      "description": "",
      "gridPos": {
        "h": 5,
        "w": 5,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "links": [],
      "options": {
        "fieldOptions": {
          "calcs": [
            "mean"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                }
              ]
            },
            "unit": "timeticks"
          },
          "overrides": [],
          "values": false
        },
        "orientation": "horizontal",
        "showThresholdLabels": false,
        "showThresholdMarkers": true
      },
      "pluginVersion": "6.6.2",
      "targets": [
        {
          "expr": "sysUpTime{instance=\"$Device\"}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Uptime-$Device",
      "type": "gauge"
    },
    {
      "cacheTimeout": null,
      "datasource": "Prometheus",
      "description": "Percent of inbound packets that could not be transmitted during the most recent time interval because of error. (Threshold 2%)",
      "gridPos": {
        "h": 5,
        "w": 9,
        "x": 5,
        "y": 0
      },
      "id": 16,
      "interval": "",
      "links": [],
      "options": {
        "displayMode": "lcd",
        "fieldOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 2
                },
                {
                  "color": "#d44a3a"
                }
              ]
            },
            "unit": "percent"
          },
          "overrides": [],
          "values": false
        },
        "orientation": "horizontal",
        "showUnfilled": true
      },
      "pluginVersion": "6.6.2",
      "targets": [
        {
          "expr": "((sum by (instance) (rate(ifInErrors{instance=\"$Device\"}[$interval]))) / ((sum by (instance) (rate(ifHCInUcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCInBroadcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCInMulticastPkts {instance=\"$Device\"}[$interval])))) * 100 )",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Percent packets in error ($interval) Inbound",
      "type": "bargauge"
    },
    {
      "cacheTimeout": null,
      "datasource": "Prometheus",
      "description": "Percent of total interface packets (both transmitted and received) that were in error during the most recent time interval. (Threshold 3%)",
      "gridPos": {
        "h": 5,
        "w": 10,
        "x": 14,
        "y": 0
      },
      "id": 17,
      "links": [],
      "options": {
        "displayMode": "lcd",
        "fieldOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "#d44a3a"
                },
                {
                  "color": "red",
                  "value": 3
                }
              ]
            },
            "unit": "percent"
          },
          "overrides": [],
          "values": false
        },
        "orientation": "horizontal",
        "showUnfilled": true
      },
      "pluginVersion": "6.6.2",
      "targets": [
        {
          "expr": "((sum by (instance) (rate(ifInErrors{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifOutErrors{instance=\"$Device\"}[$interval]))) / ((sum by (instance) (rate(ifHCInUcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCInBroadcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCInMulticastPkts {instance=\"$Device\"}[$interval])))+ (sum by (instance) (rate(ifHCOutUcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCOutBroadcastPkts{instance=\"$Device\"}[$interval]))) + (sum by (instance) (rate(ifHCOutMulticastPkts {instance=\"$Device\"}[$interval])))) * 100 )",
          "refId": "A"
        },
        {
          "expr": "",
          "refId": "B"
        },
        {
          "expr": "",
          "refId": "C"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Percent packets in error ($interval) Inbound + Outbound",
      "type": "bargauge"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "description": "In and Out Discards by the instance in a day",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 5
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "hideEmpty": false,
        "hideZero": false,
        "max": true,
        "min": true,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.2",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (instance) (rate(ifInDiscards{instance='$Device'}[$interval]) )",
          "interval": "",
          "legendFormat": "In ",
          "refId": "A"
        },
        {
          "expr": "sum by (instance) (rate(ifOutDiscards{instance='$Device'}[$interval]) )",
          "interval": "",
          "legendFormat": "Out ",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Discards $Device ($interval)",
      "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": "In vs Out Discards",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "description": "In and Out errors by the instance in a day",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 5
      },
      "hiddenSeries": false,
      "id": 4,
      "interval": "",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.2",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by (instance) (rate(ifInErrors{instance=\"$Device\"}[$interval]) ) ",
          "legendFormat": "In ",
          "refId": "A"
        },
        {
          "expr": "sum by (instance) (rate(ifOutErrors{instance=\"$Device\"}[$interval]))",
          "legendFormat": "Out ",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Errors $Device ($interval)",
      "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": "In vs Out Errors",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "description": "Requested = Out  ; \nDelivered = In. This graph is the difference between packets requested vs packets transmitted",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 0,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 12,
      "interval": "",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "hideEmpty": true,
        "hideZero": true,
        "max": true,
        "min": false,
        "rightSide": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.2",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "(sum by(instance) (rate(ifHCOutBroadcastPkts{instance=\"$Device\"}[$LONG])) or (sum by(instance) (rate(ifOutBroadcastPkts{instance=\"$Device\"}[$LONG])))) + (sum by (instance)  (rate(ifHCOutMulticastPkts{instance=\"$Device\"}[$LONG]))  or (sum by(instance) (rate(ifOutMulticastPkts{instance=\"$Device\"}[$LONG]))))",
          "legendFormat": "Requested ",
          "refId": "A"
        },
        {
          "expr": "(sum by(instance) (rate(ifHCInBroadcastPkts{instance=\"$Device\"}[$LONG])) or (sum by(instance) (rate(ifInBroadcastPkts{instance=\"$Device\"}[$LONG])))) + (sum by (instance)  (rate(ifHCInMulticastPkts{instance=\"$Device\"}[$LONG]))  or (sum by(instance) (rate(ifInMulticastPkts{instance=\"$Device\"}[$LONG]))))",
          "legendFormat": "Delivered",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Packets  for Broadcast and Multicast addresses for $Device ($LONG)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bps",
          "label": "Requested (Out) / Delivered (In)",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "description": "Requested = Out  ; \nDelivered = In. This graph is the difference between packets requested vs packets transmitted for Packets except broadcast and multicast",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 12,
        "x": 12,
        "y": 13
      },
      "hiddenSeries": false,
      "id": 14,
      "interval": "",
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": false,
        "show": true,
        "total": false,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pluginVersion": "6.6.2",
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "(sum by (instance) (rate(ifHCOutUcastPkts{instance=\"$Device\"}[$LONG]))) - (sum by (instance) (rate(ifHCInUcastPkts{instance=\"$Device\"}[$LONG])))",
          "legendFormat": "Requested - Delivered",
          "refId": "A"
        },
        {
          "expr": "",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Other Packets ($LONG)",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "bps",
          "label": "Requested (Out) - Delivered (In)",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "Prometheus",
      "description": "The total number of octets received vs transmitted on the interface",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 25
      },
      "hiddenSeries": false,
      "id": 10,
      "legend": {
        "alignAsTable": true,
        "avg": true,
        "current": true,
        "max": true,
        "min": false,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "expr": "sum by(instance)(irate(ifHCOutOctets{instance='$Device'}[$interval])) + sum by(instance)(irate(ifOutOctets{instance='$Device'}[$interval]))",
          "legendFormat": "Total Out",
          "refId": "A"
        },
        {
          "expr": "- (sum by(instance)(irate(ifHCInOctets{instance='$Device'}[$interval])) + sum by(instance)(irate(ifInOctets{instance='$Device'}[$interval])))",
          "legendFormat": "Total In",
          "refId": "B"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "$Device Total In/Out [$interval]]",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "Bps",
          "label": "Out Octets / In Octets",
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {
          "text": "10.0.19.43",
          "value": "10.0.19.43"
        },
        "datasource": "Prometheus",
        "definition": "query_result(sum by (instance)(ifInOctets{job=\"snmp\"}))",
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "Device",
        "options": [],
        "query": "query_result(sum by (instance)(ifInOctets{job=\"snmp\"}))",
        "refresh": 1,
        "regex": ".*instance=\"(.*?)\".*",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": "Prometheus",
        "definition": "query_result(ifInOctets{job=\"snmp\",instance=\"$Device\"})",
        "hide": 2,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "Interface",
        "options": [],
        "query": "query_result(ifInOctets{job=\"snmp\",instance=\"$Device\"})",
        "refresh": 1,
        "regex": ".*ifDescr=\"(.*?)\",.*",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "auto": true,
        "auto_count": 30,
        "auto_min": "5m",
        "current": {
          "selected": false,
          "text": "15m",
          "value": "15m"
        },
        "hide": 0,
        "label": null,
        "name": "interval",
        "options": [
          {
            "selected": false,
            "text": "auto",
            "value": "$__auto_interval_interval"
          },
          {
            "selected": false,
            "text": "5m",
            "value": "5m"
          },
          {
            "selected": true,
            "text": "15m",
            "value": "15m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "3h",
            "value": "3h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          }
        ],
        "query": "5m,15m,30m,1h,3h,6h,12h,1d",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "auto": false,
        "auto_count": 30,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "7d",
          "value": "7d"
        },
        "hide": 0,
        "label": null,
        "name": "LONG",
        "options": [
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "8h",
            "value": "8h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "4d",
            "value": "4d"
          },
          {
            "selected": true,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "15d",
            "value": "15d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "6h,8h,12h,1d,4d,7d,15d,30d",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      }
    ]
  },
  "time": {
    "from": "2020-05-11T13:29:47.596Z",
    "to": "2020-05-11T15:02:22.591Z"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Switch Data Statistics",
  "uid": "vC-3OCeWz",
  "version": 1
}
