From 1ce9aeef46855de12e360e2fe1527b85f0422c1e Mon Sep 17 00:00:00 2001 From: mohamedasifs123 Date: Tue, 3 Sep 2024 21:55:06 +0530 Subject: [PATCH] feat: adding arista dashboard Signed-off-by: mohamedasifs123 --- grafana/grafana-dashboard-switches.json | 1080 +++++++++++++---------- 1 file changed, 592 insertions(+), 488 deletions(-) diff --git a/grafana/grafana-dashboard-switches.json b/grafana/grafana-dashboard-switches.json index ef72058..d80e11a 100644 --- a/grafana/grafana-dashboard-switches.json +++ b/grafana/grafana-dashboard-switches.json @@ -4,56 +4,33 @@ { "builtIn": 1, "datasource": { - "type": "datasource", - "uid": "grafana" + "type": "grafana", + "uid": "-- 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": "Switches : Interface Rate (Prometheus)", "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 2, + "id": 9, "links": [], "liveNow": false, "panels": [ { - "collapsed": false, - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, - "id": 7, - "panels": [], - "repeat": "netif", - "targets": [ - { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "refId": "A" - } - ], - "title": "$netif", + "id": 9, + "title": "Row title", "type": "row" }, { @@ -66,84 +43,112 @@ "color": { "mode": "palette-classic" }, - "mappings": [ - { - "options": { - "down": { - "text": "DOWN" - }, - "up": { - "text": "UP" - } - }, - "type": "value" + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" } - ], + }, + "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null + }, + { + "color": "red", + "value": 80 } ] - } + }, + "unit": "binBps" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 2, + "h": 8, + "w": 12, "x": 0, "y": 1 }, - "id": 9, + "id": 5, "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "/^operstate$/", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "value", - "wideLayout": true + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.2.3", "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "expr": "interfaces_ifindex{source=~\"[[switch]]\",name=~\"[[netif]]\"}", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" - } - ], - "title": "Link Status", - "transformations": [ + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_in_octets{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (IN)", + "range": true, + "refId": "A", + "useBackend": false + }, { - "id": "organize", - "options": { - "excludeByName": { - "Time": true - }, - "indexByName": {}, - "renameByName": {} - } + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_out_octets{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (OUT)", + "range": true, + "refId": "B", + "useBackend": false } ], - "transparent": true, - "type": "stat" + "title": "Bit Rate (Octets)", + "type": "timeseries" }, { "datasource": { @@ -155,6 +160,38 @@ "color": { "mode": "palette-classic" }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, "mappings": [], "thresholds": { "mode": "absolute", @@ -168,372 +205,491 @@ "value": 80 } ] - } + }, + "unit": "binBps" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 2, - "x": 2, + "h": 8, + "w": 12, + "x": 12, "y": 1 }, - "id": 10, + "id": 8, "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "auto", - "wideLayout": true + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.2.3", "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "expr": "interfaces_mtu{source=~\"[[switch]]\",name=~\"[[netif]]\"}", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", - "refId": "A" + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_in_unicast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (IN)", + "range": true, + "refId": "A", + "useBackend": false + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_out_unicast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (OUT)", + "range": true, + "refId": "B", + "useBackend": false } ], - "title": "Link MTU", - "transparent": true, - "type": "stat" + "title": "Unicast Packets", + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 7, - "w": 6, - "x": 4, - "y": 1 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] }, - "hiddenSeries": false, - "id": 5, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 9 }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", + "id": 6, "options": { - "alertThreshold": true + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "10.2.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeatDirection": "v", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "expr": "ifcounters_in_bits_per_second{host=~\"[[switch]]\",name=~\"[[netif]]\"}", - "interval": "", - "legendFormat": "IN (bps)", - "queryType": "randomWalk", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_in_multicast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (IN)", "range": true, - "refId": "A" + "refId": "A", + "useBackend": false }, { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "expr": "rate(ifcounters_out_bits_per_second{host=~\"[[switch]]\",name=~\"[[netif]]\"}[20s])", - "interval": "", - "legendFormat": "OUT (bps)", - "refId": "B" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "$netif : Bandwidth", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_out_multicast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (OUT)", + "range": true, + "refId": "B", + "useBackend": false } ], - "yaxis": { - "align": false - } + "title": "Multicast Packets", + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "fill": 1, - "fillGradient": 0, - "gridPos": { - "h": 6, - "w": 6, - "x": 10, - "y": 1 + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "binBps" + }, + "overrides": [] }, - "hiddenSeries": false, - "id": 2, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 9 }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", + "id": 7, "options": { - "alertThreshold": true + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "10.2.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeatDirection": "v", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "expr": "interfaces_counters_in_unicast_pkts{source=~\"[[switch]]\",name=~\"[[netif]]\"}", - "interval": "", - "legendFormat": "IN (pps)", - "queryType": "randomWalk", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_in_broadcast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (IN)", "range": true, - "refId": "A" + "refId": "A", + "useBackend": false }, { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, - "editorMode": "code", - "expr": "rate(interfaces_counters_out_unicast_pkts{source=~\"[[switch]]\",name=~\"[[netif]]\"}[20s])", - "interval": "", - "legendFormat": "OUT (pps)", + "disableTextWrap": false, + "editorMode": "builder", + "expr": "rate(interfaces_counters_out_broadcast_pkts{source=\"$source\", interface_name=\"$Ethernet\"}[1m])", + "fullMetaSearch": false, + "hide": false, + "includeNullMetadata": true, + "instant": false, + "legendFormat": "{{interface_name}} (OUT)", "range": true, - "refId": "B" + "refId": "B", + "useBackend": false } ], - "thresholds": [], - "timeRegions": [], - "title": "$netif : Packets", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "decimals": 0, - "format": "pps", - "logBase": 1, - "min": "0", - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "title": "Broadcast Pkts", + "type": "timeseries" }, { - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "fill": 1, - "fillGradient": 0, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" + }, + "overrides": [] + }, "gridPos": { - "h": 6, - "w": 6, - "x": 16, - "y": 1 + "h": 10, + "w": 22, + "x": 1, + "y": 17 }, - "hiddenSeries": false, "id": 4, - "legend": { - "avg": false, - "current": false, - "max": false, - "min": false, - "show": true, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "10.2.3", - "pointradius": 2, - "points": false, - "renderer": "flot", - "repeatDirection": "v", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "interfaces_counters_in_discards{source=~\"[[switch]]\",name=~\"[[netif]]\"}", - "interval": "", - "legendFormat": "IN (discards)", - "queryType": "randomWalk", + "expr": "CPU_util ", + "instant": false, + "legendFormat": "__auto", "range": true, "refId": "A" - }, - { - "datasource": { - "uid": "Prometheus" + } + ], + "title": "CPU util ", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" }, - "editorMode": "code", - "expr": "rate(interfaces_counters_out_discards{source=~\"[[switch]]\",name=~\"[[netif]]\"}[20s])", - "interval": "", - "legendFormat": "OUT (discards)", - "range": true, - "refId": "B" - }, - { - "datasource": { - "uid": "Prometheus" + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, - "editorMode": "code", - "expr": "rate(interfaces_counters_in_errors{source=~\"[[switch]]\",name=~\"[[netif]]\"}[20s])", - "interval": "", - "legendFormat": "IN (errors)", - "range": true, - "refId": "C" + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "bytes" }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 27 + }, + "id": 3, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "rate(interfaces_counters_out_errors{source=~\"[[switch]]\",name=~\"[[netif]]\"}[20s])", - "interval": "", - "legendFormat": "OUT (errors)", + "expr": "RAM_memFree", + "instant": false, + "legendFormat": "__auto", "range": true, - "refId": "D" - } - ], - "thresholds": [], - "timeRegions": [], - "title": "$netif : Drops/Errors", - "tooltip": { - "shared": true, - "sort": 0, - "value_type": "individual" - }, - "transparent": true, - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "format": "short", - "logBase": 1, - "show": true - }, - { - "format": "short", - "logBase": 1, - "show": true + "refId": "A" } ], - "yaxis": { - "align": false - } + "title": "Mem Free", + "type": "timeseries" }, { "datasource": { @@ -543,16 +699,46 @@ "fieldConfig": { "defaults": { "color": { - "mode": "fixed" + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } }, "mappings": [], - "noValue": "NA", "thresholds": { "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -560,51 +746,45 @@ } ] }, - "unit": "Gbits" + "unit": "bytes" }, "overrides": [] }, "gridPos": { - "h": 3, - "w": 4, - "x": 0, - "y": 4 + "h": 8, + "w": 12, + "x": 12, + "y": 27 }, - "id": 11, + "id": 2, "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true }, - "textMode": "value", - "wideLayout": true + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "pluginVersion": "10.2.3", "targets": [ { "datasource": { - "uid": "Prometheus" + "type": "prometheus", + "uid": "PBFA97CFB590B2093" }, "editorMode": "code", - "expr": "((interfaces_ifindex{source=~\"[[switch]]\",name=~\"[[netif]]\"})*8)/1000000000", - "format": "table", - "instant": true, - "interval": "", - "legendFormat": "", - "queryType": "randomWalk", + "expr": "RAM_memAvailable", + "instant": false, + "legendFormat": "__auto", + "range": true, "refId": "A" } ], - "title": "Link Speed", - "transparent": true, - "type": "stat" + "title": "Mem Available", + "type": "timeseries" } ], "refresh": "", @@ -612,71 +792,6 @@ "tags": [], "templating": { "list": [ - { - "auto": true, - "auto_count": 30, - "auto_min": "10s", - "current": { - "selected": false, - "text": "1m", - "value": "1m" - }, - "hide": 0, - "label": "Sampling", - "name": "Sampling", - "options": [ - { - "selected": false, - "text": "auto", - "value": "$__auto_interval_Sampling" - }, - { - "selected": false, - "text": "10s", - "value": "10s" - }, - { - "selected": false, - "text": "30s", - "value": "30s" - }, - { - "selected": true, - "text": "1m", - "value": "1m" - }, - { - "selected": false, - "text": "2m", - "value": "2m" - }, - { - "selected": false, - "text": "5m", - "value": "5m" - }, - { - "selected": false, - "text": "10m", - "value": "10m" - }, - { - "selected": false, - "text": "30m", - "value": "30m" - }, - { - "selected": false, - "text": "1h", - "value": "1h" - } - ], - "query": "10s,30s,1m,2m,5m,10m,30m,1h", - "queryValue": "", - "refresh": 2, - "skipUrlSync": false, - "type": "interval" - }, { "current": { "selected": false, @@ -687,61 +802,50 @@ "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "definition": "label_values(interfaces_counters_in_unicast_pkts,source)", + "definition": "label_values(source)", "hide": 0, "includeAll": false, - "label": "switch", + "label": "source", "multi": false, - "name": "switch", + "name": "source", "options": [], "query": { "qryType": 1, - "query": "label_values(interfaces_counters_in_unicast_pkts,source)", + "query": "label_values(source)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "type": "query" }, { "current": { - "selected": true, - "text": [ - "Management1" - ], - "value": [ - "Management1" - ] + "selected": false, + "text": "Ethernet1", + "value": "Ethernet1" }, "datasource": { "type": "prometheus", "uid": "PBFA97CFB590B2093" }, - "definition": "label_values(interfaces_counters_in_unicast_pkts{source=\"$switch\"},name)", + "definition": "label_values(interface_name)", "hide": 0, - "includeAll": true, - "label": "Network Interface", - "multi": true, - "name": "netif", + "includeAll": false, + "multi": false, + "name": "Ethernet", "options": [], "query": { "qryType": 1, - "query": "label_values(interfaces_counters_in_unicast_pkts{source=\"$switch\"},name)", + "query": "label_values(interface_name)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "skipUrlSync": false, - "sort": 1, - "tagValuesQuery": "", - "tagsQuery": "", - "type": "query", - "useTags": false + "sort": 0, + "type": "query" } ] }, @@ -751,8 +855,8 @@ }, "timepicker": {}, "timezone": "", - "title": "Switches : Interface Rate (P)", - "uid": "467bc3PMz", - "version": 14, + "title": "ARISTA Switch Metrics", + "uid": "de09c77e-6492-499a-9695-8f8abcba6423", + "version": 16, "weekStart": "" -} +} \ No newline at end of file