{
  "uid": "device-drilldown",
  "title": "Device Drill-Down",
  "tags": ["network", "osnm", "ch10"],
  "timezone": "utc",
  "schemaVersion": 39,
  "refresh": "",
  "time": { "from": "2026-06-13T01:00:00.000Z", "to": "2026-06-13T02:00:00.000Z" },
  "templating": {
    "list": [
      {
        "name": "device",
        "label": "Device",
        "hide": 2,
        "type": "custom",
        "query": "spine-01 : 10.251.1.65,spine-02 : 10.251.1.66,leaf-01 : 10.251.1.67,leaf-02 : 10.251.1.68,wan-rtr : 10.251.1.70,site1-rtr : 10.251.1.71,site1-sw : 10.251.1.72,site2-rtr : 10.251.1.73,site2-sw : 10.251.1.74",
        "includeAll": false,
        "multi": false,
        "current": { "text": "spine-01", "value": "10.251.1.65", "selected": true },
        "options": [
          { "text": "spine-01", "value": "10.251.1.65", "selected": true },
          { "text": "spine-02", "value": "10.251.1.66", "selected": false },
          { "text": "leaf-01", "value": "10.251.1.67", "selected": false },
          { "text": "leaf-02", "value": "10.251.1.68", "selected": false },
          { "text": "wan-rtr", "value": "10.251.1.70", "selected": false },
          { "text": "site1-rtr", "value": "10.251.1.71", "selected": false },
          { "text": "site1-sw", "value": "10.251.1.72", "selected": false },
          { "text": "site2-rtr", "value": "10.251.1.73", "selected": false },
          { "text": "site2-sw", "value": "10.251.1.74", "selected": false }
        ]
      }
    ]
  },
  "annotations": {
    "list": [
      {
        "name": "Device events",
        "enable": true,
        "iconColor": "red",
        "datasource": { "type": "victoriametrics-logs-datasource", "uid": "PD775F2863313E6C7" },
        "target": { "expr": "hostname:${device:text} (LINEPROTO OR BGP)", "refId": "Anno" },
        "textField": "_msg",
        "titleField": "app_name"
      }
    ]
  },
  "panels": [
    {
      "id": 1,
      "title": "Interface Traffic In — bits/s ($device)",
      "type": "timeseries",
      "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" },
      "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 },
      "fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "fillOpacity": 10 } }, "overrides": [] },
      "options": { "legend": { "displayMode": "table", "placement": "bottom" } },
      "targets": [
        { "refId": "A", "expr": "rate(interfaces_in_octets{source=\"$device\"}[5m]) * 8", "legendFormat": "{{name}}", "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" } }
      ]
    },
    {
      "id": 2,
      "title": "Interface Traffic Out — bits/s ($device)",
      "type": "timeseries",
      "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" },
      "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 },
      "fieldConfig": { "defaults": { "unit": "bps", "custom": { "drawStyle": "line", "fillOpacity": 10 } }, "overrides": [] },
      "options": { "legend": { "displayMode": "table", "placement": "bottom" } },
      "targets": [
        { "refId": "A", "expr": "rate(interfaces_out_octets{source=\"$device\"}[5m]) * 8", "legendFormat": "{{name}}", "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" } }
      ]
    },
    {
      "id": 3,
      "title": "Interface Errors & Discards — /s ($device)",
      "type": "timeseries",
      "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" },
      "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 },
      "fieldConfig": { "defaults": { "unit": "pps", "custom": { "drawStyle": "line", "fillOpacity": 10 } }, "overrides": [] },
      "options": { "legend": { "displayMode": "table", "placement": "bottom" } },
      "targets": [
        { "refId": "A", "expr": "rate(interfaces_in_errors{source=\"$device\"}[5m])", "legendFormat": "in-errors {{name}}", "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" } },
        { "refId": "B", "expr": "rate(interfaces_out_errors{source=\"$device\"}[5m])", "legendFormat": "out-errors {{name}}", "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" } },
        { "refId": "C", "expr": "rate(interfaces_in_discards{source=\"$device\"}[5m])", "legendFormat": "in-discards {{name}}", "datasource": { "type": "prometheus", "uid": "P4169E866C3094E38" } }
      ]
    },
    {
      "id": 4,
      "title": "Log Volume — events/min ($device)",
      "type": "timeseries",
      "datasource": { "type": "victoriametrics-logs-datasource", "uid": "PD775F2863313E6C7" },
      "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 },
      "fieldConfig": { "defaults": { "unit": "short", "custom": { "drawStyle": "bars", "fillOpacity": 60 } }, "overrides": [] },
      "options": { "legend": { "displayMode": "list", "placement": "bottom" } },
      "targets": [
        { "refId": "A", "expr": "hostname:${device:text} | stats count() logs", "queryType": "statsRange", "step": "1m", "datasource": { "type": "victoriametrics-logs-datasource", "uid": "PD775F2863313E6C7" } }
      ]
    },
    {
      "id": 5,
      "title": "Device Syslog ($device)",
      "type": "logs",
      "datasource": { "type": "victoriametrics-logs-datasource", "uid": "PD775F2863313E6C7" },
      "gridPos": { "h": 10, "w": 24, "x": 0, "y": 16 },
      "options": { "showTime": true, "wrapLogMessage": true, "sortOrder": "Descending" },
      "targets": [
        { "refId": "A", "expr": "hostname:${device:text}", "datasource": { "type": "victoriametrics-logs-datasource", "uid": "PD775F2863313E6C7" } }
      ]
    }
  ]
}
