Grafana dashboard: Mikrotik SWOS
Description: Mikrotik switchos snmp monitoring

It's a Dashboard built specifically for Mikrotik's SWOS.
It has been adapted from multiple RouterOS Dashboards here.
This is not a dashboard for RouterOS - it's only the switching part

I use the SNMP_exporter running on the same machine as my Prometheus to gather the data from the switch via... SNMP, duh!.
Use it with the module=mikrotik & target=Your_switch_IP_Address

I only tested it with my switch (model and version in screenshots).
The only Hard-Coded info in the dashboard are the two optical interface panels. 
Change the interface id or just remove them completely if you have a different model.
Other than that it's basically Plug and play. Might even work with other switches.

Latest version fressssshhhh from the oven!
- Changelog - 
Bugfixes and overall functionality improvements


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "with data provided from snmp-exporter",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.1.2"
    },
    {
      "type": "panel",
      "id": "piechart",
      "name": "Pie chart",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "target": {
          "limit": 100,
          "matchAny": false,
          "tags": [],
          "type": "dashboard"
        },
        "type": "dashboard"
      }
    ]
  },
  "description": "Mikrotik switchos snmp monitoring",
  "editable": false,
  "gnetId": 14933,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1630099251970,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "super-light-yellow",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 2,
        "w": 4,
        "x": 0,
        "y": 0
      },
      "id": 1200,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "valueSize": 25
        },
        "textMode": "name"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sysDescr{instance='$instance'}",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "{{sysDescr}}",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Model",
      "type": "stat"
    },
    {
      "datasource": null,
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 2,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "displayName": "CPU Temp",
          "mappings": [],
          "max": 80,
          "min": 1,
          "noValue": "N/A",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              },
              {
                "color": "dark-green",
                "value": 20
              },
              {
                "color": "yellow",
                "value": 69
              },
              {
                "color": "dark-orange",
                "value": 70
              },
              {
                "color": "dark-red",
                "value": 90
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": [
          {
            "__systemRef": "hideSeriesFrom",
            "matcher": {
              "id": "byNames",
              "options": {
                "mode": "exclude",
                "names": [
                  "CPU Temp"
                ],
                "prefix": "All except:",
                "readOnly": true
              }
            },
            "properties": [
              {
                "id": "custom.hideFrom",
                "value": {
                  "legend": false,
                  "tooltip": false,
                  "viz": true
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 6,
        "x": 4,
        "y": 0
      },
      "id": 1228,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrHlProcessorTemperature{instance='$instance'}/10 or mtxrHlTemperature{instance='$instance'}/10",
          "instant": false,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "CPU Temp",
      "type": "timeseries"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 83,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "links": [],
          "mappings": [],
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "#EAB839",
                "value": 1
              },
              {
                "color": "dark-orange",
                "value": 10
              },
              {
                "color": "dark-red",
                "value": 20
              }
            ]
          },
          "unit": "string"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 10,
        "y": 0
      },
      "id": 1173,
      "links": [],
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "max",
            "min",
            "sum"
          ],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "pluginVersion": "8.1.2",
      "repeat": null,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum (ifOutQLen{ifName=~'$Interface',instance='$instance'})",
          "interval": "",
          "legendFormat": "Packets",
          "refId": "B"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Queue Length for all ports",
      "type": "timeseries"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_PROMETHEUS}",
      "description": "For packet-oriented interfaces, the number of packets that contained errors preventing them from being deliverable to a higher-layer protocol",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "light-orange",
                "value": null
              }
            ]
          },
          "unit": "none"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 5,
        "w": 4,
        "x": 14,
        "y": 0
      },
      "id": 482,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": false,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "repeat": null,
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(irate(ifInErrors{ifName=~'$Interface',instance='$instance'}[20s]))",
          "format": "time_series",
          "hide": false,
          "instant": false,
          "interval": "",
          "legendFormat": " IN",
          "refId": "B"
        },
        {
          "exemplar": true,
          "expr": "sum(irate(ifOutErrors{ifName=~'$Interface',instance='$instance'}[20s]))",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "legendFormat": "OUT",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Non deliverable frames",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Multicast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Multicast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Broadcast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Broadcast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Unicast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Unicast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Discarded"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Discarded"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Errors"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Errors"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 18,
        "y": 0
      },
      "id": 1975,
      "options": {
        "displayLabels": [],
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "repeatDirection": "v",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(ifInUcastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "Unicast",
          "refId": "Unicast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifInBroadcastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "Broadcast",
          "refId": "Broadcast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifInMulticastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Multicast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifInErrors{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Errors"
        },
        {
          "exemplar": true,
          "expr": "sum(ifInDiscards{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Discarded"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total IN Distribution",
      "type": "piechart"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "short"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Multicast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Multicast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Broadcast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Broadcast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Unicast"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Unicast"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Discarded"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Discarded"
              }
            ]
          },
          {
            "matcher": {
              "id": "byFrameRefID",
              "options": "Errors"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "Errors"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 3,
        "x": 21,
        "y": 0
      },
      "id": 2280,
      "options": {
        "displayLabels": [],
        "legend": {
          "displayMode": "list",
          "placement": "right",
          "values": [
            "percent"
          ]
        },
        "pieType": "pie",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "pluginVersion": "8.1.2",
      "repeatDirection": "v",
      "targets": [
        {
          "exemplar": true,
          "expr": "sum(ifOutUcastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "intervalFactor": 1,
          "legendFormat": "Unicast",
          "refId": "Unicast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifOutBroadcastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "instant": true,
          "interval": "",
          "legendFormat": "Broadcast",
          "refId": "Broadcast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifOutMulticastPkts{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Multicast"
        },
        {
          "exemplar": true,
          "expr": "sum(ifOutErrors{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Errors"
        },
        {
          "exemplar": true,
          "expr": "sum(ifOutDiscards{ifName=~'$Interface',instance='$instance'})",
          "format": "table",
          "hide": false,
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "Discarded"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Total Out Distribution",
      "type": "piechart"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_PROMETHEUS}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "dtdurations"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 2
      },
      "id": 476,
      "interval": null,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "center",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "text": {
          "valueSize": 25
        },
        "textMode": "value"
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "sysUpTime{instance='$instance'}/100",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "uptime",
      "type": "stat"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [
            {
              "options": {
                "from": 101,
                "result": {
                  "color": "text",
                  "index": 0,
                  "text": "N/A"
                },
                "to": 4294967168
              },
              "type": "range"
            }
          ],
          "max": 100,
          "min": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 55
              },
              {
                "color": "dark-orange",
                "value": 65
              },
              {
                "color": "dark-red",
                "value": 70
              },
              {
                "color": "text",
                "value": 90
              },
              {
                "color": "transparent",
                "value": 100
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 0,
        "y": 5
      },
      "id": 2078,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalTemperature{instance='$instance', mtxrOpticalIndex=\"25\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP1 Temp",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "N/A"
                }
              },
              "type": "value"
            }
          ],
          "max": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "mvolt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 2,
        "y": 5
      },
      "id": 1767,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalSupplyVoltage{instance='$instance', mtxrOpticalIndex=\"25\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP1 Voltage",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "N/A"
                }
              },
              "type": "value"
            }
          ],
          "max": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              }
            ]
          },
          "unit": "mamp"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 4,
        "y": 5
      },
      "id": 1768,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalWavelength{instance='$instance', mtxrOpticalIndex=\"25\"}/10000",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP1 Tx Bias",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 100,
            "gradientMode": "scheme",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 1000000000,
          "min": -1000000000,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 6,
        "y": 5
      },
      "id": 1770,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "right"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "irate(ifInOctets{instance='$instance', ifIndex=\"25\"}[30s])*80",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "SFP1 IN",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "-(irate(ifOutOctets{instance='$instance', ifIndex=\"25\"}[30s])*80)",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "SFP1 OUT",
          "refId": "B"
        }
      ],
      "title": "SPF1 Traffic",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [
            {
              "options": {
                "from": 101,
                "result": {
                  "color": "text",
                  "index": 0,
                  "text": "N/A"
                },
                "to": 4294967168
              },
              "type": "range"
            }
          ],
          "max": 100,
          "min": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-green",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 55
              },
              {
                "color": "dark-orange",
                "value": 65
              },
              {
                "color": "dark-red",
                "value": 70
              },
              {
                "color": "text",
                "value": 90
              },
              {
                "color": "transparent",
                "value": 100
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 12,
        "y": 5
      },
      "id": 1765,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalTemperature{instance='$instance', mtxrOpticalIndex=\"26\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP2 Temp",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [],
          "max": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "mvolt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 14,
        "y": 5
      },
      "id": 1766,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalSupplyVoltage{instance='$instance', mtxrOpticalIndex=\"26\"}",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP2 Voltage",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "0": {
                  "index": 0,
                  "text": "N/A"
                }
              },
              "type": "value"
            }
          ],
          "max": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              }
            ]
          },
          "unit": "mamp"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 2,
        "x": 16,
        "y": 5
      },
      "id": 1769,
      "options": {
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "showThresholdLabels": false,
        "showThresholdMarkers": true,
        "text": {}
      },
      "pluginVersion": "8.1.2",
      "targets": [
        {
          "exemplar": true,
          "expr": "mtxrOpticalWavelength{instance='$instance', mtxrOpticalIndex=\"26\"}/10000",
          "instant": true,
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "SFP2 Tx Bias",
      "type": "gauge"
    },
    {
      "datasource": null,
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 100,
            "gradientMode": "scheme",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "normal"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 1000000000,
          "min": -1000000000,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "binBps"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 6,
        "x": 18,
        "y": 5
      },
      "id": 1974,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "right"
        },
        "tooltip": {
          "mode": "single"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "irate(ifInOctets{instance='$instance', ifIndex=\"26\"}[30s])*80",
          "format": "time_series",
          "instant": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "SFP1 IN",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "-(irate(ifOutOctets{instance='$instance', ifIndex=\"26\"}[30s])*80)",
          "hide": false,
          "interval": "",
          "intervalFactor": 2,
          "legendFormat": "SFP1 OUT",
          "refId": "B"
        }
      ],
      "title": "SPF2 Traffic",
      "type": "timeseries"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 1872,
      "panels": [
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds",
                "seriesBy": "max"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 100,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 2,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "normal"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#1a2911b5",
                    "value": null
                  },
                  {
                    "color": "dark-green",
                    "value": 100000
                  },
                  {
                    "color": "#EAB839",
                    "value": 1000000
                  },
                  {
                    "color": "dark-orange",
                    "value": 10000000
                  },
                  {
                    "color": "dark-red",
                    "value": 100000000
                  },
                  {
                    "color": "super-light-red",
                    "value": 1000000000
                  }
                ]
              },
              "unit": "bps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 17,
            "w": 12,
            "x": 0,
            "y": 10
          },
          "id": 1561,
          "options": {
            "legend": {
              "calcs": [
                "mean",
                "min",
                "max"
              ],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "irate(ifHCInOctets{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])*8",
              "format": "time_series",
              "interval": "",
              "legendFormat": "{{ifName}}",
              "refId": "Interface"
            }
          ],
          "title": "Aggregated Ingress Traffic",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds",
                "seriesBy": "max"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 100,
                "gradientMode": "hue",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 2,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "normal"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "#1a2911b5",
                    "value": null
                  },
                  {
                    "color": "dark-green",
                    "value": 100000
                  },
                  {
                    "color": "#EAB839",
                    "value": 1000000
                  },
                  {
                    "color": "dark-orange",
                    "value": 10000000
                  },
                  {
                    "color": "dark-red",
                    "value": 100000000
                  },
                  {
                    "color": "super-light-red",
                    "value": 1000000000
                  }
                ]
              },
              "unit": "bps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 17,
            "w": 12,
            "x": 12,
            "y": 10
          },
          "id": 2179,
          "options": {
            "legend": {
              "calcs": [
                "mean",
                "min",
                "max"
              ],
              "displayMode": "list",
              "placement": "right"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "irate(ifHCOutOctets{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])*8",
              "format": "time_series",
              "interval": "",
              "legendFormat": "{{ifName}}",
              "refId": "Interface"
            }
          ],
          "title": "Aggregated Engress Traffic",
          "transformations": [],
          "type": "timeseries"
        }
      ],
      "title": "All Traffic",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 1060,
      "panels": [
        {
          "datasource": null,
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "0": {
                      "index": 7,
                      "text": "N/A"
                    },
                    "1": {
                      "color": "dark-green",
                      "index": 0,
                      "text": "UP"
                    },
                    "2": {
                      "color": "dark-red",
                      "index": 1,
                      "text": "DOWN"
                    },
                    "10": {
                      "index": 4,
                      "text": "10 Mb/s"
                    },
                    "100": {
                      "index": 2,
                      "text": "100 Mb/s"
                    },
                    "1000": {
                      "index": 3,
                      "text": "1 Gb/s"
                    },
                    "500001": {
                      "color": "#566f5f",
                      "index": 5,
                      "text": "Enabled"
                    },
                    "500002": {
                      "color": "super-light-red",
                      "index": 6,
                      "text": "Disabled"
                    }
                  },
                  "type": "value"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 2,
            "x": 0,
            "y": 11
          },
          "id": 1230,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "horizontal",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "value"
          },
          "pluginVersion": "8.1.2",
          "repeat": "Interface",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "ifAdminStatus{ifName=~'$Interface',instance='$instance'}+500000",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "Admin",
              "refId": "AdminStat"
            },
            {
              "exemplar": true,
              "expr": "ifOperStatus{ifName=~'$Interface',instance='$instance'}",
              "format": "time_series",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "Operation",
              "refId": "OperStat"
            },
            {
              "exemplar": true,
              "expr": "ifHighSpeed{ifName=~'$Interface',instance='$instance'}",
              "format": "time_series",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": " Speed",
              "refId": "IntSpeed"
            },
            {
              "exemplar": true,
              "expr": "ifMtu{ifName=~'$Interface',instance='$instance'}",
              "hide": false,
              "instant": true,
              "interval": "",
              "legendFormat": "MTU",
              "refId": "MTU"
            }
          ],
          "title": "Interface $Interface",
          "type": "stat"
        },
        {
          "datasource": "${DS_PROMETHEUS}",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 20,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 2,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": true,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "links": [],
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "bps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 14,
            "x": 2,
            "y": 11
          },
          "id": 137,
          "links": [],
          "options": {
            "legend": {
              "calcs": [
                "mean",
                "lastNotNull",
                "max"
              ],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "repeat": "Interface",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "irate(ifHCInOctets{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])*8",
              "format": "time_series",
              "instant": false,
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "In",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "-(irate(ifHCOutOctets{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])*8)",
              "format": "time_series",
              "instant": false,
              "interval": "",
              "intervalFactor": 2,
              "legendFormat": "Out",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Traffic on interface \"$Interface\"",
          "transparent": true,
          "type": "timeseries"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "decimals": 0,
              "mappings": [],
              "unit": "pps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 16,
            "y": 11
          },
          "id": 1282,
          "options": {
            "displayLabels": [],
            "legend": {
              "displayMode": "list",
              "placement": "right",
              "values": [
                "value"
              ]
            },
            "pieType": "pie",
            "reduceOptions": {
              "calcs": [
                "delta"
              ],
              "fields": "",
              "values": false
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "repeat": "Interface",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "irate(ifInBroadcastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "instant": false,
              "interval": "",
              "legendFormat": "Broadcast",
              "refId": "BroadcastIn"
            },
            {
              "exemplar": true,
              "expr": "irate(ifInMulticastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Multicast",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "irate(ifInUcastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Unicast",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "irate(ifInDiscards{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Discards",
              "refId": "Discarded"
            },
            {
              "exemplar": true,
              "expr": "irate(ifInErrors{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Errors",
              "refId": "C"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "IN Distribution",
          "type": "piechart"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                }
              },
              "decimals": 0,
              "mappings": [],
              "unit": "pps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 6,
            "w": 4,
            "x": 20,
            "y": 11
          },
          "id": 1358,
          "options": {
            "legend": {
              "displayMode": "list",
              "placement": "right",
              "values": [
                "value"
              ]
            },
            "pieType": "pie",
            "reduceOptions": {
              "calcs": [
                "delta"
              ],
              "fields": "",
              "values": false
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.1.2",
          "repeat": "Interface",
          "repeatDirection": "v",
          "targets": [
            {
              "exemplar": true,
              "expr": "irate(ifOutBroadcastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "instant": false,
              "interval": "",
              "legendFormat": "Broadcast",
              "refId": "BroadcastIn"
            },
            {
              "exemplar": true,
              "expr": "irate(ifOutMulticastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Multicast",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "irate(ifOutUcastPkts{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Unicast",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "irate(ifOutDiscards{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Discards",
              "refId": "Discarded"
            },
            {
              "exemplar": true,
              "expr": "irate(ifOutErrors{job='snmp',ifName=~'$Interface',instance='$instance'}[20s])",
              "hide": false,
              "interval": "",
              "legendFormat": "Errors",
              "refId": "C"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Out Distribution",
          "type": "piechart"
        }
      ],
      "title": "Interface Details",
      "type": "row"
    }
  ],
  "refresh": "5m",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [
    "Mikrotik",
    "SWOS",
    "SwitchOS"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "query_result(ifInOctets{job=\"snmp-exporter\"})",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "instance",
        "options": [],
        "query": {
          "query": "label_values(ifHCInOctets,  instance)",
          "refId": "Prometheus-instance-Variable-Query"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 3,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "query_result(sort(ifIndex{ifName=~'^(ether).+',instance='$instance'}) or sort(ifIndex{ifName=~'^(sfp|wlan).+',instance='$instance'}) or sort(ifIndex{ifName=~'^bridge.+',instance='$instance'}) or  sort(ifIndex{ifName!~'^(ether|bridge).+',instance='$instance'}) )",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": null,
        "multi": false,
        "name": "Interface",
        "options": [],
        "query": {
          "query": "query_result(sort(ifIndex{ifName=~'^(ether).+',instance='$instance'}) or sort(ifIndex{ifName=~'^(sfp|wlan).+',instance='$instance'}) or sort(ifIndex{ifName=~'^bridge.+',instance='$instance'}) or  sort(ifIndex{ifName!~'^(ether|bridge).+',instance='$instance'}) )",
          "refId": "Prometheus-Interface-Variable-Query"
        },
        "refresh": 1,
        "regex": "/ifName=\"(.*)\",instance/",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "Mikrotik SWOS",
  "uid": "rZsm3Migz",
  "version": 53
}