Grafana dashboard: Cisco NXOS/ACI IfAlias
Description: No.1 Troubleshooting Dashboard - Filter Interface Statistics based on IfAlias/Description

# Cisco NX-OS and ACI  -  IfAlias Dashboard

So this one has the potential to become your most popular dashboard ... ever.

## Data gathering

Telegraf polls configured devices (agents) via SNMPv3 and stores all metrics as a measurement IF in the InfluxDB.
You might like to adjust the [inputs.snmp.tagpass] section if you want to poll portchannel or loopback Interfaces as well.

## Dashboard usage

When you open the dashboard nothing is displayed, because the ad hoc query at the top of the screen is set to an unused default value. Just enter a (part of a) searchstring of your connected device, be it a server, Firewall, WAN Edge,... and the Dashboards provides full interfaces statistics of all Switches with this IfAlias, as well as three graph panels with Interface status, Traffic and Errors over time. Remember: The query uses regex, so it has to begin and end with an slash, like /-253/ in the example to find the Server with -253 in the name.

Share this dashboard with your serverteam, service desk, basically everyone connecting straight to your network and your ticket count will drop significantly. Because now everybody can self evaluate the network side of their devices.


{
  "__inputs": [
    {
      "name": "DS_INFLUXDB",
      "label": "InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:23692",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12488,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1592028150967,
  "links": [],
  "panels": [
    {
      "columns": [],
      "datasource": "${DS_INFLUXDB}",
      "description": "Displays all Interfaces according to (part of) the ifAlias.\n\nAs the query uses the embedded regex feature, the searchstring has to begin end end with a slash.\n\nExample: /to Coreswitch-1/  or   /dcwest-srv299/\n",
      "fontSize": "100%",
      "gridPos": {
        "h": 9,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 2,
      "links": [],
      "pageSize": 500,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 2,
        "desc": false
      },
      "styles": [
        {
          "$$hashKey": "object:667",
          "alias": "Time",
          "align": "auto",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "hidden"
        },
        {
          "$$hashKey": "object:668",
          "alias": "",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FF780A",
            "#FF780A"
          ],
          "decimals": 2,
          "mappingType": 1,
          "pattern": "AdminStatus",
          "thresholds": [
            "2"
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "$$hashKey": "object:706",
              "text": "UP",
              "value": "1"
            },
            {
              "$$hashKey": "object:707",
              "text": "Down",
              "value": "2"
            },
            {
              "$$hashKey": "object:708",
              "text": "Testing",
              "value": "3"
            }
          ]
        },
        {
          "$$hashKey": "object:669",
          "alias": "",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FF780A",
            "rgb(36, 36, 36)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "OperStatus",
          "thresholds": [
            "2",
            "3"
          ],
          "type": "string",
          "unit": "short",
          "valueMaps": [
            {
              "$$hashKey": "object:732",
              "text": "UP",
              "value": "1"
            },
            {
              "$$hashKey": "object:733",
              "text": "DOWN",
              "value": "2"
            },
            {
              "$$hashKey": "object:734",
              "text": "Testing",
              "value": "3"
            },
            {
              "$$hashKey": "object:735",
              "text": "Unkknown",
              "value": "4"
            },
            {
              "$$hashKey": "object:736",
              "text": "Dormant",
              "value": "5"
            },
            {
              "$$hashKey": "object:737",
              "text": "notPresent",
              "value": "6"
            },
            {
              "$$hashKey": "object:738",
              "text": "LowerLayerDown",
              "value": "7"
            }
          ]
        },
        {
          "$$hashKey": "object:670",
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "#FA6400",
            "#1F60C4",
            "#8F3BB8"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "Speed",
          "thresholds": [
            ""
          ],
          "type": "number",
          "unit": "Mbits"
        },
        {
          "$$hashKey": "object:753",
          "alias": "Hostname",
          "align": "auto",
          "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": "source",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "ifName"
              ],
              "type": "tag"
            },
            {
              "params": [
                "ifAlias"
              ],
              "type": "tag"
            },
            {
              "params": [
                "agent_host"
              ],
              "type": "tag"
            },
            {
              "params": [
                "ifOperStatusCause"
              ],
              "type": "tag"
            },
            {
              "params": [
                "source"
              ],
              "type": "tag"
            }
          ],
          "measurement": "IF",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "ifAdminStatus"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "AdminStatus"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifOperStatus"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "OperStatus"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifHighSpeed"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "Speed"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifInErrors"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "E_IN"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifOutErrors"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "E_Out"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifInDiscards"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "D_In"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifOutDiscards"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "D_Out"
                ],
                "type": "alias"
              }
            ],
            [
              {
                "params": [
                  "ifInUnknownProtos"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  "UProto"
                ],
                "type": "alias"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Interfaces Status + Error Counters (absolut)",
      "transform": "table",
      "type": "table"
    },
    {
      "collapsed": true,
      "datasource": "${DS_INFLUXDB}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 9
      },
      "id": 8,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "fill": 0,
          "fillGradient": 0,
          "gridPos": {
            "h": 4,
            "w": 24,
            "x": 0,
            "y": 10
          },
          "hiddenSeries": false,
          "id": 4,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 1,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "agent_host"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "ifName"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "ifAlias"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "IF",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "ifOperStatus"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Interface OperStatus Metric",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:8662",
              "decimals": 0,
              "format": "none",
              "label": "1 = UP, 2 = DOWN",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:8663",
              "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": "${DS_INFLUXDB}",
          "fill": 2,
          "fillGradient": 2,
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 14
          },
          "hiddenSeries": false,
          "id": 5,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 1,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:24044",
              "alias": "/IF.IN/",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "ifName"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "source"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "ifAlias"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "IF",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "ifHCInOctets"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1s"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "*8"
                    ],
                    "type": "math"
                  },
                  {
                    "params": [
                      "IN"
                    ],
                    "type": "alias"
                  }
                ],
                [
                  {
                    "params": [
                      "ifHCOutOctets"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1s"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "*8"
                    ],
                    "type": "math"
                  },
                  {
                    "params": [
                      "Out"
                    ],
                    "type": "alias"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Interface Traffic",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:23943",
              "decimals": 0,
              "format": "decbits",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:23944",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_INFLUXDB}",
          "fill": 2,
          "fillGradient": 2,
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 21
          },
          "hiddenSeries": false,
          "id": 6,
          "legend": {
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "show": false,
            "total": false,
            "values": false
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 1,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [
            {
              "$$hashKey": "object:24044",
              "alias": "/IN_/",
              "transform": "negative-Y"
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "ifName"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "source"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "ifAlias"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "IF",
              "orderByTime": "ASC",
              "policy": "default",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "ifInErrors"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1m"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "IN_ERR"
                    ],
                    "type": "alias"
                  }
                ],
                [
                  {
                    "params": [
                      "ifOutErrors"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1m"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "Out_ERR"
                    ],
                    "type": "alias"
                  }
                ],
                [
                  {
                    "params": [
                      "ifInDiscards"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1m"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "IN_DIS"
                    ],
                    "type": "alias"
                  }
                ],
                [
                  {
                    "params": [
                      "ifOutDiscards"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1m"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "Out_DIS"
                    ],
                    "type": "alias"
                  }
                ],
                [
                  {
                    "params": [
                      "ifInUnknownProtos"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  },
                  {
                    "params": [
                      "1m"
                    ],
                    "type": "derivative"
                  },
                  {
                    "params": [
                      "UnProto"
                    ],
                    "type": "alias"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "Interface Error",
          "tooltip": {
            "shared": true,
            "sort": 2,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:23943",
              "decimals": 0,
              "format": "pps",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:23944",
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Interface Metric (unfold with caution / max 10 Interfaces)",
      "type": "row"
    }
  ],
  "schemaVersion": 22,
  "style": "dark",
  "tags": [
    "menu"
  ],
  "templating": {
    "list": [
      {
        "datasource": "InfluxDB",
        "filters": [
          {
            "condition": "",
            "key": "ifAlias",
            "operator": "=~",
            "value": "/Searchstring/"
          }
        ],
        "hide": 0,
        "label": "Query",
        "name": "Query",
        "skipUrlSync": false,
        "type": "adhoc"
      }
    ]
  },
  "time": {
    "from": "now-6h",
    "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": "Cisco NXOS/ACI IfAlias",
  "uid": "pArdI1mZk",
  "variables": {
    "list": []
  },
  "version": 18,
  "description": "No.1 Troubleshooting Dashboard - Filter Interface Statistics based on IfAlias/Description"
}