Last active
May 23, 2025 01:06
-
-
Save skypesky/6e2f4060f798bcbdaa46223b03aea43d to your computer and use it in GitHub Desktop.
Cloud Resources grafana json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:2875", | |
"builtIn": 1, | |
"datasource": { | |
"type": "datasource", | |
"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": "【中文版本】2024.05.22更新,优化重要指标展示。使用Grafana10新样式重建,新增健康评分概念,并新增了整体资源消耗信息的一些图表。包含整体资源展示与资源明细图表:CPU 内存 磁盘 IO 网络等监控指标。https://github.com/starsliao/TenSunS", | |
"editable": true, | |
"fiscalYearStartMonth": 0, | |
"graphTooltip": 0, | |
"id": 11, | |
"links": [ | |
{ | |
"$$hashKey": "object:2300", | |
"icon": "bolt", | |
"tags": [], | |
"targetBlank": true, | |
"title": "Update", | |
"tooltip": "更多仪表板", | |
"type": "link", | |
"url": "https://grafana.com/orgs/starsliao/dashboards" | |
}, | |
{ | |
"$$hashKey": "object:2301", | |
"icon": "question", | |
"tags": [], | |
"targetBlank": true, | |
"title": "GitHub", | |
"tooltip": "GITHUB:TenSunS", | |
"type": "link", | |
"url": "https://github.com/starsliao/TenSunS" | |
}, | |
{ | |
"$$hashKey": "object:2302", | |
"asDropdown": true, | |
"icon": "external link", | |
"tags": [], | |
"targetBlank": true, | |
"title": "", | |
"type": "dashboards" | |
} | |
], | |
"panels": [ | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 0 | |
}, | |
"id": 187, | |
"panels": [], | |
"title": "🏡资源总览:当前JOB【$job】当前选中主机【$show_name】实例:$instance", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "分区使用率、磁盘读取、磁盘写入、下载带宽、上传带宽,如果有多个网卡或者多个分区,是采集的使用率最高的网卡或者分区的数值。\n\n连接数:CurrEstab - 当前状态为 ESTABLISHED 或 CLOSE-WAIT 的 TCP 连接数。\n\n健康值是一个新增的指标,根据CPU,内存,IO计算出来的一个值,低于90分说明系统的资源使用情况需要注意了,这是一个正在测试的指标,参数可能需要根据实际情况再优化。", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"custom": { | |
"align": "center", | |
"cellOptions": { | |
"type": "auto" | |
}, | |
"filterable": false, | |
"inspect": false | |
}, | |
"decimals": 1, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"index": 0, | |
"text": "-" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"max": 100, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "内存" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "decimals" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 66 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "启动(天)" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "none" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 69 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "磁盘读取*" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "binBps" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 10485760 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 20485760 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 93 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "磁盘写入*" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "binBps" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 10485760 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 20485760 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 95 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "下载带宽*" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "binbps" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 30485760 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 104857600 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 91 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "上传带宽*" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "binbps" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 30485760 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 104857600 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 85 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "负载" | |
}, | |
"properties": [ | |
{ | |
"id": "decimals", | |
"value": 2 | |
}, | |
{ | |
"id": "custom.width", | |
"value": 63 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "连接数" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 1000 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 1500 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 59 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "TCP_tw" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "rgba(50, 172, 45, 0.97)" | |
}, | |
{ | |
"color": "rgba(237, 129, 40, 0.89)", | |
"value": 5000 | |
}, | |
{ | |
"color": "rgba(245, 54, 54, 0.9)", | |
"value": 20000 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 69 | |
}, | |
{ | |
"id": "decimals" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "CPU" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 63 | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "IP" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 111 | |
}, | |
{ | |
"id": "custom.filterable", | |
"value": true | |
}, | |
{ | |
"id": "custom.align", | |
"value": "left" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "主机名" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.filterable", | |
"value": true | |
}, | |
{ | |
"id": "custom.width" | |
}, | |
{ | |
"id": "custom.align", | |
"value": "left" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "健康值" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 75 | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 80 | |
}, | |
{ | |
"color": "green", | |
"value": 90 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"mode": "thresholds" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "color-background" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*使用率.*/" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "gauge" | |
} | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-GrYlRd" | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 110 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Swap" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 80 | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用 Swap" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.minWidth", | |
"value": 100 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用内存" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 80 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "IOutil使用率*" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 110 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 12, | |
"w": 24, | |
"x": 0, | |
"y": 1 | |
}, | |
"id": 198, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"enablePagination": false, | |
"fields": [ | |
"Value #B", | |
"Value #C", | |
"Value #L", | |
"Value #H", | |
"Value #I", | |
"Value #M", | |
"Value #N", | |
"Value #J", | |
"Value #K" | |
], | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "已用 Swap" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "主机名", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(time() - node_boot_time_seconds{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})by(instance)/86400", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "运行时间", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总内存", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "count(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode='system'}) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总核数", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_load5{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}", | |
"format": "table", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "5分钟负载", | |
"refId": "L" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance)) * 100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "CPU使用率", | |
"refId": "F" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(1 - (node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} / (node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})))* 100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "内存使用率", | |
"refId": "G" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max((node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}) *100/(node_filesystem_avail_bytes {origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}+(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"}-node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"ext.?|xfs\"})))by(instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "__auto", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_read_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大读取", | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_written_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大写入", | |
"refId": "I" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_netstat_Tcp_CurrEstab{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "连接数", | |
"refId": "M" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_sockstat_TCP_tw{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "TIME_WAIT", | |
"refId": "N" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_network_receive_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])*8) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "下载带宽", | |
"refId": "J" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_network_transmit_bytes_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])*8) by (instance)", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "上传带宽", | |
"refId": "K" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "((1-(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance))^1.3)^(1/3)*0.5 + \r\n(1-(1 - avg(node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} / node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})by (instance))^6)^(1/3)*0.3 + \r\n(1 - max(irate(node_disk_io_time_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval]))by (instance)^1.1)^(1/2)*0.2)*100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "__auto", | |
"refId": "O" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "max(irate(node_disk_io_time_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[$interval])) by (instance) *100", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "IOutil使用率", | |
"refId": "P" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "Swap", | |
"range": false, | |
"refId": "Q" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_SwapFree_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "已用 Swap", | |
"range": false, | |
"refId": "R" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} ", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"legendFormat": "已用内存", | |
"range": false, | |
"refId": "S" | |
} | |
], | |
"title": "服务器资源总览表【主机总数:$total】", | |
"transformations": [ | |
{ | |
"id": "merge", | |
"options": { | |
"reducers": [] | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": { | |
"Swap": false, | |
"Value #E": false, | |
"exp": false, | |
"iid": false, | |
"instance": true | |
}, | |
"includeByName": {}, | |
"indexByName": { | |
"Time": 20, | |
"Value #A": 27, | |
"Value #B": 5, | |
"Value #C": 4, | |
"Value #D": 2, | |
"Value #E": 13, | |
"Value #F": 10, | |
"Value #G": 11, | |
"Value #H": 14, | |
"Value #I": 15, | |
"Value #J": 18, | |
"Value #K": 19, | |
"Value #L": 9, | |
"Value #M": 16, | |
"Value #N": 17, | |
"Value #O": 3, | |
"Value #P": 12, | |
"Value #Q": 7, | |
"Value #R": 8, | |
"Value #S": 6, | |
"__name__": 28, | |
"domainname": 21, | |
"hostname": 29, | |
"instance": 1, | |
"job": 22, | |
"machine": 23, | |
"nodename": 0, | |
"release": 24, | |
"sysname": 25, | |
"version": 26 | |
}, | |
"renameByName": { | |
"Swap": "", | |
"Value #B": "内存", | |
"Value #C": "CPU", | |
"Value #D": "启动(天)", | |
"Value #E": "分区使用率*", | |
"Value #F": "CPU使用率", | |
"Value #G": "内存使用率", | |
"Value #H": "磁盘读取*", | |
"Value #I": "磁盘写入*", | |
"Value #J": "下载带宽*", | |
"Value #K": "上传带宽*", | |
"Value #L": "负载", | |
"Value #M": "连接数", | |
"Value #N": "TCP_tw", | |
"Value #O": "健康值", | |
"Value #P": "IOutil使用率*", | |
"Value #Q": "Swap", | |
"Value #R": "已用 Swap", | |
"Value #S": "已用内存", | |
"exp": "到期日", | |
"hostname": "", | |
"iid": "实例ID", | |
"instance": "IP", | |
"name": "", | |
"nodename": "主机名" | |
} | |
} | |
}, | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"主机名", | |
"启动(天)", | |
"健康值", | |
"CPU", | |
"内存", | |
"Swap", | |
"已用 Swap", | |
"负载", | |
"CPU使用率", | |
"内存使用率", | |
"IOutil使用率*", | |
"分区使用率*", | |
"磁盘读取*", | |
"磁盘写入*", | |
"连接数", | |
"TCP_tw", | |
"下载带宽*", | |
"上传带宽*", | |
"已用内存" | |
] | |
} | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "- P99:数据集按升序排列,第99分位置大的数据。(即升序排列后排在99%位置的数据)\n- 该表格需要在Prometheus增加记录规则(参考看板下载页)\n- 增加记录规则1小时后才会有展示的数据。\n- 时间范围[7d:1h]表示要查看过去 7 天内每小时的数据点。", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"align": "center", | |
"cellOptions": { | |
"type": "color-text" | |
}, | |
"inspect": false | |
}, | |
"mappings": [], | |
"max": 100, | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
} | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*%/" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "decimals", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.width", | |
"value": 72 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-GrYlRd" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-background" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "IP" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 91 | |
}, | |
{ | |
"id": "mappings", | |
"value": [ | |
{ | |
"options": { | |
"pattern": "/(.+):.+/", | |
"result": { | |
"index": 0, | |
"text": "$1" | |
} | |
}, | |
"type": "regex" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "P99内存使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 79 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "P99CPU使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 101 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "名称" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 128 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "主机名" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 138 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 0, | |
"y": 13 | |
}, | |
"id": 200, | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "P99内存%" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - 0", | |
"format": "table", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "主机名", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "quantile_over_time(0.99, cpu:usage:rate1m{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[7d:1h])", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "CPU使用率P99", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "quantile_over_time(0.99, mem:usage:rate1m{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}[7d:1h])", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "内存使用率P99", | |
"refId": "C" | |
} | |
], | |
"title": "最近7天P99资源使用率", | |
"transformations": [ | |
{ | |
"id": "seriesToColumns", | |
"options": { | |
"byField": "instance" | |
} | |
}, | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"pattern": "/^Value #[^A]|^instance$|^nodename$/" | |
} | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": {}, | |
"includeByName": {}, | |
"indexByName": { | |
"Value #B": 2, | |
"Value #C": 3, | |
"instance": 1, | |
"nodename": 0 | |
}, | |
"renameByName": { | |
"Value #B": "P99CPU%", | |
"Value #C": "P99内存%", | |
"instance": "IP", | |
"name": "", | |
"name 1": "", | |
"nodename": "主机名" | |
} | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总5分钟负载", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "平均%" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "总平均使用率" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "核数" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.drawStyle", | |
"value": "points" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "5m负载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 6, | |
"y": 13 | |
}, | |
"id": 191, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_load5{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "5m负载", | |
"range": true, | |
"refId": "A", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "count(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode='system'})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "核数", | |
"refId": "B", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "avg(1 - avg(irate(node_cpu_seconds_total{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",mode=\"idle\"}[$interval])) by (instance)) * 100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "平均%", | |
"range": true, | |
"refId": "F", | |
"step": 240 | |
} | |
], | |
"title": "整体总负载与整体平均CPU使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总已用内存", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 1, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总内存" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.drawStyle", | |
"value": "points" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "平均%" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "decimals", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "总平均使用率" | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "auto" | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
}, | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": false, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总已用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 12, | |
"y": 13 | |
}, | |
"id": 195, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总已用", | |
"range": true, | |
"refId": "B", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总内存", | |
"refId": "A", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"} - node_memory_MemAvailable_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}) / sum(node_memory_MemTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}))*100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "平均%", | |
"range": true, | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "sum(node_memory_SwapTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}) - sum(node_memory_SwapFree_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总已用 Swap 内存", | |
"range": true, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "sum(node_memory_SwapTotal_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"})", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总 Swap 内存", | |
"range": true, | |
"refId": "C" | |
} | |
], | |
"title": "整体总内存与整体平均内存使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总磁盘使用量", | |
"axisPlacement": "auto", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "平均%" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "decimals", | |
"value": 2 | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "总平均使用率" | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总磁盘" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.drawStyle", | |
"value": "points" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "使用量" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 6, | |
"x": 18, | |
"y": 13 | |
}, | |
"id": 197, | |
"maxDataPoints": 100, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "使用量", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总磁盘", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))) *100/(sum(avg(node_filesystem_avail_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))+(sum(avg(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance)) - sum(avg(node_filesystem_free_bytes{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\",fstype=~\"xfs|ext.*\"})by(device,instance))))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "平均%", | |
"refId": "A" | |
} | |
], | |
"title": "整体总磁盘与整体平均磁盘使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"collapsed": false, | |
"gridPos": { | |
"h": 1, | |
"w": 24, | |
"x": 0, | |
"y": 20 | |
}, | |
"id": 189, | |
"panels": [], | |
"title": "🧮资源明细:【$show_name】【$instance】", | |
"type": "row" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "本看板中的:磁盘总量、使用量、可用量、使用率保持和df命令的Size、Used、Avail、Use% 列的值一致,并且Use%的值会四舍五入保留一位小数,会更加准确。\n\n注:df中Use%算法为:(size - free) * 100 / (avail + (size - free)),结果是整除则为该值,非整除则为该值+1,结果的单位是%。\n参考df命令源码:", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"custom": { | |
"align": "center", | |
"cellOptions": { | |
"type": "auto" | |
}, | |
"inspect": false | |
}, | |
"displayName": "", | |
"mappings": [], | |
"thresholds": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "分区" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 81 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "剩余空间" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "decimals" | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 10000000000 | |
}, | |
{ | |
"color": "green", | |
"value": 20000000000 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 72 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"mode": "gradient", | |
"type": "gauge" | |
} | |
}, | |
{ | |
"id": "custom.width", | |
"value": 115 | |
}, | |
{ | |
"id": "min", | |
"value": 0 | |
}, | |
{ | |
"id": "max", | |
"value": 100 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"mode": "continuous-GrYlRd" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总空间" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "custom.width", | |
"value": 75 | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.cellOptions", | |
"value": { | |
"type": "color-text" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "类型" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 51 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "设备名" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.width", | |
"value": 120 | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 0, | |
"y": 21 | |
}, | |
"id": 181, | |
"links": [ | |
{ | |
"targetBlank": true, | |
"title": "https://github.com/coreutils/coreutils/blob/master/src/df.c", | |
"url": "https://github.com/coreutils/coreutils/blob/master/src/df.c" | |
} | |
], | |
"options": { | |
"cellHeight": "sm", | |
"footer": { | |
"countRows": false, | |
"fields": "", | |
"reducer": [ | |
"sum" | |
], | |
"show": false | |
}, | |
"showHeader": true, | |
"sortBy": [ | |
{ | |
"desc": true, | |
"displayName": "使用率" | |
} | |
] | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总量", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-0", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "10s", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))", | |
"format": "table", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "", | |
"refId": "B" | |
} | |
], | |
"title": "【$show_name】:分区可用空间(EXT.*/XFS/NFS)", | |
"transformations": [ | |
{ | |
"id": "merge", | |
"options": { | |
"reducers": [] | |
} | |
}, | |
{ | |
"id": "filterFieldsByName", | |
"options": { | |
"include": { | |
"names": [ | |
"device", | |
"fstype", | |
"mountpoint", | |
"Value #C", | |
"Value #A", | |
"Value #B" | |
] | |
} | |
} | |
}, | |
{ | |
"id": "organize", | |
"options": { | |
"excludeByName": {}, | |
"indexByName": {}, | |
"renameByName": { | |
"Value #A": "剩余空间", | |
"Value #B": "使用率", | |
"Value #C": "总空间", | |
"device": "设备名", | |
"fstype": "类型", | |
"mountpoint": "分区" | |
} | |
} | |
} | |
], | |
"type": "table" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"decimals": 1, | |
"mappings": [ | |
{ | |
"options": { | |
"0": { | |
"text": "N/A" | |
} | |
}, | |
"type": "value" | |
} | |
], | |
"max": 100, | |
"min": 0.1, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "#EAB839", | |
"value": 70 | |
}, | |
{ | |
"color": "red", | |
"value": 90 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 4, | |
"x": 8, | |
"y": 21 | |
}, | |
"id": 177, | |
"options": { | |
"displayMode": "lcd", | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": false | |
}, | |
"maxVizHeight": 300, | |
"minVizHeight": 45, | |
"minVizWidth": 0, | |
"namePlacement": "auto", | |
"orientation": "horizontal", | |
"reduceOptions": { | |
"calcs": [ | |
"last" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showUnfilled": true, | |
"sizing": "auto", | |
"valueMode": "color" | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "100 - (avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"idle\"}[$interval])) * 100)", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总CPU使用率", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"iowait\"}[$interval])) * 100", | |
"hide": true, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "IOwait使用率", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$instance\"} / (node_memory_MemTotal_bytes{instance=~\"$instance\"})))* 100", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "内存使用率", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"})*100 /(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs\",mountpoint=\"$maxmount\"}))", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大分区使用率({{mountpoint}})", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "((node_memory_SwapTotal_bytes{instance=~\"$instance\"} - node_memory_SwapFree_bytes{instance=~\"$instance\"}) / node_memory_SwapTotal_bytes{instance=~\"$instance\"}) * 100", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "交换分区使用率", | |
"refId": "F" | |
} | |
], | |
"title": "", | |
"type": "bargauge" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "thresholds" | |
}, | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "运行时间" | |
}, | |
"properties": [ | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 3600 | |
}, | |
{ | |
"color": "green", | |
"value": 7200 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "unit", | |
"value": "s" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总内存" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "bytes" | |
}, | |
{ | |
"id": "decimals", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "CPU iowait" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "percentage", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "orange", | |
"value": 40 | |
}, | |
{ | |
"color": "red", | |
"value": 60 | |
} | |
] | |
} | |
}, | |
{ | |
"id": "decimals", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总文件描述符" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "short" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 50000 | |
}, | |
{ | |
"color": "green", | |
"value": 200000 | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "最大打开文件" | |
}, | |
"properties": [ | |
{ | |
"id": "unit", | |
"value": "none" | |
}, | |
{ | |
"id": "thresholds", | |
"value": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "red" | |
}, | |
{ | |
"color": "orange", | |
"value": 10000 | |
}, | |
{ | |
"color": "green", | |
"value": 50000 | |
} | |
] | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 4, | |
"x": 12, | |
"y": 21 | |
}, | |
"id": 206, | |
"interval": "15s", | |
"options": { | |
"colorMode": "background", | |
"graphMode": "none", | |
"justifyMode": "center", | |
"orientation": "auto", | |
"percentChangeColorMode": "standard", | |
"reduceOptions": { | |
"calcs": [ | |
"lastNotNull" | |
], | |
"fields": "", | |
"values": false | |
}, | |
"showPercentChange": false, | |
"text": { | |
"valueSize": 15 | |
}, | |
"textMode": "auto", | |
"wideLayout": true | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "avg(time() - node_boot_time_seconds{instance=~\"$instance\"})", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "运行时间", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "C", | |
"timeField": "@timestamp" | |
}, | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "count(node_cpu_seconds_total{instance=~\"$instance\", mode='system'})", | |
"instant": true, | |
"interval": "", | |
"legendFormat": "CPU 核数", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "A", | |
"timeField": "@timestamp" | |
}, | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "sum(node_memory_MemTotal_bytes{instance=~\"$instance\"})", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总内存", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "B", | |
"timeField": "@timestamp" | |
}, | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"iowait\"}[$interval])) * 100", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "CPU iowait", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "D", | |
"timeField": "@timestamp" | |
}, | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": false, | |
"expr": "node_filefd_maximum{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "总文件描述符", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "E", | |
"timeField": "@timestamp" | |
}, | |
{ | |
"alias": "", | |
"bucketAggs": [ | |
{ | |
"id": "2", | |
"settings": { | |
"interval": "auto" | |
}, | |
"type": "date_histogram" | |
} | |
], | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "process_max_fds{job=\"node_exporter\",instance=~\"$instance\"}", | |
"hide": false, | |
"instant": true, | |
"interval": "", | |
"legendFormat": "最大打开文件", | |
"metrics": [ | |
{ | |
"id": "1", | |
"type": "count" | |
} | |
], | |
"query": "", | |
"refId": "F", | |
"timeField": "@timestamp" | |
} | |
], | |
"title": "", | |
"type": "stat" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "bars", | |
"fillOpacity": 60, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "light-red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_in下载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_cni0_out上传" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_in下载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_out" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "cn-shenzhen.i-wz9cq1dcb6zwc39ehw59_eth0_out上传" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 6, | |
"w": 8, | |
"x": 16, | |
"y": 21 | |
}, | |
"id": 183, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "increase(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[1m])", | |
"interval": "1m", | |
"intervalFactor": 2, | |
"legendFormat": "{{device}}_in下载", | |
"metric": "", | |
"refId": "A", | |
"step": 600, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "increase(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[1m])", | |
"hide": false, | |
"interval": "1m", | |
"intervalFactor": 2, | |
"legendFormat": "{{device}}_out上传", | |
"refId": "B", | |
"step": 600 | |
} | |
], | |
"title": "每分钟流量$device", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "总使用率", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"decimals": 0, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*总使用率/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-red", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.fillOpacity", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "磁盘IO使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.axisPlacement", | |
"value": "right" | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "磁盘IO使用率" | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#0ad4ff", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "用户使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "系统使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 0, | |
"y": 27 | |
}, | |
"id": 207, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "(1 - avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"idle\"}[$interval])) by (instance))*100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总使用率", | |
"refId": "F", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"system\"}[$interval])) by (instance) *100", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "系统使用率", | |
"refId": "A", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"user\"}[$interval])) by (instance) *100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "用户使用率", | |
"refId": "B", | |
"step": 240 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "avg(irate(node_cpu_seconds_total{instance=~\"$instance\",mode=\"iowait\"}[$interval])) by (instance) *100", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "磁盘IO使用率", | |
"refId": "D", | |
"step": 240 | |
} | |
], | |
"title": "CPU使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "剩余内存", | |
"axisPlacement": "left", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "可用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#9ac48a", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总内存" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#00d1ff", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "内存使用率" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.axisPlacement", | |
"value": "right" | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 8, | |
"y": 27 | |
}, | |
"id": 156, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_memory_MemAvailable_bytes{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "可用", | |
"refId": "F", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "总内存", | |
"refId": "A", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_MemTotal_bytes{instance=~\"$instance\"} - node_memory_MemAvailable_bytes{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "已用", | |
"range": true, | |
"refId": "B", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(1 - (node_memory_MemAvailable_bytes{instance=~\"$instance\"} / (node_memory_MemTotal_bytes{instance=~\"$instance\"})))* 100", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "使用率", | |
"range": true, | |
"refId": "H" | |
} | |
], | |
"title": "内存信息", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "剩余内存", | |
"axisPlacement": "left", | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bytes" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "可用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#9ac48a", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 2 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总内存" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "使用率" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#00d1ff", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "内存使用率" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.axisPlacement", | |
"value": "right" | |
}, | |
{ | |
"id": "custom.axisSoftMin" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "已用" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 16, | |
"y": 27 | |
}, | |
"id": 208, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_SwapTotal_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "总 Swap 内存", | |
"range": true, | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"expr": "node_memory_SwapTotal_bytes{instance=~\"$instance\"} - node_memory_SwapFree_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "已用 Swap", | |
"range": true, | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": false, | |
"expr": "node_memory_SwapFree_bytes{instance=~\"$instance\"}", | |
"hide": false, | |
"instant": false, | |
"legendFormat": "可用 Swap 内存", | |
"range": true, | |
"refId": "A" | |
} | |
], | |
"title": "Swap 内存信息", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "continuous-GrYlRd" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "容量使用率", | |
"axisPlacement": "auto", | |
"axisSoftMax": 100, | |
"axisSoftMin": 0, | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "none", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percent" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/Inodes.*/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#00d1ff", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 0 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "Inodes使用率" | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 0, | |
"y": 36 | |
}, | |
"id": 174, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}) *100/(node_filesystem_avail_bytes {instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}+(node_filesystem_size_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}-node_filesystem_free_bytes{instance=~\"$instance\",fstype=~\"ext.*|xfs|nfs\",mountpoint !~\".*pod.*\"}))", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "容量%:{{mountpoint}}", | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(1 - node_filesystem_files_free{instance=~\"$instance\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"} / node_filesystem_files{instance=~\"$instance\",fstype=~\"ext.?|xfs|nfs\",mountpoint !~\".*pod.*\"}) * 100", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Inodes%:{{mountpoint}}", | |
"range": true, | |
"refId": "B" | |
} | |
], | |
"title": "磁盘使用率", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"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": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "normal" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "等待IO完成阻塞的进程" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "运行态的进程" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "green", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 8, | |
"y": 36 | |
}, | |
"id": 202, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"calculatedInterval": "2m", | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"datasourceErrors": {}, | |
"errors": {}, | |
"exemplar": true, | |
"expr": "node_procs_running{instance=~\"$instance\"}", | |
"format": "time_series", | |
"interval": "1m", | |
"intervalFactor": 1, | |
"legendFormat": "运行态的进程", | |
"metric": "", | |
"prometheusLink": "/api/datasources/proxy/1/graph#%5B%7B%22expr%22%3A%22node_procs_running%7Binstance%3D%5C%22%24host%5C%22%7D%22%2C%22range_input%22%3A%2243200s%22%2C%22end_input%22%3A%222015-9-18%2013%3A46%22%2C%22step_input%22%3A%22%22%2C%22stacked%22%3Atrue%2C%22tab%22%3A0%7D%5D", | |
"refId": "A", | |
"step": 5, | |
"target": "" | |
}, | |
{ | |
"calculatedInterval": "2m", | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"datasourceErrors": {}, | |
"errors": {}, | |
"exemplar": true, | |
"expr": "node_procs_blocked{instance=~\"$instance\"}", | |
"format": "time_series", | |
"interval": "1m", | |
"intervalFactor": 1, | |
"legendFormat": "等待IO完成阻塞的进程", | |
"metric": "", | |
"prometheusLink": "/api/datasources/proxy/1/graph#%5B%7B%22expr%22%3A%22node_procs_blocked%7Binstance%3D%5C%22%24host%5C%22%7D%22%2C%22range_input%22%3A%2243200s%22%2C%22end_input%22%3A%222015-9-18%2013%3A46%22%2C%22step_input%22%3A%22%22%2C%22stacked%22%3Atrue%2C%22tab%22%3A0%7D%5D", | |
"refId": "B", | |
"step": 5, | |
"target": "" | |
} | |
], | |
"title": "进程运行状态", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 0, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 2, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"min": 0, | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "short" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总使用FD" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "red", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "总使用FD占比" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "每秒上下文切换" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*占比/" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.lineWidth", | |
"value": 0 | |
}, | |
{ | |
"id": "unit", | |
"value": "percent" | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 3 | |
}, | |
{ | |
"id": "custom.axisSoftMax", | |
"value": 100 | |
}, | |
{ | |
"id": "custom.axisSoftMin", | |
"value": 0 | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "进程使用FD占比" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "dark-orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 16, | |
"y": 36 | |
}, | |
"id": 16, | |
"options": { | |
"legend": { | |
"calcs": [], | |
"displayMode": "list", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "irate(node_context_switches_total{instance=~\"$instance\"}[$interval])", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "每秒上下文切换", | |
"range": true, | |
"refId": "A" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "node_filefd_allocated{instance=~\"$instance\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总使用FD", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(node_filefd_allocated{instance=~\"$instance\"}/node_filefd_maximum{instance=~\"$instance\"}) *100", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "总使用FD占比", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"editorMode": "code", | |
"exemplar": true, | |
"expr": "(process_open_fds{instance=~\"$instance\"}/process_max_fds{instance=~\"$instance\"}) *100", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "进程使用FD占比", | |
"refId": "D" | |
} | |
], | |
"title": "文件描述符(FD)/每秒上下文切换", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "1分钟负载", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "15分钟负载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "purple", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "1分钟负载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "orange", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "5分钟负载" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*总核数/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C4162A", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.pointSize", | |
"value": 4 | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 0, | |
"y": 45 | |
}, | |
"id": 13, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "node_load1{instance=~\"$instance\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "1分钟负载", | |
"metric": "", | |
"refId": "A", | |
"step": 20, | |
"target": "" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": " sum(count(node_cpu_seconds_total{instance=~\"$instance\", mode='system'}) by (cpu,instance)) by(instance)", | |
"format": "time_series", | |
"instant": false, | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "CPU总核数", | |
"refId": "D", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_load5{instance=~\"$instance\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "5分钟负载", | |
"refId": "B", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_load15{instance=~\"$instance\"}", | |
"format": "time_series", | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "15分钟负载", | |
"refId": "C", | |
"step": 20 | |
} | |
], | |
"title": "系统平均负载", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "Read bytes 每个磁盘分区每秒读取的比特数\nWritten bytes 每个磁盘分区每秒写入的比特数", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "读取(-)/写入(+)", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "Bps" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "vda_write" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#6ED0E0", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*_读取$/" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.transform", | |
"value": "negative-Y" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 8, | |
"y": 45 | |
}, | |
"id": 168, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_read_bytes_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_读取", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_written_bytes_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_写入", | |
"refId": "B", | |
"step": 10 | |
} | |
], | |
"title": "每秒磁盘读写容量", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "每一秒钟的自然时间内,花费在I/O上的耗时。(wall-clock time)\n\nnode_disk_io_time_seconds_total:\n磁盘花费在输入/输出操作上的秒数。该值为累加值。(Milliseconds Spent Doing I/Os)\n\nirate(node_disk_io_time_seconds_total[1m]):\n计算每秒的速率:(last值-last前一个值)/时间戳差值,即:1秒钟内磁盘花费在I/O操作的时间占比。", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "percentunit" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "Idle - Waiting for something to happen" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#052B51", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "guest" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#9AC48A", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "idle" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#052B51", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "iowait" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#EAB839", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "irq" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#BF1B00", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "nice" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#C15C17", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "sdb_每秒I/O操作%" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#d683ce", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "softirq" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#E24D42", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "steal" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#FCE2DE", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "system" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#508642", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "user" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#5195CE", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "磁盘花费在I/O操作占比" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#ba43a9", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 8, | |
"w": 8, | |
"x": 16, | |
"y": 45 | |
}, | |
"id": 175, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "irate(node_disk_io_time_seconds_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_每秒I/O操作%", | |
"refId": "C" | |
} | |
], | |
"title": "每1秒内I/O操作耗时占比(I/O Util)", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "Read time seconds 每个磁盘分区读操作花费的秒数\n\nWrite time seconds 每个磁盘分区写操作花费的秒数\n\nIO time seconds 每个磁盘分区输入/输出操作花费的秒数\n\nIO time weighted seconds每个磁盘分区输入/输出操作花费的加权秒数", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "读取(-)/写入(+)", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"drawStyle": "line", | |
"fillOpacity": 10, | |
"gradientMode": "opacity", | |
"hideFrom": { | |
"legend": false, | |
"tooltip": false, | |
"viz": false | |
}, | |
"insertNulls": false, | |
"lineInterpolation": "linear", | |
"lineWidth": 1, | |
"pointSize": 5, | |
"scaleDistribution": { | |
"type": "linear" | |
}, | |
"showPoints": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "s" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "vda" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#6ED0E0", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/,*_读取$/" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.transform", | |
"value": "negative-Y" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 6, | |
"x": 0, | |
"y": 53 | |
}, | |
"id": 160, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_read_time_seconds_total{instance=~\"$instance\"}[$interval]) / irate(node_disk_reads_completed_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_读取", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_write_time_seconds_total{instance=~\"$instance\"}[$interval]) / irate(node_disk_writes_completed_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_写入", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_io_time_seconds_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_io_time_weighted_seconds_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_加权", | |
"refId": "D" | |
} | |
], | |
"title": "每次IO读写的耗时(参考:小于100ms)", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "Reads completed: 每个磁盘分区每秒读完成次数\n\nWrites completed: 每个磁盘分区每秒写完成次数\n\nIO now 每个磁盘分区每秒正在处理的输入/输出请求数", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "读取(-)/写入(+)I/O ops/sec", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "vda_write" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#6ED0E0", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*_读取$/" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.transform", | |
"value": "negative-Y" | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 10, | |
"x": 6, | |
"y": 53 | |
}, | |
"id": 161, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_reads_completed_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_读取", | |
"refId": "A", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_disk_writes_completed_total{instance=~\"$instance\"}[$interval])", | |
"format": "time_series", | |
"hide": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_写入", | |
"refId": "B", | |
"step": 10 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_disk_io_now{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": true, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}", | |
"refId": "C" | |
} | |
], | |
"title": "磁盘读写速率(IOPS)", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "text", | |
"axisLabel": "上传(-)/下载(+)", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "bps" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*_out上传$/" | |
}, | |
"properties": [ | |
{ | |
"id": "custom.transform", | |
"value": "negative-Y" | |
}, | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsZero", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byValue", | |
"options": { | |
"op": "gte", | |
"reducer": "allIsNull", | |
"value": 0 | |
} | |
}, | |
"properties": [ | |
{ | |
"id": "custom.hideFrom", | |
"value": { | |
"legend": true, | |
"tooltip": true, | |
"viz": false | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*_in下载$/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "yellow", | |
"mode": "fixed" | |
} | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 9, | |
"w": 8, | |
"x": 16, | |
"y": 53 | |
}, | |
"id": 157, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"mean", | |
"lastNotNull", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "bottom", | |
"showLegend": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "irate(node_network_receive_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$interval])*8", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_in下载", | |
"refId": "A", | |
"step": 4 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_network_transmit_bytes_total{instance=~\"$instance\",device=~\"$device\"}[$interval])*8", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "{{device}}_out上传", | |
"refId": "B", | |
"step": 4 | |
} | |
], | |
"title": "每秒网络带宽使用$device", | |
"type": "timeseries" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"description": "Sockets_used - 已使用的所有协议套接字总量\n\nCurrEstab - 当前状态为 ESTABLISHED 或 CLOSE-WAIT 的 TCP 连接数\n\nTCP_alloc - 已分配(已建立、已申请到sk_buff)的TCP套接字数量\n\nTCP_tw - 等待关闭的TCP连接数\n\nUDP_inuse - 正在使用的 UDP 套接字数量\n\nRetransSegs - TCP 重传报文数\n\nOutSegs - TCP 发送的报文数\n\nInSegs - TCP 接收的报文数", | |
"fieldConfig": { | |
"defaults": { | |
"color": { | |
"mode": "palette-classic" | |
}, | |
"custom": { | |
"axisBorderShow": false, | |
"axisCenteredZero": false, | |
"axisColorMode": "series", | |
"axisLabel": "CurrEstab", | |
"axisPlacement": "auto", | |
"barAlignment": 0, | |
"barWidthFactor": 0.6, | |
"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": "never", | |
"spanNulls": false, | |
"stacking": { | |
"group": "A", | |
"mode": "none" | |
}, | |
"thresholdsStyle": { | |
"mode": "off" | |
} | |
}, | |
"links": [], | |
"mappings": [], | |
"thresholds": { | |
"mode": "absolute", | |
"steps": [ | |
{ | |
"color": "green" | |
}, | |
{ | |
"color": "red", | |
"value": 80 | |
} | |
] | |
}, | |
"unit": "none" | |
}, | |
"overrides": [ | |
{ | |
"matcher": { | |
"id": "byName", | |
"options": "TCP_alloc" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "blue", | |
"mode": "fixed" | |
} | |
} | |
] | |
}, | |
{ | |
"matcher": { | |
"id": "byRegexp", | |
"options": "/.*Sockets_used/" | |
}, | |
"properties": [ | |
{ | |
"id": "color", | |
"value": { | |
"fixedColor": "#E02F44", | |
"mode": "fixed" | |
} | |
}, | |
{ | |
"id": "custom.lineWidth", | |
"value": 1 | |
}, | |
{ | |
"id": "custom.axisLabel", | |
"value": "已使用的所有协议套接字总量" | |
}, | |
{ | |
"id": "custom.showPoints", | |
"value": "always" | |
} | |
] | |
} | |
] | |
}, | |
"gridPos": { | |
"h": 7, | |
"w": 24, | |
"x": 0, | |
"y": 62 | |
}, | |
"id": 158, | |
"options": { | |
"legend": { | |
"calcs": [ | |
"last", | |
"max" | |
], | |
"displayMode": "table", | |
"placement": "right", | |
"showLegend": true, | |
"sortBy": "Max", | |
"sortDesc": true | |
}, | |
"tooltip": { | |
"hideZeros": false, | |
"maxHeight": 600, | |
"mode": "multi", | |
"sort": "desc" | |
} | |
}, | |
"pluginVersion": "11.6.0", | |
"targets": [ | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_netstat_Tcp_CurrEstab{instance=~\"$instance\"}", | |
"format": "time_series", | |
"hide": false, | |
"instant": false, | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "CurrEstab", | |
"refId": "A", | |
"step": 20 | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_TCP_tw{instance=~\"$instance\"}", | |
"format": "time_series", | |
"interval": "", | |
"intervalFactor": 1, | |
"legendFormat": "TCP_tw", | |
"refId": "D" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"exemplar": true, | |
"expr": "node_sockstat_sockets_used{instance=~\"$instance\"}", | |
"hide": false, | |
"interval": "2m", | |
"intervalFactor": 1, | |
"legendFormat": "Sockets_used", | |
"refId": "B" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_UDP_inuse{instance=~\"$instance\"}", | |
"interval": "", | |
"legendFormat": "UDP_inuse", | |
"refId": "C" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "node_sockstat_TCP_alloc{instance=~\"$instance\"}", | |
"interval": "", | |
"legendFormat": "TCP_alloc", | |
"refId": "E" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_PassiveOpens{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "{{instance}}_Tcp_PassiveOpens", | |
"refId": "G" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_ActiveOpens{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "{{instance}}_Tcp_ActiveOpens", | |
"refId": "F" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_InSegs{instance=~\"$instance\"}[$interval])", | |
"interval": "", | |
"legendFormat": "Tcp_InSegs", | |
"refId": "H" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_OutSegs{instance=~\"$instance\"}[$interval])", | |
"interval": "", | |
"legendFormat": "Tcp_OutSegs", | |
"refId": "I" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_Tcp_RetransSegs{instance=~\"$instance\"}[$interval])", | |
"hide": false, | |
"interval": "", | |
"legendFormat": "Tcp_RetransSegs", | |
"refId": "J" | |
}, | |
{ | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"expr": "irate(node_netstat_TcpExt_ListenDrops{instance=~\"$instance\"}[$interval])", | |
"hide": true, | |
"interval": "", | |
"legendFormat": "", | |
"refId": "K" | |
} | |
], | |
"title": "网络Socket连接信息", | |
"type": "timeseries" | |
} | |
], | |
"preload": false, | |
"refresh": "", | |
"schemaVersion": 41, | |
"tags": [ | |
"Prometheus", | |
"node_exporter", | |
"StarsL.cn", | |
"TenSunS" | |
], | |
"templating": { | |
"list": [ | |
{ | |
"current": { | |
"text": "", | |
"value": "" | |
}, | |
"definition": "label_values($origin_prometheus)", | |
"label": "数据源", | |
"name": "origin_prometheus", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values($origin_prometheus)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 1, | |
"regex": "", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "instances", | |
"value": "instances" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\"},job)", | |
"includeAll": false, | |
"label": "JOB", | |
"name": "job", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\"},job)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "pro-serverless-01", | |
"value": "pro-serverless-01" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\"},nodename)", | |
"includeAll": true, | |
"label": "名称", | |
"name": "name", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\"},nodename)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "bbqa6rfrda7dvdlutgv5ousktvdj27rdabbs3q2sxem.did.abtnet.io", | |
"value": "bbqa6rfrda7dvdlutgv5ousktvdj27rdabbs3q2sxem.did.abtnet.io" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$name\"},instance)", | |
"includeAll": false, | |
"label": "IP", | |
"name": "instance", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$name\"},instance)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"auto": false, | |
"auto_count": 100, | |
"auto_min": "1m", | |
"current": { | |
"text": "3m", | |
"value": "3m" | |
}, | |
"hide": 2, | |
"label": "间隔", | |
"name": "interval", | |
"options": [ | |
{ | |
"selected": true, | |
"text": "3m", | |
"value": "3m" | |
} | |
], | |
"query": "3m", | |
"refresh": 2, | |
"type": "interval" | |
}, | |
{ | |
"current": { | |
"text": "34", | |
"value": "34" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "query_result(count(node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}))", | |
"hide": 2, | |
"includeAll": false, | |
"label": "主机数", | |
"name": "total", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(count(node_uname_info{origin_prometheus=~\"$origin_prometheus\",job=~\"$job\"}))", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "/{} (.*) .*/", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "All", | |
"value": [ | |
"$__all" | |
] | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_network_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", instance=~\"$instance\", device!~\"'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'\"},device)", | |
"includeAll": true, | |
"label": "网卡", | |
"multi": true, | |
"name": "device", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_network_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", instance=~\"$instance\", device!~\"'tap.*|veth.*|br.*|docker.*|virbr.*|lo.*|cni.*'\"},device)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "/data", | |
"value": "/data" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "query_result(topk(1,sort_desc(max(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))", | |
"hide": 2, | |
"includeAll": false, | |
"label": "最大挂载目录", | |
"name": "maxmount", | |
"options": [], | |
"query": { | |
"qryType": 3, | |
"query": "query_result(topk(1,sort_desc(max(node_filesystem_size_bytes{origin_prometheus=~\"$origin_prometheus\",instance=~\"$instance\",fstype=~\"ext.?|xfs\",mountpoint!~\".*pods.*\"}) by (mountpoint))))", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "/.*\\\"(.*)\\\".*/", | |
"type": "query" | |
}, | |
{ | |
"current": { | |
"text": "pro-serverless-01", | |
"value": "pro-serverless-01" | |
}, | |
"datasource": { | |
"type": "prometheus", | |
"uid": "bejkhltenvfnka" | |
}, | |
"definition": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$name\", instance=~\"$instance\"},nodename)", | |
"hide": 2, | |
"includeAll": false, | |
"label": "展示使用的名称", | |
"name": "show_name", | |
"options": [], | |
"query": { | |
"qryType": 1, | |
"query": "label_values(node_uname_info{origin_prometheus=~\"$origin_prometheus\", job=~\"$job\", nodename=~\"$name\", instance=~\"$instance\"},nodename)", | |
"refId": "PrometheusVariableQueryEditor-VariableQuery" | |
}, | |
"refresh": 2, | |
"regex": "", | |
"sort": 5, | |
"type": "query" | |
} | |
] | |
}, | |
"time": { | |
"from": "now-30m", | |
"to": "now" | |
}, | |
"timepicker": { | |
"refresh_intervals": [ | |
"30s", | |
"1m", | |
"3m", | |
"5m", | |
"15m", | |
"30m" | |
] | |
}, | |
"timezone": "browser", | |
"title": "Cloud Resources", | |
"uid": "StarsL-JOB-node", | |
"version": 59 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment