Files
grafana-dashboard/H3C Network Switch Monitoring-1768705590692.json
2026-01-18 03:08:12 +00:00

2638 lines
70 KiB
JSON

{
"annotations": {
"list": [
{
"$$hashKey": "object:3283",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"limit": 100,
"name": "Annotations & Alerts",
"showIn": 0,
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "Device Dashboard via SNMP",
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 0,
"links": [
{
"asDropdown": true,
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"SNMP"
],
"targetBlank": false,
"title": "More Dashboards",
"tooltip": "",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 947,
"panels": [],
"title": "Overviews",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"text": "N/A"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "transparent",
"value": 0
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 0,
"y": 1
},
"id": 308,
"maxDataPoints": 100,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [],
"fields": "/^sysName$/",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "value",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_sysName{snmp_target=\"$target\"}",
"format": "table",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"sysName"
],
"type": "tag"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"instant": true,
"legendFormat": "{{sysName}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => \r\n r[\"_field\"] == \"sysContact\" or\r\n r[\"_field\"] == \"sysLocation\" or\r\n r[\"_field\"] == \"sysDescr\")\r\n |> last()\r\n |> group(columns: [\"_measurement\"])",
"range": false,
"rawQuery": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"sysContact"
],
"type": "field"
},
{
"params": [],
"type": "last"
},
{
"params": [
"sysContact"
],
"type": "alias"
}
],
[
{
"params": [
"sysLocation"
],
"type": "field"
},
{
"params": [],
"type": "last"
},
{
"params": [
"sysLocation"
],
"type": "alias"
}
],
[
{
"params": [
"sysDescr"
],
"type": "field"
},
{
"params": [],
"type": "last"
},
{
"params": [
"sysDescr"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "sysName",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"decimals": 1,
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": 0
},
{
"color": "green",
"value": 1
}
]
},
"unit": "d"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 3,
"x": 3,
"y": 1
},
"id": 30,
"maxDataPoints": 100,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"last"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_sysUpTime{snmp_target=\"$target\"} / 8640000",
"format": "table",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"instant": true,
"legendFormat": "{{sysUpTime}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => \r\n r[\"_field\"] == \"uptime\")\r\n |> last()\r\n |> group(columns: [\"_measurement\"])",
"range": false,
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"uptime"
],
"type": "field"
},
{
"params": [],
"type": "last"
},
{
"params": [
" / 100"
],
"type": "math"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "Uptime",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 6,
"x": 6,
"y": 1
},
"id": 312,
"interval": "5m",
"options": {
"colorMode": "none",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [],
"fields": "/.*/",
"values": true
},
"showPercentChange": false,
"text": {},
"textMode": "name",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "snmp_sysLocation{snmp_target=\"$target\"}",
"format": "time_series",
"fullMetaSearch": false,
"groupBy": [
{
"params": [
"1h"
],
"type": "time"
}
],
"hide": false,
"includeNullMetadata": true,
"instant": true,
"interval": "",
"legendFormat": "{{sysLocation}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => \r\n r[\"_field\"] == \"sysContact\" or\r\n r[\"_field\"] == \"sysLocation\" or\r\n r[\"_field\"] == \"sysDescr\")\r\n |> last()\r\n |> keep(columns: [\"_value\"])",
"range": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"sysDescr"
],
"type": "field"
},
{
"params": [],
"type": "last"
},
{
"params": [
"Descr"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
],
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_sysContact{snmp_target=\"$target\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "1",
"legendFormat": "{{sysContact}}",
"range": false,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_sysDescr{snmp_target=\"$target\"}",
"format": "time_series",
"hide": false,
"instant": true,
"interval": "11",
"legendFormat": "{{sysDescr}}",
"range": false,
"refId": "C"
}
],
"title": "",
"transformations": [
{
"id": "reduce",
"options": {
"includeTimeField": false,
"mode": "reduceFields",
"reducers": [
"max"
]
}
}
],
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"mappings": []
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 1
},
"id": 1405,
"interval": "2m",
"options": {
"autoSizeColumns": true,
"autoSizePolygons": true,
"autoSizeRows": true,
"compositeConfig": {
"animationSpeed": "1500",
"composites": [],
"enabled": true
},
"compositeGlobalAliasingEnabled": false,
"ellipseCharacters": 18,
"ellipseEnabled": false,
"globalAutoScaleFonts": true,
"globalClickthrough": "",
"globalClickthroughCustomTarget": "",
"globalClickthroughCustomTargetEnabled": false,
"globalClickthroughNewTabEnabled": true,
"globalClickthroughSanitizedEnabled": true,
"globalCompositeValueFontSize": 14,
"globalDecimals": 0,
"globalDisplayMode": "all",
"globalDisplayTextTriggeredEmpty": "OK",
"globalFillColor": "dark-green",
"globalGradientsEnabled": true,
"globalLabelFontSize": 12,
"globalOperator": "sum",
"globalPolygonBorderColor": "light-orange",
"globalPolygonBorderSize": 2,
"globalPolygonSize": 25,
"globalRegexPattern": "",
"globalShape": "hexagon_pointed_top",
"globalShowTimestampEnabled": false,
"globalShowTimestampFontSize": 12,
"globalShowTimestampFormat": "YYYY-MM-DD HH:mm:ss",
"globalShowTimestampPosition": "below_value",
"globalShowTimestampYOffset": 0,
"globalShowTooltipColumnHeadersEnabled": true,
"globalShowValueEnabled": true,
"globalTextFontAutoColorEnabled": true,
"globalTextFontColor": "#000000",
"globalTextFontFamily": "Helvetica",
"globalThresholdsConfig": [
{
"color": "#299c46",
"state": 0,
"value": 0
},
{
"color": "#ed8128",
"state": 1,
"value": 800
},
{
"color": "#f53636",
"state": 2,
"value": 1500
}
],
"globalTooltipsEnabled": true,
"globalTooltipsFontFamily": "Roboto",
"globalTooltipsShowTimestampEnabled": true,
"globalTooltipsShowValueEnabled": true,
"globalUnitFormat": "short",
"globalValueFontSize": 14,
"layoutDisplayLimit": 300,
"layoutNumColumns": 8,
"layoutNumRows": 8,
"overrideConfig": {
"overrides": []
},
"sortByDirection": 1,
"sortByField": "name",
"tooltipDisplayMode": "all",
"tooltipDisplayTextTriggeredEmpty": "OK",
"tooltipPrimarySortByField": "thresholdLevel",
"tooltipPrimarySortDirection": 1,
"tooltipSecondarySortByField": "value",
"tooltipSecondarySortDirection": 1
},
"pluginVersion": "2.1.16",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(snmp_ifInErrors{snmp_target=\"$target\"}[$__interval]) + rate(snmp_ifOutErrors{snmp_target=\"$target\"}[$__interval])",
"format": "time_series",
"hide": false,
"instant": false,
"legendFormat": "{{ifName}}",
"range": true,
"refId": "A"
}
],
"title": "Interfaces CRC Err",
"type": "grafana-polystat-panel"
},
{
"datasource": {
"default": false,
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#1F60C4",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#1F60C4",
"value": 0
},
{
"color": "#1F60C4",
"value": 0
},
{
"color": "#1F60C4"
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 4
},
"id": 316,
"interval": "2m",
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "count(last_over_time(snmp_hh3cDevMPowerStatus{snmp_target=\"$target\"}[5m])==1)",
"groupBy": [],
"hide": false,
"instant": true,
"legendFormat": "{{hh3cDevMPowerNum}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwFRUPowerOperStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\"])\r\n",
"range": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"hwFRUPowerOperStatus"
],
"type": "field"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "Power Supply Total",
"type": "stat"
},
{
"datasource": {
"default": false,
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#1F60C4",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#1F60C4",
"value": 0
},
{
"color": "#1F60C4",
"value": 0
},
{
"color": "#1F60C4"
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 4
},
"id": 320,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "count(last_over_time(snmp_hh3cDevMFanStatus{snmp_target=\"$target\"}[5m])==1)",
"groupBy": [],
"hide": false,
"instant": true,
"legendFormat": "{{hh3cDevMFanNum}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwFanTrayOperStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\"])\r\n",
"range": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"hwFanTrayOperStatus"
],
"type": "field"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "FAN Total",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 1,
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "CPU"
},
"properties": [
{
"id": "displayName",
"value": "cpu"
}
]
},
{
"matcher": {
"id": "byFrameRefID",
"options": "Memory"
},
"properties": [
{
"id": "displayName",
"value": "memory"
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #CPU"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#73BF69",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Value #Memory"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "#5794F2",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 6,
"w": 4,
"x": 4,
"y": 4
},
"id": 310,
"interval": "3m",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.3.1",
"targets": [
{
"alias": "$col",
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by(entPhysicalClass) (snmp_hh3cEntityExtCpuUsage{snmp_target=\"$target\"})",
"format": "table",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"instant": false,
"legendFormat": "CPU",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwEntityCpuUsage\")\r\n |> filter(fn: (r) => r[\"_value\"] > 0 and r[\"_value\"] < 101)\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\", \"index\"])",
"range": true,
"rawQuery": false,
"refId": "CPU",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"hwEntityCpuUsage"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "hwEntityCpuUsage",
"operator": ">",
"value": "0"
},
{
"condition": "AND",
"key": "hwEntityCpuUsage",
"operator": "<",
"value": "101"
},
{
"condition": "AND",
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
},
{
"alias": "$col",
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "sum by(entPhysicalClass) (snmp_hh3cEntityExtMemUsage{snmp_target=\"$target\"})",
"format": "table",
"fullMetaSearch": false,
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Memory",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwEntityMemUsage\")\r\n |> filter(fn: (r) => r[\"_value\"] > 0 and r[\"_value\"] < 101)\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\", \"index\"])\r\n",
"range": true,
"refId": "Memory",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"hwEntityMemUsage"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"Memory"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "hwEntityMemUsage",
"operator": ">",
"value": "0"
},
{
"condition": "AND",
"key": "hwEntityMemUsage",
"operator": "<",
"value": "101"
},
{
"condition": "AND",
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
],
"useBackend": false
}
],
"title": "CPU / Memory",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineStyle": {
"fill": "solid"
},
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"decimals": 1,
"links": [],
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
"unit": "celsius"
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 4,
"x": 8,
"y": 4
},
"id": 1193,
"interval": "3m",
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "12.3.1",
"targets": [
{
"alias": "$col",
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by(entPhysicalDescr) (snmp_hh3cEntityExtTemperature{snmp_target=\"$target\", entPhysicalDescr=~\"Temperature Sensor.*\"})",
"format": "time_series",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"instant": false,
"legendFormat": "__auto",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwEntityCpuUsage\")\r\n |> filter(fn: (r) => r[\"_value\"] > 0 and r[\"_value\"] < 101)\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\", \"index\"])",
"range": true,
"rawQuery": false,
"refId": "CPU",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"hwEntityCpuUsage"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"CPU"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "hwEntityCpuUsage",
"operator": ">",
"value": "0"
},
{
"condition": "AND",
"key": "hwEntityCpuUsage",
"operator": "<",
"value": "101"
},
{
"condition": "AND",
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "Temperature",
"type": "timeseries"
},
{
"datasource": {
"default": false,
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#1F60C4",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#1F60C4",
"value": 0
},
{
"color": "dark-red",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 0,
"y": 7
},
"id": 1489,
"interval": "2m",
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "count(last_over_time(snmp_hh3cDevMPowerStatus{snmp_target=\"$target\"}[5m])!=1)",
"groupBy": [],
"hide": false,
"instant": true,
"legendFormat": "{{hh3cDevMPowerNum}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwFRUPowerOperStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\"])\r\n",
"range": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"hwFRUPowerOperStatus"
],
"type": "field"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
}
],
"title": "Power Supply Abnormal",
"type": "stat"
},
{
"datasource": {
"default": false,
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"mappings": [
{
"options": {
"match": "null",
"result": {
"color": "#1F60C4",
"text": "0"
}
},
"type": "special"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "#1F60C4",
"value": 0
},
{
"color": "dark-red",
"value": 1
}
]
},
"unit": "none"
},
"overrides": []
},
"gridPos": {
"h": 3,
"w": 2,
"x": 2,
"y": 7
},
"id": 1488,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "horizontal",
"percentChangeColorMode": "standard",
"reduceOptions": {
"calcs": [
"first"
],
"fields": "",
"values": false
},
"showPercentChange": false,
"text": {},
"textMode": "auto",
"wideLayout": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"disableTextWrap": false,
"editorMode": "code",
"exemplar": false,
"expr": "count(last_over_time(snmp_hh3cDevMFanStatus{snmp_target=\"$target\"}[5m])!=1)",
"format": "time_series",
"fullMetaSearch": false,
"groupBy": [],
"hide": false,
"includeNullMetadata": true,
"instant": true,
"legendFormat": "{{hh3cDevMFanNum}}",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"_field\"] == \"hwFanTrayOperStatus\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\r\n |> keep(columns: [\"_time\", \"_value\", \"agent_host\"])\r\n",
"range": false,
"refId": "A",
"resultFormat": "table",
"select": [
[
{
"params": [
"hwFanTrayOperStatus"
],
"type": "field"
}
]
],
"tags": [
{
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
],
"useBackend": false
}
],
"title": "FAN Abnormal",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"filterable": true,
"footer": {
"reducers": []
},
"inspect": false,
"wrapText": false
},
"fieldMinMax": false,
"mappings": [
{
"options": {
"1": {
"text": "UP"
},
"2": {
"text": "DOWN"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
"unit": "none"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "IfStatus"
},
"properties": [
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.cellOptions",
"value": {
"applyToRow": true,
"mode": "gradient",
"type": "color-background"
}
},
{
"id": "custom.align"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "dark-green",
"value": 0
},
{
"color": "#5b5b5b",
"value": 2
},
{
"color": "rgb(36, 36, 36)",
"value": 3
}
]
}
},
{
"id": "custom.width",
"value": 105
}
]
},
{
"matcher": {
"id": "byName",
"options": "IfSpeed"
},
"properties": [
{
"id": "unit",
"value": "Mbits"
},
{
"id": "custom.align",
"value": "auto"
},
{
"id": "thresholds",
"value": {
"mode": "absolute",
"steps": [
{
"color": "#FA6400",
"value": 0
},
{
"color": "#1F60C4"
}
]
}
},
{
"id": "custom.width",
"value": 150
}
]
},
{
"matcher": {
"id": "byName",
"options": "ifName"
},
"properties": [
{
"id": "custom.width",
"value": 220
}
]
},
{
"matcher": {
"id": "byName",
"options": "ifAlias"
},
"properties": [
{
"id": "custom.width"
}
]
},
{
"matcher": {
"id": "byName",
"options": "AdminStatus"
},
"properties": [
{
"id": "custom.width",
"value": 150
}
]
},
{
"matcher": {
"id": "byName",
"options": "IfStatus"
},
"properties": [
{
"id": "custom.width",
"value": 150
}
]
}
]
},
"gridPos": {
"h": 35,
"w": 10,
"x": 0,
"y": 10
},
"id": 62,
"interval": "1m",
"maxDataPoints": 100,
"options": {
"cellHeight": "sm",
"frameIndex": 165,
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "ifName"
}
]
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_ifAdminStatus{snmp_target=\"$target\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "{{ifName}}",
"range": false,
"refId": "A"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_ifOperStatus{snmp_target=\"$target\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "{{ifName}}",
"range": false,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"exemplar": false,
"expr": "snmp_ifHighSpeed{snmp_target=\"$target\"}",
"format": "table",
"hide": false,
"instant": true,
"legendFormat": "{{ifName}}",
"range": false,
"refId": "C"
}
],
"title": "Interfaces",
"transformations": [
{
"id": "joinByField",
"options": {
"byField": "ifName",
"mode": "outer"
}
},
{
"id": "organize",
"options": {
"excludeByName": {
"Time 1": true,
"Time 2": true,
"Time 3": true,
"Value #C": false,
"__name__ 1": true,
"__name__ 2": true,
"__name__ 3": true,
"ifAlias 1": false,
"ifAlias 2": true,
"ifAlias 3": true,
"ifDescr 1": true,
"ifDescr 2": true,
"ifDescr 3": true,
"ifIndex 1": true,
"ifIndex 2": true,
"ifIndex 3": true,
"instance 1": true,
"instance 2": true,
"instance 3": true,
"job 1": true,
"job 2": true,
"job 3": true,
"receive 1": true,
"receive 2": true,
"receive 3": true,
"snmp_target 1": true,
"snmp_target 2": true,
"snmp_target 3": true,
"tenant_id 1": true,
"tenant_id 2": true,
"tenant_id 3": true
},
"includeByName": {},
"indexByName": {},
"renameByName": {
"Value #A": "AdminStatus",
"Value #B": "IfStatus",
"Value #C": "IfSpeed",
"ifAlias 1": "IfAlias",
"ifDescr 2": "",
"job 1": ""
}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "loki",
"uid": "${_log_source}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "bars",
"fillOpacity": 100,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"count"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": true,
"viz": true
}
}
]
}
]
},
"gridPos": {
"h": 5,
"w": 14,
"x": 10,
"y": 10
},
"id": 779,
"interval": "10m",
"options": {
"legend": {
"calcs": [
"sum"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${_log_source}"
},
"direction": "backward",
"editorMode": "code",
"expr": "(count_over_time({service_name=\"syslog\"} | net_peer_ip=\"$instance\" [$__interval]))",
"hide": false,
"instant": false,
"legendFormat": "count",
"queryType": "range",
"range": true,
"refId": "error"
}
],
"title": "Swtich Events",
"type": "timeseries"
},
{
"datasource": {
"type": "loki",
"uid": "${_log_source}"
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 30,
"w": 14,
"x": 10,
"y": 15
},
"id": 60,
"options": {
"dedupStrategy": "numbers",
"enableInfiniteScrolling": false,
"enableLogDetails": true,
"prettifyLogMessage": false,
"showCommonLabels": false,
"showControls": false,
"showLabels": false,
"showTime": false,
"sortOrder": "Descending",
"wrapLogMessage": true
},
"pluginVersion": "12.3.1",
"targets": [
{
"datasource": {
"type": "loki",
"uid": "${_log_source}"
},
"direction": "backward",
"editorMode": "code",
"expr": "{service_name=\"syslog\"} | net_peer_ip=\"$instance\" | pattern \"<<pri>><host> %%<levelmodule>/<slot>/<event>(<flag>): -DevIP=<devip>; <iface> link status is <status>.\"",
"instant": false,
"queryType": "range",
"range": true,
"refId": "A"
},
{
"datasource": {
"type": "loki",
"uid": "${_log_source}"
},
"direction": "backward",
"editorMode": "code",
"expr": "{service_name=\"syslog\"} | net_peer_ip=\"$instance\" | pattern \"<<pri>><host> %%<levelmodule>/<slot>/<event>(<flag>): -DevIP=<devip>; <iface> link status is <status>.\"",
"hide": true,
"queryType": "range",
"refId": "B"
}
],
"title": "Syslog Messages",
"type": "logs"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 45
},
"id": 4,
"panels": [],
"title": "Interface Statistics",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMax": 100000000,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 30,
"gradientMode": "hue",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"showValues": false,
"spanNulls": true,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": 0
},
{
"color": "red",
"value": 80
}
]
},
"unit": "bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "ifHCOutOctets"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
},
{
"matcher": {
"id": "byName",
"options": "ifOutDiscards"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
},
{
"matcher": {
"id": "byName",
"options": "ifOutErrors"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 46
},
"id": 2,
"interval": "2m",
"maxPerRow": 4,
"options": {
"legend": {
"calcs": [
"mean"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "multi",
"sort": "none"
}
},
"pluginVersion": "12.3.1",
"repeat": "ifName",
"repeatDirection": "h",
"targets": [
{
"alias": "$col",
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifHCInOctets{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])*8",
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"legendFormat": "ifHCInOctets",
"measurement": "metric.snmp_network",
"orderByTime": "ASC",
"policy": "default",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] =~ /^${agent:regex}$/)\r\n |> filter(fn: (r) => r[\"ifName\"] =~ /^${ifName:regex}$/)\r\n |> filter(fn: (r) => \r\n r[\"_field\"] == \"ifHCInOctets\" or\r\n r[\"_field\"] == \"ifHCOutOctets\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: true)\r\n |> derivative(unit: 1s, nonNegative: true)\r\n |> map(fn: (r) => ({ r with _value: float(v: r._value) * 8.0 }))\r\n |> keep(columns: [\"_time\", \"_value\", \"_field\"])\r\n",
"range": true,
"rawQuery": false,
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"ifHCInOctets"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "non_negative_derivative"
},
{
"params": [
"*8"
],
"type": "math"
},
{
"params": [
"Bits_IN"
],
"type": "alias"
}
],
[
{
"params": [
"ifHCOutOctets"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "non_negative_derivative"
},
{
"params": [
"*8"
],
"type": "math"
},
{
"params": [
"Bits_Out"
],
"type": "alias"
}
],
[
{
"params": [
"ifInDiscards"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "derivative"
},
{
"params": [
"Discards_IN"
],
"type": "alias"
}
],
[
{
"params": [
"ifOutDiscards"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "derivative"
},
{
"params": [
"Discards_Out"
],
"type": "alias"
}
],
[
{
"params": [
"ifInErrors"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "derivative"
},
{
"params": [
"Errors_IN"
],
"type": "alias"
}
],
[
{
"params": [
"ifOutErrors"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"1s"
],
"type": "derivative"
},
{
"params": [
"Errors_OUT"
],
"type": "alias"
}
],
[
{
"params": [
"ifInUnknownProtos"
],
"type": "field"
},
{
"params": [],
"type": "mean"
},
{
"params": [
"10s"
],
"type": "derivative"
},
{
"params": [
"UnknownProto_IN"
],
"type": "alias"
}
]
],
"tags": [
{
"key": "ifName",
"operator": "=~",
"value": "/^$ifName$/"
},
{
"condition": "AND",
"key": "agent_host",
"operator": "=~",
"value": "/^$agent$/"
}
]
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifHCOutOctets{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])*8",
"hide": false,
"legendFormat": "ifHCOutOctets",
"query": "from(bucket: \"telegraf\")\r\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\r\n |> filter(fn: (r) => r[\"_measurement\"] == \"metric.snmp_network\")\r\n |> filter(fn: (r) => r[\"agent_host\"] == \"$agent\")\r\n |> filter(fn: (r) => r[\"ifName\"] == \"$ifName\")\r\n |> filter(fn: (r) => \r\n r[\"_field\"] == \"ifInDiscards\" or\r\n r[\"_field\"] == \"ifOutDiscards\" or\r\n r[\"_field\"] == \"ifInErrors\" or\r\n r[\"_field\"] == \"ifOutErrors\" or\r\n r[\"_field\"] == \"ifInUnknownProtos\" or\r\n r[\"_field\"] == \"ifOutErrors\")\r\n |> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: true)\r\n |> derivative(unit: 1s, nonNegative: true)\r\n |> keep(columns: [\"_time\", \"_value\", \"_field\"])\r\n",
"range": true,
"refId": "B"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifInDiscards{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])",
"hide": false,
"instant": false,
"legendFormat": "ifInDiscards",
"range": true,
"refId": "C"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifOutDiscards{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])",
"hide": false,
"instant": false,
"legendFormat": "ifOutDiscards",
"range": true,
"refId": "D"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifInErrors{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])",
"hide": false,
"instant": false,
"legendFormat": "ifInErrors",
"range": true,
"refId": "E"
},
{
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"editorMode": "code",
"expr": "irate(snmp_ifOutErrors{snmp_target=\"$target\",ifName=~\"$ifName\"}[3m])",
"hide": false,
"instant": false,
"legendFormat": "ifOutErrors",
"range": true,
"refId": "F"
}
],
"title": "Interface $ifName",
"type": "timeseries"
}
],
"preload": false,
"refresh": "5m",
"schemaVersion": 42,
"tags": [
"Network",
"Switch",
"Cisco",
"SNMP",
"H3C",
"HUAWEI"
],
"templating": {
"list": [
{
"current": {
"text": "Prometheus",
"value": "prometheus"
},
"includeAll": false,
"label": "Data Source",
"name": "_metric_source",
"options": [],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"current": {
"text": "Loki",
"value": "loki"
},
"hide": 2,
"includeAll": false,
"label": "Log Source",
"name": "_log_source",
"options": [],
"query": "loki",
"refresh": 1,
"regex": "Loki",
"type": "datasource"
},
{
"allowCustomValue": false,
"current": {
"text": "HTL_Access_SWA",
"value": "HTL_Access_SWA"
},
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"definition": "label_values(snmp_scrape_duration_seconds{job=\"integrations/snmp/h3c_switch\"},snmp_target)",
"includeAll": false,
"label": "target",
"name": "target",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_scrape_duration_seconds{job=\"integrations/snmp/h3c_switch\"},snmp_target)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allowCustomValue": false,
"current": {
"text": "100.127.4.19",
"value": "100.127.4.19"
},
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"definition": "label_values(snmp_scrape_duration_seconds{snmp_target=\"$target\"},instance)",
"includeAll": false,
"label": "instance",
"name": "instance",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_scrape_duration_seconds{snmp_target=\"$target\"},instance)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allowCustomValue": false,
"current": {
"text": "All",
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "${_metric_source}"
},
"definition": "label_values(snmp_ifIndex{snmp_target=\"$target\"},ifName)",
"includeAll": true,
"label": "Interface",
"multi": true,
"name": "ifName",
"options": [],
"query": {
"qryType": 1,
"query": "label_values(snmp_ifIndex{snmp_target=\"$target\"},ifName)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 1,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-3h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "H3C Network Switch Monitoring",
"uid": "PeDEJO6Mk",
"version": 182
}