categraf/inputs/switch_legacy/dashboard.json

524 lines
17 KiB
JSON

{
"name": "网络交换机",
"tags": "",
"ident": "",
"configs": {
"var": [
{
"name": "IP",
"definition": "label_values(switch_legacy_if_in,ip)",
"multi": false,
"type": "query"
},
{
"name": "Interface",
"type": "query",
"datasource": {
"cate": "prometheus"
},
"definition": "label_values(switch_legacy_if_in{ip=\"$IP\"},ifname)"
}
],
"panels": [
{
"type": "row",
"id": "1cb95ad2-81f1-4977-9924-4af57a542490",
"name": "总体概览",
"collapsed": true,
"layout": {
"h": 1,
"w": 24,
"x": 0,
"y": 0,
"i": "1cb95ad2-81f1-4977-9924-4af57a542490",
"isResizable": false
},
"panels": []
},
{
"type": "stat",
"id": "6c851c33-4ea4-4b76-be59-d4c19c5b2844",
"layout": {
"h": 4,
"w": 3,
"x": 0,
"y": 1,
"i": "6c851c33-4ea4-4b76-be59-d4c19c5b2844",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "count(switch_legacy_sysUpTime)"
}
],
"name": "交换机数目",
"custom": {
"textMode": "valueAndName",
"colorMode": "value",
"calc": "lastNotNull",
"valueField": "Value",
"colSpan": 1,
"textSize": {}
},
"options": {
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
}
},
{
"type": "barGauge",
"id": "23220dc3-ab9a-40f9-b1d3-135bb3bbb734",
"layout": {
"h": 4,
"w": 8,
"x": 3,
"y": 1,
"i": "23220dc3-ab9a-40f9-b1d3-135bb3bbb734",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_cpu_util",
"legend": "{{ip}}"
}
],
"name": "CPU使用率排名",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {}
}
},
{
"type": "barGauge",
"id": "5bf72a5b-8273-4a40-94f9-8d671b01f16e",
"layout": {
"h": 4,
"w": 13,
"x": 11,
"y": 1,
"i": "5bf72a5b-8273-4a40-94f9-8d671b01f16e",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "max(switch_legacy_if_in) by(ip)>300000000",
"legend": "{{ip}}"
}
],
"name": "网络in流量大于300MB",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {}
}
},
{
"type": "pie",
"id": "bb0b07f1-e193-46ed-bc6e-c40d42e4eb4a",
"layout": {
"h": 4,
"w": 3,
"x": 0,
"y": 5,
"i": "43fa2e2d-8c69-4cc0-bb6b-6f359395f5c9",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_ifstat_use_time_sec",
"legend": "{{ip}}"
}
],
"name": "采集耗时",
"custom": {
"calc": "lastNotNull",
"legengPosition": "hidden",
"donut": true,
"labelWithName": false
}
},
{
"type": "barGauge",
"id": "7f36ea1c-fd51-43bf-93ab-2787d630c530",
"layout": {
"h": 4,
"w": 8,
"x": 3,
"y": 5,
"i": "7f36ea1c-fd51-43bf-93ab-2787d630c530",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_mem_util",
"legend": "{{ip}}"
}
],
"name": "内存使用率排名",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {}
}
},
{
"type": "barGauge",
"id": "6f9ce40e-7927-43b3-a34f-16772bf88b7f",
"layout": {
"h": 4,
"w": 13,
"x": 11,
"y": 5,
"i": "3387f6ea-dcca-41a8-ae18-ef3d8a065d94",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "max(switch_legacy_if_out) by(ip)>300000000",
"legend": "{{ip}}"
}
],
"name": "网络out流量大于300MB",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {}
}
},
{
"type": "barGauge",
"id": "356fe265-4a02-411d-9b3f-1578146c49a1",
"layout": {
"h": 4,
"w": 11,
"x": 0,
"y": 9,
"i": "31b68228-1f52-4ef9-aaa3-f605f490516f",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_sysUpTime/100/(24*3600)",
"legend": "{{ip}}"
}
],
"name": "设备运行时长",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {
"util": "none"
}
}
},
{
"type": "barGauge",
"id": "eec57d38-9a9f-4530-a0b5-e524d867759d",
"layout": {
"h": 4,
"w": 13,
"x": 11,
"y": 9,
"i": "eec57d38-9a9f-4530-a0b5-e524d867759d",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_TempStatus",
"legend": "{{ip}}"
}
],
"name": "设备温度",
"custom": {
"calc": "lastNotNull",
"baseColor": "#FF656B",
"serieWidth": 20,
"sortOrder": "desc"
},
"options": {
"standardOptions": {}
}
},
{
"type": "row",
"id": "559f99bc-2519-406e-b2b6-8c2e0895bd53",
"name": "单机详情",
"collapsed": true,
"layout": {
"h": 1,
"w": 24,
"x": 0,
"y": 13,
"i": "559f99bc-2519-406e-b2b6-8c2e0895bd53",
"isResizable": false
},
"panels": []
},
{
"type": "timeseries",
"id": "69a26105-9170-4f00-a3c2-0fa866f9d5b8",
"layout": {
"h": 5,
"w": 12,
"x": 0,
"y": 14,
"i": "69a26105-9170-4f00-a3c2-0fa866f9d5b8",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_cpu_util{ip=\"$IP\"}",
"legend": "{{ip}}"
}
],
"name": "cpu使用率",
"options": {
"tooltip": {
"mode": "single"
},
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
},
"custom": {
"drawStyle": "lines",
"lineInterpolation": "smooth",
"spanNulls": false,
"lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
"stack": "off",
"scaleDistribution": {
"type": "linear"
}
}
},
{
"type": "timeseries",
"id": "cc38fed9-f224-4684-9541-6a57e543062d",
"layout": {
"h": 5,
"w": 12,
"x": 12,
"y": 14,
"i": "b90ba3f4-58ac-4fa1-ac69-f63388536126",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_if_in{ip=\"$IP\"}>0",
"legend": "{{ip}}-{{ifname}}"
}
],
"name": "网络in流量",
"options": {
"tooltip": {
"mode": "all",
"sort": "desc"
},
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
},
"custom": {
"drawStyle": "lines",
"lineInterpolation": "smooth",
"spanNulls": false,
"lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
"stack": "off",
"scaleDistribution": {
"type": "linear"
}
}
},
{
"type": "timeseries",
"id": "1b84f22c-2535-4e16-b884-86e95bed444f",
"layout": {
"h": 5,
"w": 12,
"x": 0,
"y": 19,
"i": "0158a0bb-6cb3-4a61-ab32-c4ff470eee8c",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_mem_util{ip=\"$IP\"}",
"legend": "{{ip}}"
}
],
"name": "内存使用率",
"options": {
"tooltip": {
"mode": "single"
},
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
},
"custom": {
"drawStyle": "lines",
"lineInterpolation": "smooth",
"spanNulls": false,
"lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
"stack": "off",
"scaleDistribution": {
"type": "linear"
}
}
},
{
"type": "timeseries",
"id": "2e08574d-0378-45c1-9384-a80559e1df99",
"layout": {
"h": 5,
"w": 12,
"x": 12,
"y": 19,
"i": "6d230fe8-9bd8-4c10-8fde-4e34ed3a62e3",
"isResizable": true
},
"version": "2.0.0",
"datasourceCate": "prometheus",
"targets": [
{
"refId": "A",
"expr": "switch_legacy_if_out{ip=\"$IP\"}>0",
"legend": "{{ip}}-{{ifname}}"
}
],
"name": "网络out流量",
"options": {
"tooltip": {
"mode": "all",
"sort": "desc"
},
"legend": {
"displayMode": "hidden"
},
"standardOptions": {},
"thresholds": {
"steps": [
{
"color": "#634CD9",
"value": null,
"type": "base"
}
]
}
},
"custom": {
"drawStyle": "lines",
"lineInterpolation": "smooth",
"spanNulls": false,
"lineWidth": 1,
"fillOpacity": 0.5,
"gradientMode": "none",
"stack": "off",
"scaleDistribution": {
"type": "linear"
}
}
}
],
"version": "2.0.0"
}
}