diff --git a/README.md b/README.md
index c38b05e9ecc8746d641ad919be2592da8cbbf72c..442afac5b984ab83557a94207b3fe8937243cd0b 100644
--- a/README.md
+++ b/README.md
@@ -139,6 +139,10 @@
如果没有公网IP,均使用内网IP即可,实际部署时可以替换成公网IP
```bash
+ # 通过环境变量控制需要使能的服务(以下是一个常用默认搭配)
+ export DEPLOY_SERVER_LIST=sysom_api,sysom_diagnosis,sysom_channel,sysom_monitor_server,sysom_log,sysom_vmcore,sysom_migration,sysom_cluster_health,sysom_alarm,sysom_cmg,sysom_vul
+
+ # 使用部署脚本部署
./deploy.sh /usr/local/sysom 172.22.3.238 172.22.3.238
```
@@ -224,12 +228,24 @@
Oct 10 12:58:51 mfeng bash[3217754]: + sed -i 's/^FIRST_INIT_DONE=0/FIRST_INIT_DONE=1/g' /usr/local/sysom/init_scripts/server/init.sh
```
-## 3. 通过 WEB 前端访问
+## 3. 容器化部署
+
+### 3.1 基础服务部署
+
+ ```bash
+ docker build -t sysom-base -f docker/sysom_base_dockerfile .
+ docker run -idt --privileged --name sysom-base sysom-base
+ ```
+
+ 可以通过修改 docker/sysom_base_dockerfile 使能不同的微服务
+
+
+## 4. 通过 WEB 前端访问
部署成功之后,可以通过访问部署时指定的公网/私网地址访问 SysOM前端,比如 http://172.22.3.238
- 默认的用户名密码:admin/sysom@123
-- SysOM提供了 Demo 体验网站,可以访问:http://sysom.openanolis.cn/
+- SysOM提供了 Demo 体验网站,可以访问:http://sysom.openanolis.cn/,用户名/密码为:demo/sysom@openanolis123
# 其它问题见FAQ
diff --git a/conf/config.yml b/conf/config.yml
index c3e65bc4e54b82ff331d34b13127c1afa51d8fed..79d9ebb9be345a65c6dbede4bbd3464e9e333486 100644
--- a/conf/config.yml
+++ b/conf/config.yml
@@ -18,6 +18,9 @@ sysom_server:
port: 6379
username:
password:
+ kafka:
+ host: localhost
+ port: 9092
mysql:
dialect: mariadb
engine: pymysql
diff --git a/deps/2_nginx/sysom.conf b/deps/2_nginx/sysom.conf
index c2b27cc6a41678ae94b9e34dffbeefff4600dcd2..8f2d30eb22f1f9633eaac636671cbc1c0e6ded9c 100644
--- a/deps/2_nginx/sysom.conf
+++ b/deps/2_nginx/sysom.conf
@@ -163,6 +163,23 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
+ location /api/v1/alert_pusher/ {
+ proxy_pass http://127.0.0.1:7018;
+ proxy_read_timeout 180;
+ proxy_redirect off;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+
+ # 7010 reversed for dingtalk
+ # 7020 resvered for cluster_health
+ # 7022 resvered for colocation
+ location /api/v1/cmg/ {
+ proxy_pass http://127.0.0.1:7023;
+ proxy_read_timeout 180;
+ proxy_redirect off;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ }
+
location /api/ {
proxy_pass http://127.0.0.1:7001;
proxy_read_timeout 180s;
diff --git a/deps/3_prometheus/init.sh b/deps/3_prometheus/init.sh
index 9082ee8c00c83242f0ace63c369ebdb80ed17db8..ed8316fa3ce4822d62a8a0375c62411a3f6dbd3a 100644
--- a/deps/3_prometheus/init.sh
+++ b/deps/3_prometheus/init.sh
@@ -18,6 +18,15 @@ add_auto_discovery()
metrics_path: "/api/v1/channel/cec_status/metrics"
static_configs:
- targets: ["localhost:7003"]
+ - job_name: "cluster_health"
+ metrics_path: "/metrics"
+ static_configs:
+ - targets: ["localhost:7020"]
+ - job_name: "colocation"
+ metrics_path: "/metrics"
+ static_configs:
+ - targets: ["localhost:7022"]
+
EOF
popd
diff --git a/deps/4_grafana/grafana_api_set.sh b/deps/4_grafana/grafana_api_set.sh
index cd9efef77639d9ce085d254c878d8779ebfd3656..c3a930832e20eb28af36b7617811974eea21605f 100755
--- a/deps/4_grafana/grafana_api_set.sh
+++ b/deps/4_grafana/grafana_api_set.sh
@@ -156,6 +156,24 @@ then
exit 1
fi
+curl -c cookie -b cookie --location --request POST 'http://127.0.0.1:3000/api/dashboards/db' \
+--header 'Content-Type: application/json' \
+-d @"sysom-appobserver-nginx-dashboard.json"
+if [ $? -ne 0 ]
+then
+ echo "grafana configure sysom-appobserver-nginx-dashboard error"
+ exit 1
+fi
+
+curl -c cookie -b cookie --location --request POST 'http://127.0.0.1:3000/api/dashboards/db' \
+--header 'Content-Type: application/json' \
+-d @"sysom-appobserver-nginx-events-dashboard.json"
+if [ $? -ne 0 ]
+then
+ echo "grafana configure sysom-appobserver-nginx-events-dashboard error"
+ exit 1
+fi
+
curl -c cookie -b cookie --location --request POST 'http://127.0.0.1:3000/api/dashboards/db' \
--header 'Content-Type: application/json' \
-d @"sysom-appobserver-process-dashboard.json"
diff --git a/deps/4_grafana/sysom-appobserver-mysql-dashboard.json b/deps/4_grafana/sysom-appobserver-mysql-dashboard.json
index 629f49138fea28f120de93c8686b6e2733faf9b3..c8d44d729bac793ade74e13d9fc050dba33d9316 100644
--- a/deps/4_grafana/sysom-appobserver-mysql-dashboard.json
+++ b/deps/4_grafana/sysom-appobserver-mysql-dashboard.json
@@ -26,270 +26,22 @@
"links": [],
"liveNow": false,
"panels": [
- {
- "datasource": "sysom-prometheus",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "smooth",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 0,
- "y": 0
- },
- "id": 71,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"curriops\"}",
- "legendFormat": "{{disk}}.iops",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"iopsBaseThresh\"}",
- "hide": false,
- "legendFormat": "{{disk}}.iopsBaseThresh",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"iopsComThresh\"}",
- "hide": false,
- "legendFormat": "{{disk}}.iopsComThresh",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"iopsMoveAvg\"}",
- "hide": false,
- "legendFormat": "{{disk}}.iopsMoveAvg",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"iopsThresh\"}",
- "hide": false,
- "legendFormat": "{{disk}}.iopsThresh",
- "range": true,
- "refId": "E"
- }
- ],
- "title": "iops异常检测追踪",
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "smooth",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green",
- "value": null
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- }
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 12,
- "x": 12,
- "y": 0
- },
- "id": 72,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "table",
- "placement": "right",
- "showLegend": true
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"currbps\"}",
- "legendFormat": "{{disk}}.bps",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"bpsThresh\"}",
- "hide": false,
- "legendFormat": "{{disk}}.bpsThresh",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"bpsMoveAvg\"}",
- "hide": false,
- "legendFormat": "{{disk}}.bpsMoveAvg",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"bpsComThresh\"}",
- "hide": true,
- "legendFormat": "{{disk}}.bpsComThresh",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_debugDynThreshTlb{exported_instance=\"$hostIP\",value=\"bpsBaseThresh\"}",
- "hide": true,
- "legendFormat": "{{disk}}.bpsBaseThresh",
- "range": true,
- "refId": "E"
- }
- ],
- "title": "iops异常检测追踪",
- "type": "timeseries"
- },
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
- "y": 8
+ "y": 0
},
"id": 69,
"panels": [],
- "title": "Mysql alarm statics",
+ "title": "MySQL\u5f02\u5e38\u544a\u8b66\u7c7b\u578b\u7edf\u8ba1",
"type": "row"
},
{
"datasource": "sysom-prometheus",
+ "description": "mysql\u670d\u52a1\u5728OS\u4e2d\u88ab\u89c2\u6d4b\u5230\u53ef\u80fd\u5b58\u5728\u7684\u5f02\u5e38\u544a\u8b66\u4e8b\u4ef6\u7edf\u8ba1\u4fe1\u606f",
"fieldConfig": {
"defaults": {
"color": {
@@ -403,7 +155,7 @@
"h": 5,
"w": 24,
"x": 0,
- "y": 9
+ "y": 1
},
"id": 64,
"links": [],
@@ -427,8 +179,9 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_Mysql_Error_Type\"}",
+ "hide": false,
"interval": "35",
- "legendFormat": "Mysql Error Alarm",
+ "legendFormat": "MySQL Error Alarm",
"range": true,
"refId": "A"
},
@@ -438,7 +191,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_Mysql_Slow_Sql_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql Slow_Sql Alarm",
+ "legendFormat": "MySQL Slow_Sql Alarm",
"range": true,
"refId": "B"
},
@@ -448,7 +201,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_Net_Drops_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql Net_Drops Alarm",
+ "legendFormat": "MySQL Net_Drops Alarm",
"range": true,
"refId": "C"
},
@@ -458,7 +211,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_OOM_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql OOM Alarm",
+ "legendFormat": "MySQL OOM Alarm",
"range": true,
"refId": "D"
},
@@ -468,7 +221,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_RT_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql RT Alarm",
+ "legendFormat": "MySQL RT Alarm",
"range": true,
"refId": "E"
},
@@ -478,7 +231,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Process_Sched_Delay_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql Sched_Delay Alarm",
+ "legendFormat": "MySQL Sched_Delay Alarm",
"range": true,
"refId": "F"
},
@@ -488,7 +241,7 @@
"expr": "sysom_obser_mysqld_alarm{containerId=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"Alarm_Long_Time_D_Type\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Mysql Long_Time_D Alarm",
+ "legendFormat": "MySQL Long_Time_D Alarm",
"range": true,
"refId": "G"
},
@@ -582,7 +335,7 @@
"refId": "P"
}
],
- "title": "异常告警分布(次数)",
+ "title": "\u5f02\u5e38\u544a\u8b66\u5206\u5e03\uff08\u6b21\u6570\uff09",
"type": "bargauge"
},
{
@@ -591,11 +344,11 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 14
+ "y": 6
},
"id": 26,
"panels": [],
- "title": "Mysql resource usage",
+ "title": "MySQL\u8d44\u6e90\u4f7f\u7528\u8be6\u60c5",
"type": "row"
},
{
@@ -622,7 +375,7 @@
{
"matcher": {
"id": "byName",
- "options": "缓存线程数"
+ "options": "\u7f13\u5b58\u7ebf\u7a0b\u6570"
},
"properties": [
{
@@ -642,7 +395,7 @@
{
"matcher": {
"id": "byName",
- "options": "创建线程数"
+ "options": "\u521b\u5efa\u7ebf\u7a0b\u6570"
},
"properties": [
{
@@ -666,7 +419,7 @@
{
"matcher": {
"id": "byName",
- "options": "运行线程数"
+ "options": "\u8fd0\u884c\u7ebf\u7a0b\u6570"
},
"properties": [
{
@@ -690,7 +443,7 @@
{
"matcher": {
"id": "byName",
- "options": "连接线程数"
+ "options": "\u8fde\u63a5\u7ebf\u7a0b\u6570"
},
"properties": [
{
@@ -717,7 +470,7 @@
"h": 5,
"w": 24,
"x": 0,
- "y": 15
+ "y": 7
},
"id": 38,
"options": {
@@ -741,7 +494,7 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"threadCached\"}",
"hide": false,
"interval": "35",
- "legendFormat": "缓存线程数",
+ "legendFormat": "\u7f13\u5b58\u7ebf\u7a0b\u6570",
"range": true,
"refId": "A"
},
@@ -751,7 +504,7 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"threadCreated\"}",
"hide": false,
"interval": "35",
- "legendFormat": "创建线程总数",
+ "legendFormat": "\u521b\u5efa\u7ebf\u7a0b\u603b\u6570",
"range": true,
"refId": "B"
},
@@ -761,7 +514,7 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"threadRunning\"}",
"hide": false,
"interval": "35",
- "legendFormat": "运行线程数",
+ "legendFormat": "\u8fd0\u884c\u7ebf\u7a0b\u6570",
"range": true,
"refId": "C"
},
@@ -771,7 +524,7 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"threadConnected\"}",
"hide": false,
"interval": "35",
- "legendFormat": "连接线程数",
+ "legendFormat": "\u8fde\u63a5\u7ebf\u7a0b\u6570",
"range": true,
"refId": "E"
},
@@ -781,12 +534,12 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"maxConnection\"}",
"hide": false,
"interval": "35",
- "legendFormat": "最大连接限制",
+ "legendFormat": "\u6700\u5927\u8fde\u63a5\u9650\u5236",
"range": true,
"refId": "D"
}
],
- "title": "mysql 连接线程池使用",
+ "title": "mySQL \u8fde\u63a5\u7ebf\u7a0b\u6c60\u4f7f\u7528",
"type": "gauge"
},
{
@@ -850,7 +603,7 @@
"h": 8,
"w": 8,
"x": 0,
- "y": 20
+ "y": 12
},
"id": 17,
"options": {
@@ -904,12 +657,12 @@
"refId": "C"
}
],
- "title": "Mysql CPU占用率",
+ "title": "MySQL CPU\u5360\u7528\u7387",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "\u4e00\u822c\u5730\u5360\u6bd4\u8d8a\u4f4e\u8d8a\u597d\uff0c\u5360\u6bd4\u8d8a\u9ad8\uff0c\u8bf4\u660e\u7cfb\u7edf\u5206\u914d\u7ed9mysql\u7684CPU\u65f6\u95f4\u7247\u7ecf\u5e38\u5904\u4e8e\u672a\u4f7f\u7528\u5b8c\u5c31\u88ab\u5207\u6362\u51fa\u53bb\u7684\u72b6\u6001",
"fieldConfig": {
"defaults": {
"color": {
@@ -968,7 +721,7 @@
"h": 8,
"w": 8,
"x": 8,
- "y": 20
+ "y": 12
},
"id": 18,
"options": {
@@ -996,12 +749,12 @@
"expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"cpuGiveup\"}",
"hide": false,
"interval": "35",
- "legendFormat": "让出率",
+ "legendFormat": "\u8ba9\u51fa\u7387",
"range": true,
"refId": "A"
}
],
- "title": "Mysql CPU让出率",
+ "title": "MySQL CPU\u8ba9\u51fa\u7387",
"type": "timeseries"
},
{
@@ -1061,7 +814,7 @@
"h": 8,
"w": 8,
"x": 16,
- "y": 20
+ "y": 12
},
"id": 42,
"links": [],
@@ -1127,13 +880,13 @@
"hide": false,
"interval": "35",
"intervalFactor": 1,
- "legendFormat": "长事务数",
+ "legendFormat": "\u957f\u4e8b\u52a1\u6570",
"range": true,
"refId": "D",
"step": 240
}
],
- "title": "Mysql Undolog链表长度&长事务",
+ "title": "MySQL Undolog\u94fe\u8868\u957f\u5ea6&\u957f\u4e8b\u52a1",
"type": "timeseries"
},
{
@@ -1162,7 +915,7 @@
"h": 7,
"w": 8,
"x": 0,
- "y": 28
+ "y": 20
},
"id": 34,
"options": {
@@ -1198,7 +951,7 @@
"editorMode": "code",
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"bufferPoolFree\"}",
"interval": "35",
- "legendFormat": "空闲",
+ "legendFormat": "\u7a7a\u95f2",
"range": true,
"refId": "A"
},
@@ -1208,12 +961,12 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"bufferPoolTotal\"}-on(podID)sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"bufferPoolFree\"}",
"hide": false,
"interval": "35",
- "legendFormat": "已用",
+ "legendFormat": "\u5df2\u7528",
"range": true,
"refId": "B"
}
],
- "title": "Mysql 内存缓存池使用",
+ "title": "MySQL \u5185\u5b58\u7f13\u5b58\u6c60\u4f7f\u7528",
"type": "piechart"
},
{
@@ -1240,7 +993,7 @@
"h": 7,
"w": 8,
"x": 8,
- "y": 28
+ "y": 20
},
"id": 62,
"options": {
@@ -1302,7 +1055,7 @@
"refId": "C"
}
],
- "title": "Mysql OS内存使用分布",
+ "title": "MySQL OS\u5185\u5b58\u4f7f\u7528\u5206\u5e03",
"transformations": [],
"type": "piechart"
},
@@ -1360,7 +1113,7 @@
{
"matcher": {
"id": "byName",
- "options": "空闲"
+ "options": "\u7a7a\u95f2"
},
"properties": [
{
@@ -1375,7 +1128,7 @@
{
"matcher": {
"id": "byName",
- "options": "已用"
+ "options": "\u5df2\u7528"
},
"properties": [
{
@@ -1393,7 +1146,7 @@
"h": 7,
"w": 8,
"x": 16,
- "y": 28
+ "y": 20
},
"id": 36,
"options": {
@@ -1431,7 +1184,7 @@
"editorMode": "code",
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"chkPointUsage\"}",
"interval": "35",
- "legendFormat": "已用",
+ "legendFormat": "\u5df2\u7528",
"range": true,
"refId": "A"
},
@@ -1441,12 +1194,12 @@
"expr": "sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"redologCapacity\"}-on(containerID)sysom_obser_mysqld_innodb{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"chkPointUsage\"}",
"hide": false,
"interval": "35",
- "legendFormat": "空闲",
+ "legendFormat": "\u7a7a\u95f2",
"range": true,
"refId": "B"
}
],
- "title": "Mysql Redolog使用量",
+ "title": "MySQL Redolog\u4f7f\u7528\u91cf",
"type": "piechart"
},
{
@@ -1455,16 +1208,16 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 35
+ "y": 27
},
"id": 54,
"panels": [],
- "title": "Mysql latency details",
+ "title": "MySQL RT\u5ef6\u8fdf\u8be6\u60c5",
"type": "row"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "mysql\u670d\u52a1\u4fa7\u63a5\u53d7\u5230\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5230\u5904\u7406\u5b8c\u4e4b\u540e\uff0c\u56de\u5e94\u5ba2\u6237\u7aef\u8fd9\u4e00\u8fc7\u7a0b\u7684\u603b\u65f6\u95f4\u6d88\u8017\u3002\u8fd9\u91cc\u5c55\u793a\u7684\u662f\u5e73\u5747RT\u503c",
"fieldConfig": {
"defaults": {
"color": {
@@ -1509,11 +1262,12 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
- "unit": "µs"
+ "unit": "\u00b5s"
},
"overrides": []
},
@@ -1521,7 +1275,7 @@
"h": 9,
"w": 8,
"x": 0,
- "y": 36
+ "y": 28
},
"id": 46,
"options": {
@@ -1575,11 +1329,12 @@
"refId": "C"
}
],
- "title": "Mysql RT",
+ "title": "MySQL RT",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
+ "description": "\u5bf9\u5e94\u4e0d\u540c\u8fde\u63a5\u7684\u8bf7\u6c42\u8be6\u60c5\uff0c\u53f3\u4fa7\u7684\u201cRT\u5206\u6790\u201d\u53ef\u4ee5\u8df3\u8f6c\u5230RT\u5ef6\u8fdf\u8bca\u65ad\uff0c\u8fdb\u4e00\u6b65\u5c06RT\u5ef6\u8fdf\u7ec6\u7c92\u5ea6\u5c55\u5f00",
"fieldConfig": {
"defaults": {
"color": {
@@ -1595,7 +1350,8 @@
"mode": "absolute",
"steps": [
{
- "color": "semi-dark-red"
+ "color": "semi-dark-red",
+ "value": null
}
]
}
@@ -1740,7 +1496,7 @@
"value": [
{
"targetBlank": true,
- "title": "RT根因分析",
+ "title": "RT\u6839\u56e0\u5206\u6790",
"url": "../diagnose/link/rtdelay?instance=${__data.fields.exported_instance}&pid=${__data.fields.Pid}&time=10"
}
]
@@ -1756,7 +1512,7 @@
"options": {
"true": {
"index": 0,
- "text": "RT分析"
+ "text": "RT\u5206\u6790"
}
},
"type": "value"
@@ -1813,7 +1569,7 @@
"properties": [
{
"id": "unit",
- "value": "µs"
+ "value": "\u00b5s"
},
{
"id": "thresholds",
@@ -1821,7 +1577,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1844,7 +1601,7 @@
"properties": [
{
"id": "unit",
- "value": "µs"
+ "value": "\u00b5s"
},
{
"id": "thresholds",
@@ -1852,7 +1609,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -1921,7 +1679,7 @@
"h": 9,
"w": 16,
"x": 8,
- "y": 36
+ "y": 28
},
"id": 50,
"options": {
@@ -1952,7 +1710,7 @@
"refId": "B"
}
],
- "title": "Mysql请求详情",
+ "title": "MySQL\u8bf7\u6c42\u8be6\u60c5",
"transformations": [
{
"id": "joinByField",
@@ -2286,7 +2044,7 @@
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "mysql\u7b49\u5f85\u7cfb\u7edfIO\u8d44\u6e90\u65f6\u6240\u6d88\u8017\u65f6\u95f4\uff0c\u4e00\u822c\u5730\uff0c\u5728\u6709IO\u60c5\u51b5\u4e0b\uff0c\u8be5\u6307\u6807\u5e94\u8d8a\u4f4e\u8d8a\u597d\uff0c\u8bf4\u660e\u7cfb\u7edfIO\u8d44\u6e90\u53ef\u4ee5\u65e0\u963b\u788d\u5730\u83b7\u53d6\uff0c\u5982\u51fa\u73b0\u98d9\u5347\uff0c\u53ef\u80fd\u5f15\u8d77\u670d\u52a1\u8fdb\u7a0b\u963b\u585e",
"fieldConfig": {
"defaults": {
"color": {
@@ -2328,11 +2086,12 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
- "unit": "µs"
+ "unit": "\u00b5s"
},
"overrides": []
},
@@ -2340,7 +2099,7 @@
"h": 9,
"w": 8,
"x": 0,
- "y": 45
+ "y": 37
},
"id": 22,
"options": {
@@ -2373,12 +2132,12 @@
"refId": "A"
}
],
- "title": "Mysql 等待IO资源延迟(平均每秒)",
+ "title": "MySQL \u7b49\u5f85IO\u8d44\u6e90\u5ef6\u8fdf(\u5e73\u5747\u6bcf\u79d2)",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "mysql\u8bbf\u95ee\u5185\u5b58\u65f6\u6240\u6d88\u8017\u65f6\u95f4\uff0c\u4e00\u822c\u5730\uff0c\u8be5\u6307\u6807\u5e94\u63a5\u8fd1\u4e8e0\uff0c\u8bf4\u660e\u7cfb\u7edf\u5185\u5b58\u8d44\u6e90\u53ef\u4ee5\u65e0\u963b\u788d\u5730\u83b7\u53d6\uff0c\u5982\u51fa\u73b0\u98d9\u5347\uff0c\u53ef\u80fd\u5f15\u8d77\u670d\u52a1\u8fdb\u7a0b\u963b\u585e",
"fieldConfig": {
"defaults": {
"color": {
@@ -2420,7 +2179,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
@@ -2432,7 +2192,7 @@
"h": 9,
"w": 8,
"x": 8,
- "y": 45
+ "y": 37
},
"id": 60,
"options": {
@@ -2465,12 +2225,12 @@
"refId": "A"
}
],
- "title": "Mysql申请OS内存延迟",
+ "title": "MySQL\u7533\u8bf7OS\u5185\u5b58\u5ef6\u8fdf",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "在就绪队列中等待的时间",
+ "description": "mysql\u5728\u5c31\u7eea\u961f\u5217\u4e2d\u7b49\u5f85\u5206\u914dCPU\u8d44\u6e90\uff0c\u88ab\u8c03\u5ea6\u7684\u65f6\u95f4\uff0c\u8be5\u6307\u6807\u6700\u597d\u662f\u63a5\u8fd1\u4e8e0\uff0c\u5426\u5219\uff0c\u8bf4\u660e\u5f53\u524dmysql\u5b9e\u4f8b\u5185CPU\u8d44\u6e90\u7d27\u5f20",
"fieldConfig": {
"defaults": {
"color": {
@@ -2512,7 +2272,8 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
},
{
"color": "red",
@@ -2528,7 +2289,7 @@
"h": 9,
"w": 8,
"x": 16,
- "y": 45
+ "y": 37
},
"id": 28,
"options": {
@@ -2555,30 +2316,592 @@
"editorMode": "code",
"expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"schedDelay\"}",
"interval": "35",
- "legendFormat": "调度延迟",
+ "legendFormat": "\u8c03\u5ea6\u5ef6\u8fdf",
"range": true,
"refId": "A"
}
],
- "title": "Mysql OS调度延迟",
+ "title": "MySQL OS\u8c03\u5ea6\u5ef6\u8fdf",
"type": "timeseries"
},
{
- "collapsed": false,
- "gridPos": {
- "h": 1,
- "w": 24,
+ "datasource": "sysom-prometheus",
+ "description": "\u5c06mysql\u7684\u6570\u636eIO\u603b\u6d88\u8017\u5ef6\u8fdf\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u7ec6\u5206\u5728OS\uff08\u5305\u542b\u5185\u6838block\u5b50\u7cfb\u7edf\u3001\u786c\u76d8\u9a71\u52a8\u3001IO\u6536\u5272\u3001\u5b8c\u6210IO\u65f6\u5524\u9192\u524d\u53f0\u5e94\u7528\u8fdb\u7a0b\u7b49\u5404\u9636\u6bb5\u6240\u6d88\u8017\u5ef6\u8fdf\uff09\u3001\u786c\u76d8\u5ef6\u8fdf\u6d88\u8017",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "\u00b5s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 0,
+ "y": 46
+ },
+ "id": 71,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "multi",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"total_delay\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.Total_delay",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"disk\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.Disk_delay",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"total_delay\"}) - avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"disk\"})",
+ "hide": true,
+ "interval": "35",
+ "legendFormat": "MySQL.OS_delay",
+ "range": true,
+ "refId": "G"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"block\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.OS_delay_by_io_block",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"driver\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.OS_delay_by_disk_driver",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"complete\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.OS_delay_by_io_complete",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg(sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"done\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "MySQL.OS_delay_by_io_done",
+ "range": true,
+ "refId": "F"
+ }
+ ],
+ "title": "MySQL\u6570\u636eIO\u5904\u7406\u5ef6\u8fdf\u5206\u5e03",
+ "transformations": [],
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5c06mysql\u8fdb\u884cIO\u7684\u78c1\u76d8\u89c6\u89d2\u6765\u770b\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u67e5\u770b\u786c\u76d8\u6bcf\u786c\u4ef6\u961f\u5217\uff0c\u5904\u7406IO\u7684\u5ef6\u8fdf\u6d88\u8017\uff0c\u5e76\u7ec6\u5206\u5728OS\u3001\u786c\u76d8\u5ef6\u8fdf\u6d88\u8017",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "\u00b5s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 8,
+ "y": 46
+ },
+ "id": 78,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "multi",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname, queue_id) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"total_delay\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.Qid{{queue_id}}.Total_delay",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname, queue_id) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"disk\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.Qid{{queue_id}}.Disk_delay",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname, queue_id) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"total_delay\"}) - avg by(diskname, queue_id) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"disk\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.Qid{{queue_id}}.OS_delay",
+ "range": true,
+ "refId": "C"
+ }
+ ],
+ "title": "MySQL \u78c1\u76d8\u5404\u961f\u5217\u7ea7IO\u5ef6\u8fdf\u5206\u5e03",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5c06mysql\u8fdb\u884cIO\u7684\u78c1\u76d8\u89c6\u89d2\u6765\u770b\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u67e5\u770bIO\u7684\u5ef6\u8fdf\u6d88\u8017\uff0c\u5e76\u7ec6\u5206\u5728OS\u3001\u786c\u76d8\u5ef6\u8fdf\u6d88\u8017",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "smooth",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": true,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "\u00b5s"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 16,
+ "y": 46
+ },
+ "id": 79,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "multi",
+ "sort": "desc"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"total_delay\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.Total_delay",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"disk\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.Disk_delay",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "avg by(diskname) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"total_delay\"}) - avg by(diskname) (sysom_iolatency{diskname=~\"$Disk_list\", exported_instance=\"$hostIP\", value=\"disk\"})",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{diskname}}.OS_delay",
+ "range": true,
+ "refId": "C"
+ }
+ ],
+ "title": "MySQL \u78c1\u76d8\u7ea7IO\u5ef6\u8fdf\u5206\u5e03",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "mysql\u4ea7\u751f\u6570\u636eIO\uff0c\u4f4d\u4e8e\u54ea\u4e9bCPU\u4e0a\uff0c\u989c\u8272\u8d8a\u6df1\uff0c\u8bf4\u660e\u5728\u6b64CPU\u7f16\u53f7\u8303\u56f4\u5185\u53d1\u8d77\u7684IO\u8bf7\u6c42\u8d8a\u591a\uff08Bucket\u4e3aCPU\u7f16\u53f7\u8303\u56f4\uff0ccount\u4e3aIO\u8bf7\u6c42\u6b21\u6570\uff09\uff1b\u7531\u4e8eCPU\u4e0e\u786c\u4ef6\u961f\u5217\u4e4b\u95f4\u5b58\u5728\u6620\u5c04\u5173\u7cfb\uff0c\u4e00\u822c\u5730\u7528\u4e8e\u5206\u6790\uff0c\u78c1\u76d8\u961f\u5217IO\u5206\u5e03\u4e0d\u5747\u5300\u7684\u60c5\u51b5\uff0c\u89c2\u6d4b\u4e1a\u52a1IO\u662f\u5426\u8db3\u591f\u6253\u6563\u3002",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "scaleDistribution": {
+ "type": "linear"
+ }
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 55
+ },
+ "id": 81,
+ "options": {
+ "calculate": true,
+ "calculation": {
+ "xBuckets": {
+ "mode": "size",
+ "value": "2m"
+ },
+ "yBuckets": {
+ "mode": "size",
+ "value": "1"
+ }
+ },
+ "cellGap": 0,
+ "cellValues": {},
+ "color": {
+ "exponent": 0.5,
+ "fill": "#cc0219",
+ "min": 0,
+ "mode": "opacity",
+ "reverse": true,
+ "scale": "linear",
+ "scheme": "Blues",
+ "steps": 33
+ },
+ "exemplars": {
+ "color": "rgba(255,0,255,0.7)"
+ },
+ "filterValues": {
+ "le": 1e-09
+ },
+ "legend": {
+ "show": true
+ },
+ "rowsFrame": {
+ "layout": "auto"
+ },
+ "tooltip": {
+ "show": true,
+ "yHistogram": false
+ },
+ "yAxis": {
+ "axisLabel": "CPUs",
+ "axisPlacement": "left",
+ "decimals": 1,
+ "min": 0,
+ "reverse": false,
+ "unit": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"initiated_cpu|issue_cpu\"}",
+ "legendFormat": "IO_Generate_Hot_Cpus",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "MySQL\u6bcfCPU\u751f\u4ea7IO\u8bf7\u6c42\u70ed\u529b\u5206\u5e03",
+ "type": "heatmap"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u54cd\u5e94\u78c1\u76d8\u5b8c\u6210IO\u7684\u4e2d\u65ad\u96c6\u4e2d\u5728\u54ea\u4e9bCPU\u4e0a\uff0c\u989c\u8272\u8d8a\u6df1\uff0c\u8bf4\u660e\u5728\u6b64CPU\u7f16\u53f7\u8303\u56f4\u5185\u5904\u7406\u7684IO\u4e2d\u65ad\u8d8a\u591a\u3002\u53ef\u4ee5\u89c2\u6d4b\u5b9e\u9645\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u7684IO\u76f8\u5e94\u4e2d\u65ad\u662f\u5426\u7b26\u5408\u78c1\u76d8\u786c\u4ef6\u961f\u5217\u4e2d\u65ad\u7ed1\u6838\u671f\u671b\uff0c\u4e00\u822c\u5730\uff0c\u6bcf\u786c\u4ef6\u961f\u5217\u7ed1\u5b9a\u4e00\u4e2aCPU\u6838",
+ "fieldConfig": {
+ "defaults": {
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "scaleDistribution": {
+ "type": "linear"
+ }
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 55
+ },
+ "id": 82,
+ "options": {
+ "calculate": true,
+ "calculation": {
+ "xBuckets": {
+ "mode": "size",
+ "value": "2m"
+ },
+ "yBuckets": {
+ "mode": "size",
+ "value": "1"
+ }
+ },
+ "cellGap": 1,
+ "cellValues": {},
+ "color": {
+ "exponent": 0.5,
+ "fill": "#e00a23",
+ "min": 0,
+ "mode": "opacity",
+ "reverse": true,
+ "scale": "linear",
+ "scheme": "Blues",
+ "steps": 33
+ },
+ "exemplars": {
+ "color": "rgba(255,0,255,0.7)"
+ },
+ "filterValues": {
+ "le": 1e-09
+ },
+ "legend": {
+ "show": true
+ },
+ "rowsFrame": {
+ "layout": "auto"
+ },
+ "tooltip": {
+ "show": true,
+ "yHistogram": false
+ },
+ "yAxis": {
+ "axisLabel": "CPUs",
+ "axisPlacement": "left",
+ "decimals": 1,
+ "min": 0,
+ "reverse": false,
+ "unit": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_iolatency{ppid=\"$Pid\", exported_instance=\"$hostIP\", value=~\"soft_interrupt_cpu|respond_cpu\"}",
+ "legendFormat": "IO_Complete_Hot_Cpus",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "MySQL\u6bcfCPU\u5904\u7406IO\u4e2d\u65ad\u70ed\u529b\u5206\u5e03",
+ "type": "heatmap"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
"x": 0,
- "y": 54
+ "y": 63
},
"id": 24,
"panels": [],
- "title": "Mysql throughput details",
+ "title": "MySQL\u6d41\u91cf\u541e\u5410\u8be6\u60c5",
"type": "row"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "The number of bytes read from or written to the device per second",
"fieldConfig": {
"defaults": {
"color": {
@@ -2587,12 +2910,11 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "",
+ "axisLabel": "bytes read (-) / write (+)",
"axisPlacement": "auto",
- "axisSoftMax": 4,
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 0,
+ "fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -2615,12 +2937,18 @@
"mode": "off"
}
},
+ "links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
},
@@ -2632,56 +2960,60 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 55
+ "y": 64
},
- "id": 47,
+ "id": 20,
+ "links": [],
"options": {
"legend": {
"calcs": [
- "min",
"mean",
+ "lastNotNull",
"max",
- "lastNotNull"
+ "min"
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 0
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
- "sort": "desc"
+ "sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"netRecTraffic\"}",
- "hide": false,
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"ioReadBps\"}",
+ "format": "time_series",
"interval": "35",
- "legendFormat": "netRecTraffic",
+ "intervalFactor": 4,
+ "legendFormat": "rBPS",
"range": true,
- "refId": "A"
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"netSendTraffic\"}",
- "hide": false,
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"ioWriteBps\"}",
+ "format": "time_series",
"interval": "35",
- "legendFormat": "netSendTraffic",
+ "intervalFactor": 1,
+ "legendFormat": "wBPS",
"range": true,
- "refId": "B"
+ "refId": "B",
+ "step": 240
}
],
- "title": "Mysql网络吞吐",
+ "title": "MySQL IO\u541e\u5410",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "mysql\u5b9e\u4f8b\u4ea7\u751f\u7684\u810f\u9875\u91cf\u4ee5\u53ca\u810f\u9875\u6c34\u4f4d\uff0c\u4e00\u822c\u5730\uff0c\u5f53\u810f\u9875\u91cf\u8d85\u8fc7\u810f\u9875\u6c34\u4f4d\u65f6\uff0c\u4f1a\u5bfc\u81f4mysql\u5199Buffer IO\u963b\u585e",
"fieldConfig": {
"defaults": {
"color": {
@@ -2692,6 +3024,7 @@
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
+ "axisSoftMax": 4,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
@@ -2702,11 +3035,8 @@
"viz": false
},
"lineInterpolation": "smooth",
- "lineStyle": {
- "fill": "solid"
- },
"lineWidth": 1,
- "pointSize": 5,
+ "pointSize": 2,
"scaleDistribution": {
"type": "linear"
},
@@ -2725,11 +3055,12 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
- "unit": "none"
+ "unit": "bytes"
},
"overrides": []
},
@@ -2737,18 +3068,24 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 55
+ "y": 64
},
- "id": 48,
+ "id": 56,
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
"placement": "bottom",
- "showLegend": true
+ "showLegend": true,
+ "width": 0
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
@@ -2757,20 +3094,40 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"requestCount\"}",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"cgroupDirtyPages\"}",
"hide": false,
"interval": "35",
- "legendFormat": "mysql requestCnt",
+ "legendFormat": "Dirty Pages",
"range": true,
"refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"cgroupDirtyBlockThresh\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "Dirty Thresh",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",mode=\"cgroupFlushPages\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "Flush Pages",
+ "range": true,
+ "refId": "C"
}
],
- "title": "Mysql请求数",
+ "title": "MySQL OS\u810f\u9875\u91cf",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The number of bytes read from or written to the device per second",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -2779,11 +3136,12 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "bytes read (-) / write (+)",
+ "axisLabel": "",
"axisPlacement": "auto",
+ "axisSoftMax": 4,
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 20,
+ "fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -2806,17 +3164,13 @@
"mode": "off"
}
},
- "links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
+ "color": "green",
+ "value": null
}
]
},
@@ -2828,55 +3182,51 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 63
+ "y": 72
},
- "id": 20,
- "links": [],
+ "id": 47,
"options": {
"legend": {
"calcs": [
+ "min",
"mean",
- "lastNotNull",
"max",
- "min"
+ "lastNotNull"
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true
+ "showLegend": true,
+ "width": 0
},
"tooltip": {
"mode": "multi",
- "sort": "none"
+ "sort": "desc"
}
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"ioReadBps\"}",
- "format": "time_series",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"netRecTraffic\"}",
+ "hide": false,
"interval": "35",
- "intervalFactor": 4,
- "legendFormat": "rBPS",
+ "legendFormat": "netRecTraffic",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"ioWriteBps\"}",
- "format": "time_series",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"netSendTraffic\"}",
+ "hide": false,
"interval": "35",
- "intervalFactor": 1,
- "legendFormat": "wBPS",
+ "legendFormat": "netSendTraffic",
"range": true,
- "refId": "B",
- "step": 240
+ "refId": "B"
}
],
- "title": "Mysql IO吞吐",
+ "title": "MySQL\u7f51\u7edc\u541e\u5410",
"type": "timeseries"
},
{
@@ -2892,7 +3242,6 @@
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
- "axisSoftMax": 4,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
@@ -2903,8 +3252,11 @@
"viz": false
},
"lineInterpolation": "smooth",
+ "lineStyle": {
+ "fill": "solid"
+ },
"lineWidth": 1,
- "pointSize": 2,
+ "pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
@@ -2923,11 +3275,12 @@
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "green",
+ "value": null
}
]
},
- "unit": "bytes"
+ "unit": "none"
},
"overrides": []
},
@@ -2935,9 +3288,9 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 63
+ "y": 72
},
- "id": 56,
+ "id": 48,
"options": {
"legend": {
"calcs": [
@@ -2948,11 +3301,10 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 0
+ "showLegend": true
},
"tooltip": {
- "mode": "multi",
+ "mode": "single",
"sort": "none"
}
},
@@ -2961,35 +3313,15 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"cgroupDirtyPages\"}",
+ "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\", value=\"requestCount\"}",
"hide": false,
"interval": "35",
- "legendFormat": "Dirty Pages",
+ "legendFormat": "mysql requestCnt",
"range": true,
"refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",value=\"cgroupDirtyBlockThresh\"}",
- "hide": false,
- "interval": "35",
- "legendFormat": "Dirty Thresh",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_obser_mysqld_process{containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\",mode=\"cgroupFlushPages\"}",
- "hide": false,
- "interval": "35",
- "legendFormat": "Flush Pages",
- "range": true,
- "refId": "C"
}
],
- "title": "Mysql OS脏页量",
+ "title": "MySQL\u8bf7\u6c42\u6570",
"type": "timeseries"
}
],
@@ -3002,8 +3334,8 @@
{
"current": {
"selected": false,
- "text": "${podId}",
- "value": "${podId}"
+ "text": "db0a32b0_7632_44c0_975a_f3bfc5b6c55e",
+ "value": "db0a32b0_7632_44c0_975a_f3bfc5b6c55e"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process, podID)",
@@ -3025,8 +3357,8 @@
{
"current": {
"selected": false,
- "text": "88202520f395",
- "value": "88202520f395"
+ "text": "bcf1a8a097d5",
+ "value": "bcf1a8a097d5"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\"}, containerID)",
@@ -3047,10 +3379,9 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "192.168.0.136",
+ "value": "192.168.0.136"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\"}, exported_instance)",
@@ -3071,10 +3402,9 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "3306",
+ "value": "3306"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIP\"}, port)",
@@ -3095,10 +3425,9 @@
},
{
"current": {
- "isNone": true,
"selected": false,
- "text": "None",
- "value": ""
+ "text": "4411",
+ "value": "4411"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIP\",port=\"$Port\"}, pid)",
@@ -3119,20 +3448,50 @@
},
{
"current": {
- "isNone": true,
- "selected": false,
- "text": "None",
- "value": ""
+ "selected": true,
+ "text": [
+ "None"
+ ],
+ "value": [
+ ""
+ ]
},
"datasource": "sysom-prometheus",
- "definition": "label_values(sysom_obser_app_rt_ntopo{PodUUID=\"$podId\"}, Pod)",
- "hide": 0,
+ "definition": "label_values(sysom_ntopo_node{PodUUID=\"$podId\"}, Pod)",
+ "hide": 2,
"includeAll": false,
"multi": true,
"name": "podname",
"options": [],
"query": {
- "query": "label_values(sysom_obser_app_rt_ntopo{PodUUID=\"$podId\"}, Pod)",
+ "query": "label_values(sysom_ntopo_node{PodUUID=\"$podId\"}, Pod)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
+ {
+ "current": {
+ "selected": true,
+ "text": [
+ "All"
+ ],
+ "value": [
+ "$__all"
+ ]
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_iolatency{ppid=\"$Pid\"}, diskname)",
+ "hide": 2,
+ "includeAll": true,
+ "multi": true,
+ "name": "Disk_list",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_iolatency{ppid=\"$Pid\"}, diskname)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
@@ -3144,7 +3503,7 @@
]
},
"time": {
- "from": "now-15m",
+ "from": "now-1h",
"to": "now"
},
"timepicker": {
@@ -3163,9 +3522,9 @@
]
},
"timezone": "",
- "title": "app-mysql",
+ "title": "app-mysql-server",
"uid": "hOk70b34k",
- "version": 15,
+ "version": 319,
"weekStart": ""
}
}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-appobserver-mysql-events-dashboard.json b/deps/4_grafana/sysom-appobserver-mysql-events-dashboard.json
index db2538b15645a14a26ef6d2db57c950d02075b95..9dd86965a0ab44f0bb9e9a2c07c969bc68d78741 100644
--- a/deps/4_grafana/sysom-appobserver-mysql-events-dashboard.json
+++ b/deps/4_grafana/sysom-appobserver-mysql-events-dashboard.json
@@ -43,8 +43,7 @@
"mode": "absolute",
"steps": [
{
- "color": "semi-dark-red",
- "value": null
+ "color": "semi-dark-red"
},
{
"color": "red",
@@ -105,7 +104,7 @@
"value": [
{
"options": {
- "无": {
+ "\u65e0": {
"color": "text",
"index": 0
}
@@ -124,7 +123,7 @@
{
"targetBlank": true,
"title": "",
- "url": "../${__data.fields.root_analyz_flag}instance=${__data.fields.instance}"
+ "url": "../${__data.fields.root_analyz_flag}\ufeff\ufeff\ufeff\ufeffinstance=${__data.fields.instance}"
}
]
}
@@ -174,7 +173,7 @@
"properties": [
{
"id": "custom.width",
- "value": 132
+ "value": 371
}
]
},
@@ -205,6 +204,18 @@
"value": 410
}
]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "port"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 71
+ }
+ ]
}
]
},
@@ -236,7 +247,7 @@
"format": "table",
"hide": false,
"rawQuery": true,
- "rawSql": "SELECT extra, instance,\n CASE \n WHEN JSON_EXTRACT(extra, '$.root_analyz_flag') = 'journal/node?'\n THEN '无'\n ELSE '进一步诊断'\n END AS root_analyze\nFROM sysom.sys_node_log\nWHERE (JSON_EXTRACT(extra, '$.podId') = \"$podId\" OR JSON_EXTRACT(extra, '$.containerId') = \"$containerId\") AND instance = \"$hostIp\" AND UNIX_TIMESTAMP(create_at) > $__from / 1000 AND UNIX_TIMESTAMP(create_at) < $__to / 1000 AND JSON_EXTRACT(extra, '$.reason') IS NOT NULL AND JSON_EXTRACT(extra, '$.tag_set') = 'mysqld' \nORDER BY ts DESC LIMIT 20\n",
+ "rawSql": "SELECT annotations, instance,\n CASE \n WHEN JSON_EXTRACT(annotations, '$.root_analyz_flag') = 'journal/node?'\n THEN '\u65e0'\n ELSE '\u8fdb\u4e00\u6b65\u8bca\u65ad'\n END AS root_analyze\nFROM sysom.sys_alert_data\nWHERE (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\") AND alert_time > $__from AND alert_time < $__to AND JSON_EXTRACT(annotations, '$.reason') IS NOT NULL AND JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld' \nORDER BY alert_time DESC LIMIT 20\n",
"refId": "A",
"sql": {
"columns": [
@@ -263,7 +274,7 @@
"table": "sys_node_log"
}
],
- "title": "Mysql应用相关异常事件",
+ "title": "Mysql\u5e94\u7528\u76f8\u5173\u5f02\u5e38\u4e8b\u4ef6",
"transformations": [
{
"disabled": true,
@@ -310,7 +321,7 @@
"options": {
"format": "json",
"replace": false,
- "source": "extra"
+ "source": "annotations"
}
},
{
@@ -353,6 +364,7 @@
"id": "organize",
"options": {
"excludeByName": {
+ "annotations": true,
"app_log": true,
"containerId": true,
"curr": true,
@@ -370,18 +382,19 @@
"unit": true
},
"indexByName": {
- "app_log": 8,
+ "app_log": 9,
"containerId": 7,
- "extra": 11,
- "instance": 12,
+ "extra": 12,
+ "instance": 13,
+ "level": 8,
"metrics": 4,
- "os_log": 10,
+ "os_log": 11,
"pid": 6,
"podId": 1,
"port": 2,
- "reason": 9,
- "root_analyz_flag": 14,
- "root_analyze": 13,
+ "reason": 10,
+ "root_analyz_flag": 15,
+ "root_analyze": 14,
"tag_set": 5,
"ts": 0,
"value": 3
@@ -425,8 +438,7 @@
"mode": "absolute",
"steps": [
{
- "color": "semi-dark-red",
- "value": null
+ "color": "semi-dark-red"
},
{
"color": "red",
@@ -579,13 +591,13 @@
"value": [
{
"targetBlank": true,
- "title": "根因诊断",
+ "title": "\u6839\u56e0\u8bca\u65ad",
"url": "../${__data.fields.root_analyz_flag}instance=${__data.fields.instance}"
},
{
"targetBlank": true,
- "title": "指标关联分析",
- "url": "../api/v1/rca/rca_call?timestamp=${__data.fields.ts}&base_item=${__data.fields.metrics}&machine_ip=${__data.fields.instance}"
+ "title": "\u6307\u6807\u5173\u8054\u5206\u6790",
+ "url": "../api/v1/rca/rca_call?timestamp=${__data.fields.ts}\ufeff&base_item=${__data.fields.metrics}&machine_ip=${__data.fields.instance}"
}
]
},
@@ -600,7 +612,7 @@
"options": {
"responseTimeAvg": {
"index": 0,
- "text": "进一步诊断"
+ "text": "\u8fdb\u4e00\u6b65\u8bca\u65ad"
}
},
"type": "value"
@@ -648,7 +660,7 @@
{
"matcher": {
"id": "byName",
- "options": "extra"
+ "options": "annotations"
},
"properties": [
{
@@ -765,7 +777,7 @@
"properties": [
{
"id": "custom.width",
- "value": 361
+ "value": 373
}
]
},
@@ -792,6 +804,18 @@
"value": true
}
]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "port"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 89
+ }
+ ]
}
]
},
@@ -823,7 +847,7 @@
"format": "table",
"hide": false,
"rawQuery": true,
- "rawSql": "SELECT *, '进一步诊断' as 'root cause analyze' FROM sysom.sys_node_log \nWHERE UNIX_TIMESTAMP(create_at) > (\n SELECT COALESCE(MAX(UNIX_TIMESTAMP(create_at)), '0000-00-00 00:00:00')\n FROM sysom.sys_node_log \n WHERE (JSON_EXTRACT(extra, '$.podId') = \"$podId\" OR JSON_EXTRACT(extra, '$.containerId') = \"$containerId\" AND instance = \"$hostIp\" ) \n AND UNIX_TIMESTAMP(create_at) > $__from / 1000 \n AND UNIX_TIMESTAMP(create_at) < $__to / 1000 \n AND JSON_EXTRACT(extra, '$.reason') IS NOT NULL \n AND JSON_EXTRACT(extra, '$.tag_set') = 'mysqld'\n)\nAND UNIX_TIMESTAMP(create_at) > $__from / 1000 \nAND UNIX_TIMESTAMP(create_at) < $__to / 1000 \nAND JSON_EXTRACT(extra, '$.tag_set') = 'mysqld'\nAND JSON_EXTRACT(extra, '$.app_log') IS NULL\nAND (JSON_EXTRACT(extra, '$.podId') = \"$podId\" OR JSON_EXTRACT(extra, '$.containerId') = \"$containerId\" AND instance = \"$hostIp\")\nORDER BY ts DESC \nLIMIT 20",
+ "rawSql": "SELECT alert_time, annotations, instance, '\u8fdb\u4e00\u6b65\u8bca\u65ad' as 'root cause analyze' FROM sysom.sys_alert_data \nWHERE alert_time > (\n SELECT COALESCE(MAX(alert_time / 1000), '0000-00-00 00:00:00') \n FROM sysom.sys_alert_data \n WHERE (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\") \n AND alert_time > $__from \n AND alert_time < $__to\n AND JSON_EXTRACT(annotations, '$.reason') IS NOT NULL \n AND JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld'\n)\nAND alert_time > $__from\nAND alert_time < $__to\nAND (JSON_EXTRACT(annotations, '$.tag_set') = 'mysqld' OR JSON_EXTRACT(annotations, '$.value') LIKE '%mysqld%')\nAND JSON_EXTRACT(annotations, '$.app_log') IS NULL\nAND (JSON_EXTRACT(annotations, '$.podId') = \"$podId\" OR JSON_EXTRACT(annotations, '$.containerId') = \"$containerId\" OR JSON_EXTRACT(annotations, '$.value') LIKE '%$Pid%')\nORDER BY alert_time DESC \nLIMIT 20",
"refId": "A",
"sql": {
"columns": [
@@ -850,12 +874,13 @@
"table": "sys_node_log"
}
],
- "title": "Mysql OS相关异常事件",
+ "title": "Mysql OS\u76f8\u5173\u5f02\u5e38\u4e8b\u4ef6",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
+ "alert_time": true,
"app_log": true,
"containerId": true,
"create_at": true,
@@ -868,6 +893,7 @@
"os_log": true,
"pid": false,
"reason": true,
+ "root cause analyze": false,
"tag_set": false,
"ts": true,
"unit": true,
@@ -899,7 +925,7 @@
"options": {
"format": "json",
"replace": false,
- "source": "extra"
+ "source": "annotations"
}
},
{
@@ -966,23 +992,18 @@
"value": false
},
"indexByName": {
- "app_log": 11,
- "containerId": 9,
- "curr": 15,
- "disk": 14,
- "extra": 4,
+ "annotations": 10,
+ "containerId": 7,
+ "details": 12,
"instance": 1,
- "level": 10,
- "metrics": 7,
- "os_log": 13,
- "pid": 3,
+ "level": 8,
+ "pid": 4,
"podId": 2,
- "reason": 12,
- "root cause analyze": 17,
- "tag_set": 8,
- "thresh": 16,
+ "port": 3,
+ "root cause analyze": 9,
+ "root_analyz_flag": 11,
+ "tag_set": 6,
"ts": 0,
- "unit": 6,
"value": 5
},
"renameByName": {}
@@ -1004,7 +1025,7 @@
"type": "table"
}
],
- "refresh": "5s",
+ "refresh": "15s",
"schemaVersion": 37,
"style": "dark",
"tags": [],
@@ -1013,8 +1034,8 @@
{
"current": {
"selected": false,
- "text": "NULL",
- "value": "NULL"
+ "text": "36ec6dca_b5da_4b3b_b693_b6dbe4b8a9a6",
+ "value": "36ec6dca_b5da_4b3b_b693_b6dbe4b8a9a6"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process, podID)",
@@ -1036,8 +1057,8 @@
{
"current": {
"selected": false,
- "text": "88202520f395",
- "value": "88202520f395"
+ "text": "a83df925aa86",
+ "value": "a83df925aa86"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\"}, containerID)",
@@ -1059,18 +1080,18 @@
{
"current": {
"selected": false,
- "text": "192.168.0.6",
- "value": "192.168.0.6"
+ "text": "192.168.0.138",
+ "value": "192.168.0.138"
},
"datasource": "sysom-prometheus",
- "definition": "label_values(sysom_obser_mysqld_process{containerID=\"$containerId\"}, exported_instance)",
+ "definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\"}, exported_instance)",
"hide": 0,
"includeAll": false,
"multi": false,
"name": "hostIp",
"options": [],
"query": {
- "query": "label_values(sysom_obser_mysqld_process{containerID=\"$containerId\"}, exported_instance)",
+ "query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\"}, exported_instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
@@ -1081,6 +1102,53 @@
},
{
"current": {
+ "selected": false,
+ "text": "3306",
+ "value": "3306"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\"}, port)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "Port",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\"}, port)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "4110",
+ "value": "4110"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\",port=\"$Port\"}, pid)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "Pid",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_obser_mysqld_process{podID=\"$podId\",containerID=\"$containerId\",exported_instance=\"$hostIp\",port=\"$Port\"}, pid)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
+ {
+ "current": {
+ "isNone": true,
"selected": false,
"text": "None",
"value": ""
@@ -1105,14 +1173,28 @@
]
},
"time": {
- "from": "now-15m",
+ "from": "now-30m",
"to": "now"
},
- "timepicker": {},
+ "timepicker": {
+ "refresh_intervals": [
+ "5s",
+ "10s",
+ "15s",
+ "30s",
+ "1m",
+ "5m",
+ "15m",
+ "30m",
+ "1h",
+ "2h",
+ "1d"
+ ]
+ },
"timezone": "",
"title": "app-mysql-events",
"uid": "Ub__1x3Vz",
- "version": 4,
+ "version": 107,
"weekStart": ""
}
}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-appobserver-nginx-dashboard.json b/deps/4_grafana/sysom-appobserver-nginx-dashboard.json
new file mode 100644
index 0000000000000000000000000000000000000000..78b411be93c942d91cc42323a53607ece972ba93
--- /dev/null
+++ b/deps/4_grafana/sysom-appobserver-nginx-dashboard.json
@@ -0,0 +1,1088 @@
+{
+ "dashboard": {
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": {
+ "type": "grafana",
+ "uid": "-- Grafana --"
+ },
+ "enable": true,
+ "hide": true,
+ "iconColor": "rgba(0, 211, 255, 1)",
+ "name": "Annotations & Alerts",
+ "target": {
+ "limit": 100,
+ "matchAny": false,
+ "tags": [],
+ "type": "dashboard"
+ },
+ "type": "dashboard"
+ }
+ ]
+ },
+ "editable": false,
+ "fiscalYearStartMonth": 0,
+ "graphTooltip": 0,
+ "id": null,
+ "links": [],
+ "liveNow": false,
+ "panels": [
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "id": 8,
+ "panels": [],
+ "title": "\u5f02\u5e38\u4e8b\u4ef6",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx\u670d\u52a1\u5728OS\u4e2d\u88ab\u89c2\u6d4b\u5230\u53ef\u80fd\u5b58\u5728\u7684\u5f02\u5e38\u544a\u8b66\u4e8b\u4ef6\u7edf\u8ba1\u4fe1\u606f",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "links": [],
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 1
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u8bf7\u6c42\u6296\u52a8"
+ },
+ "properties": [
+ {
+ "id": "links",
+ "value": [
+ {
+ "targetBlank": false,
+ "title": "",
+ "url": "../grafana/d/HtuWUeSSz/nginx-event?var-instance=${instance}&var-masterPid=${masterPid}"
+ }
+ ]
+ },
+ {
+ "id": "unit",
+ "value": "none"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u8bf7\u6c424xx"
+ },
+ "properties": [
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "../grafana/d/HtuWUeSSz/nginx-event?var-instance=${instance}&var-masterPid=${masterPid}"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u8bf7\u6c425xx"
+ },
+ "properties": [
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "../grafana/d/HtuWUeSSz/nginx-event?var-instance=${instance}&var-masterPid=${masterPid}"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u9519\u8bef\u65e5\u5fd7"
+ },
+ "properties": [
+ {
+ "id": "links",
+ "value": [
+ {
+ "title": "",
+ "url": "../grafana/d/HtuWUeSSz/nginx-event?var-instance=${instance}&var-masterPid=${masterPid}"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 6,
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "id": 18,
+ "links": [],
+ "options": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "round(sum(increase(sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"requestJitter\"}[$__range])))",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "\u8bf7\u6c42\u6296\u52a8",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "round(sum(increase(sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_4xx\"}[$__range])))",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "\u8bf7\u6c424xx",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "round(sum(increase(sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_5xx\"}[$__range])))",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "\u8bf7\u6c425xx",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"errorLog\"}",
+ "hide": false,
+ "legendFormat": "\u9519\u8bef\u65e5\u5fd7",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "\u5f02\u5e38\u544a\u8b66\u5206\u5e03\uff08\u6b21\u6570\uff09",
+ "type": "bargauge"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 7
+ },
+ "id": 6,
+ "panels": [],
+ "title": "\u5e94\u7528\u6307\u6807",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx\u7684\u8bf7\u6c42\u6570",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 8
+ },
+ "id": 9,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"requests\"}",
+ "interval": "35",
+ "legendFormat": "requests",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "\u8bf7\u6c42\u6570",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "http\u8bf7\u6c42\u7684status\u5206\u5e03\u60c5\u51b5",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 8
+ },
+ "id": 14,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_1xx\"}",
+ "interval": "35",
+ "legendFormat": "status_1xx",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_2xx\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "status_2xx",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_3xx\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "status_3xx",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_4xx\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "status_4xx",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"status_5xx\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "status_5xx",
+ "range": true,
+ "refId": "E"
+ }
+ ],
+ "title": "http status\u5206\u5e03",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u54cd\u5e94\u65f6\u5ef6\uff0c\u5305\u62ecrequest\u548cupstream",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "ms"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 16
+ },
+ "id": 15,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"requestTimeAvg\"}",
+ "interval": "35",
+ "legendFormat": "requestTime",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"upstreamTimeAvg\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "upstreamTime",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"maxRequestTime\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "maxRequestTime",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"maxUpstreamTime\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "maxUpstreamTime",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "\u54cd\u5e94\u65f6\u5ef6",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx workers\u7684\u6570\u91cf",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 16
+ },
+ "id": 13,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"workersCount\"}",
+ "interval": "35",
+ "legendFormat": "workersCount",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "workers\u6570\u91cf",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx\u5f53\u524d\u6d3b\u8dc3\u7684\u8fde\u63a5\u6570",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": [
+ {
+ "__systemRef": "hideSeriesFrom",
+ "matcher": {
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "activeConnections"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
+ },
+ "properties": [
+ {
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": false,
+ "viz": true
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 24,
+ "x": 0,
+ "y": 24
+ },
+ "id": 12,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"activeConnections\"}",
+ "interval": "35",
+ "legendFormat": "activeConnections",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "\u6d3b\u8dc3\u7684\u8fde\u63a5\u6570",
+ "type": "timeseries"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 32
+ },
+ "id": 4,
+ "panels": [],
+ "title": "\u7cfb\u7edf\u6307\u6807",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx\u7684cpu\u5229\u7528\u7387",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "percent"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 33
+ },
+ "id": 2,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_worker_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"cpuTot\"}",
+ "interval": "35",
+ "legendFormat": "{{pid}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "nginx\u8fdb\u7a0bcpu\u5229\u7528\u7387",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "nginx\u7684\u5185\u5b58\u5229\u7528\u7387",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "percent"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 33
+ },
+ "id": 10,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_worker_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"memPct\"}",
+ "interval": "35",
+ "legendFormat": "{{pid}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "nginx\u8fdb\u7a0b\u5185\u5b58\u5229\u7528\u7387",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u663e\u793a\u7f51\u7edc\u6d41\u91cf\u4fe1\u606f",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "decbytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 24,
+ "x": 0,
+ "y": 41
+ },
+ "id": 16,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_worker_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"inBytes\"}",
+ "interval": "35",
+ "legendFormat": "{{pid}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_nginx_main_metrics{exported_instance=\"$instance\", masterPid=\"$masterPid\", value=\"outBytes\"}",
+ "hide": false,
+ "interval": "35",
+ "legendFormat": "{{pid}}",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "nginx\u8fdb\u7a0b\u7f51\u7edc\u6d41\u91cf",
+ "type": "timeseries"
+ }
+ ],
+ "refresh": "30s",
+ "schemaVersion": 37,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "current": {
+ "selected": false,
+ "text": "192.168.0.77",
+ "value": "192.168.0.77"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_nginx_main_metrics, exported_instance)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "instance",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_nginx_main_metrics, exported_instance)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "809",
+ "value": "809"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_nginx_main_metrics, masterPid)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "masterPid",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_nginx_main_metrics, masterPid)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ }
+ ]
+ },
+ "time": {
+ "from": "now-30m",
+ "to": "now"
+ },
+ "timepicker": {},
+ "timezone": "",
+ "title": "nginx",
+ "uid": "6Mztrm4Ik",
+ "version": 86,
+ "weekStart": ""
+ }
+}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-appobserver-nginx-events-dashboard.json b/deps/4_grafana/sysom-appobserver-nginx-events-dashboard.json
new file mode 100644
index 0000000000000000000000000000000000000000..9e083221491aa738d58bb18fa2a06f080798f72f
--- /dev/null
+++ b/deps/4_grafana/sysom-appobserver-nginx-events-dashboard.json
@@ -0,0 +1,452 @@
+{
+ "dashboard": {
+ "annotations": {
+ "list": [
+ {
+ "builtIn": 1,
+ "datasource": {
+ "type": "grafana",
+ "uid": "-- Grafana --"
+ },
+ "enable": true,
+ "hide": true,
+ "iconColor": "rgba(0, 211, 255, 1)",
+ "name": "Annotations & Alerts",
+ "target": {
+ "limit": 100,
+ "matchAny": false,
+ "tags": [],
+ "type": "dashboard"
+ },
+ "type": "dashboard"
+ }
+ ]
+ },
+ "editable": false,
+ "fiscalYearStartMonth": 0,
+ "graphTooltip": 0,
+ "id": null,
+ "links": [],
+ "liveNow": false,
+ "panels": [
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 0
+ },
+ "id": 2,
+ "panels": [],
+ "title": "\u5f02\u5e38\u4e8b\u4ef6\u8be6\u60c5",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "description": "nginx http\u5f02\u5e38\u8bf7\u6c42\u8be6\u60c5",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red"
+ }
+ ]
+ },
+ "unit": "\u00b5s"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "ts"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "time"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "labels"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "instance"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "masterPid"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "diagId"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "status"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "string"
+ },
+ {
+ "id": "custom.width",
+ "value": 166
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "requestTime"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "ms"
+ },
+ {
+ "id": "custom.width",
+ "value": 158
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "upstreamResponseTime"
+ },
+ "properties": [
+ {
+ "id": "unit",
+ "value": "ms"
+ },
+ {
+ "id": "custom.width",
+ "value": 241
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "upstreamAddr"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 191
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u65f6\u95f4"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 190
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "remoteAddr"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 173
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "request"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 287
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "reason"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 259
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app_diag"
+ },
+ "properties": [
+ {
+ "id": "displayName",
+ "value": "applicationDiagnosis"
+ },
+ {
+ "id": "custom.displayMode",
+ "value": "color-text"
+ },
+ {
+ "id": "links",
+ "value": [
+ {
+ "targetBlank": true,
+ "title": "",
+ "url": "http://sysom_test.qjm253.cn/diagnose/link/procdiag?instance=${instance}&ipport=${__data.fields.upstreamAddr}&time=30"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "diag"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "applicationDiagnosis"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 243
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "time"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 272
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 12,
+ "w": 24,
+ "x": 0,
+ "y": 1
+ },
+ "id": 6,
+ "options": {
+ "footer": {
+ "enablePagination": true,
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": []
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "expr": "",
+ "format": "table",
+ "legendFormat": "__auto",
+ "range": true,
+ "rawQuery": true,
+ "rawSql": "SELECT labels, instance,\n CASE \n WHEN JSON_EXTRACT(labels, '$.diag') = 'true'\n THEN '\u5e94\u7528\u6296\u52a8\u8bca\u65ad'\n ELSE '\u65e0'\n END AS app_diag\nFROM sysom.sys_alert_data\nWHERE instance = \"$instance\" AND JSON_EXTRACT(labels, '$.masterPid') = \"$masterPid\" AND UNIX_TIMESTAMP(created_at) > $__from / 1000 AND UNIX_TIMESTAMP(created_at) < $__to / 1000\nORDER BY alert_time DESC LIMIT 20\n",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "\u5f02\u5e38\u8bf7\u6c42\u8be6\u60c5",
+ "transformations": [
+ {
+ "id": "extractFields",
+ "options": {
+ "source": "labels"
+ }
+ },
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {},
+ "indexByName": {
+ "app_diag": 13,
+ "diag": 12,
+ "diagId": 9,
+ "instance": 1,
+ "labels": 0,
+ "masterPid": 8,
+ "reason": 11,
+ "remoteAddr": 3,
+ "request": 5,
+ "requestTime": 6,
+ "status": 10,
+ "ts": 2,
+ "upstreamAddr": 4,
+ "upstreamResponseTime": 7
+ },
+ "renameByName": {}
+ }
+ }
+ ],
+ "type": "table"
+ }
+ ],
+ "refresh": "30s",
+ "schemaVersion": 37,
+ "style": "dark",
+ "tags": [],
+ "templating": {
+ "list": [
+ {
+ "current": {
+ "selected": false,
+ "text": "192.168.0.77",
+ "value": "192.168.0.77"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_nginx_main_metrics, exported_instance)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "instance",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_nginx_main_metrics, exported_instance)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
+ {
+ "current": {
+ "selected": false,
+ "text": "809",
+ "value": "809"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_nginx_main_metrics, masterPid)",
+ "hide": 0,
+ "includeAll": false,
+ "multi": false,
+ "name": "masterPid",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_nginx_main_metrics, masterPid)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ }
+ ]
+ },
+ "time": {
+ "from": "now-30m",
+ "to": "now"
+ },
+ "timepicker": {},
+ "timezone": "",
+ "title": "nginx-event",
+ "uid": "HtuWUeSSz",
+ "version": 25,
+ "weekStart": ""
+ }
+}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-appobserver-process-dashboard.json b/deps/4_grafana/sysom-appobserver-process-dashboard.json
index 90e5718371fa9edb10f6d1a23f834eebddf595a4..d50b5840229c82524597d9663d1ae59c5c45a9a3 100644
--- a/deps/4_grafana/sysom-appobserver-process-dashboard.json
+++ b/deps/4_grafana/sysom-appobserver-process-dashboard.json
@@ -442,7 +442,7 @@
"refId": "B"
}
],
- "title": "cpu占用率",
+ "title": "cpu占比",
"type": "piechart"
},
{
diff --git a/deps/4_grafana/sysom-cluster-dashboard.json b/deps/4_grafana/sysom-cluster-dashboard.json
index 644ad2b4f35b6ffc4c203d653728ce7d48d65b5a..07f78cb16ee0fb57817f37be3175109065c72086 100644
--- a/deps/4_grafana/sysom-cluster-dashboard.json
+++ b/deps/4_grafana/sysom-cluster-dashboard.json
@@ -34,13 +34,14 @@
"x": 0,
"y": 0
},
- "id": 60,
+ "id": 74,
"panels": [],
- "title": "集群资源概览",
+ "title": "\u96c6\u7fa4\u5065\u5eb7\u5ea6\u6982\u89c8",
"type": "row"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -48,15 +49,27 @@
},
"mappings": [],
"thresholds": {
- "mode": "absolute",
+ "mode": "percentage",
"steps": [
{
- "color": "blue",
+ "color": "text",
"value": null
},
{
- "color": "red",
- "value": 1000
+ "color": "#E24D42",
+ "value": 0
+ },
+ {
+ "color": "#EF843C",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "dark-green",
+ "value": 100
}
]
}
@@ -64,17 +77,15 @@
"overrides": []
},
"gridPos": {
- "h": 7,
- "w": 4,
+ "h": 5,
+ "w": 5,
"x": 0,
"y": 1
},
- "id": 4,
+ "id": 76,
+ "interval": "30s",
"options": {
- "colorMode": "background",
- "graphMode": "none",
- "justifyMode": "auto",
- "orientation": "horizontal",
+ "orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -82,179 +93,86 @@
"fields": "",
"values": false
},
- "textMode": "value_and_name"
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": true,
- "expr": "count(sysom_proc_cpus{mode=\"nice\"})",
- "interval": "",
- "legendFormat": "cores",
+ "expr": "sysom_cluster_health_score{cluster=~\"$cluster\",type=\"total\"}",
+ "legendFormat": "{{exported_instance}}",
"range": true,
"refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "count(sysom_proc_cpu_total{mode=\"nice\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "nodes",
- "range": true,
- "refId": "B"
}
],
- "title": "集群总CPU核数/节点数",
- "type": "stat"
+ "title": "Cluster Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
+ "mode": "thresholds"
},
- "mappings": []
- },
- "overrides": [
- {
- "__systemRef": "hideSeriesFrom",
- "matcher": {
- "id": "byNames",
+ "decimals": 0,
+ "mappings": [
+ {
"options": {
- "mode": "exclude",
- "names": [
- "sum(sysak_proc_cpu_total{mode=\"user\"})",
- "sum(sysak_proc_cpu_total{mode=\"nice\"})",
- "sum(sysak_proc_cpu_total{mode=\"sys\"})",
- "sum(sysak_proc_cpu_total{mode=\"softirq\"})",
- "sum(sysak_proc_cpu_total{mode=\"iowait\"})",
- "iowait",
- "user",
- "sys",
- "softirq",
- "idle"
- ],
- "prefix": "All except:",
- "readOnly": true
- }
- },
- "properties": [
- {
- "id": "custom.hideFrom",
- "value": {
- "legend": false,
- "tooltip": false,
- "viz": true
+ "match": "null",
+ "result": {
+ "text": "N/A"
}
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "idle"
- },
- "properties": [
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "color",
- "value": {
- "fixedColor": "super-light-green",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "user"
- },
- "properties": [
+ "color": "text",
+ "value": null
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "sys"
- },
- "properties": [
+ "color": "semi-dark-red",
+ "value": 0
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "red",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "softirq"
- },
- "properties": [
+ "color": "orange",
+ "value": 60
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-purple",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "iowait"
- },
- "properties": [
+ "color": "dark-yellow",
+ "value": 80
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-blue",
- "mode": "fixed"
- }
+ "color": "green",
+ "value": 100
}
]
- }
- ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
},
"gridPos": {
- "h": 7,
- "w": 8,
- "x": 4,
+ "h": 5,
+ "w": 5,
+ "x": 5,
"y": 1
},
- "id": 41,
+ "id": 78,
+ "interval": "30s",
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "legend": {
- "displayMode": "list",
- "placement": "right",
- "showLegend": true,
- "values": [
- "percent"
- ]
- },
- "pieType": "pie",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -262,70 +180,27 @@
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
- "pluginVersion": "8.3.1",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_cpu_total{mode=\"user\"} + on(instance)sysom_proc_cpu_total{mode=\"nice\"})",
- "interval": "",
- "legendFormat": "user",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_cpu_total{mode=\"sys\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "sys",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_cpu_total{mode=\"softirq\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "softirq",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_cpu_total{mode=\"iowait\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "iowait",
- "range": true,
- "refId": "E"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_cpu_total{mode=\"idle\"})",
+ "expr": "sysom_cluster_health_score{cluster=~\"$cluster\", type=\"error\"}",
+ "format": "time_series",
"hide": false,
+ "instant": false,
"interval": "",
- "legendFormat": "idle",
- "range": true,
- "refId": "F"
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "title": "集群CPU利用率分布",
- "type": "piechart"
+ "title": "Errors Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -333,157 +208,63 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
}
- },
- "mappings": []
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "idle"
- },
- "properties": [
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "color",
- "value": {
- "fixedColor": "super-light-green",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "user"
- },
- "properties": [
+ "color": "blue",
+ "value": null
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "sys"
- },
- "properties": [
+ "color": "red",
+ "value": 0
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "red",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "softirq"
- },
- "properties": [
+ "color": "#EAB839",
+ "value": 60
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-purple",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "iowait"
- },
- "properties": [
+ "color": "orange",
+ "value": 80
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "dark-blue",
- "mode": "fixed"
- }
+ "color": "green",
+ "value": 100
}
]
},
- {
- "__systemRef": "hideSeriesFrom",
- "matcher": {
- "id": "byNames",
- "options": {
- "mode": "exclude",
- "names": [
- "sum(sysak_proc_cpu_total{mode=\"user\"})",
- "sum(sysak_proc_cpu_total{mode=\"nice\"})",
- "sum(sysak_proc_cpu_total{mode=\"sys\"})",
- "sum(sysak_proc_cpu_total{mode=\"softirq\"})",
- "sum(sysak_proc_cpu_total{mode=\"iowait\"})",
- "iowait",
- "user",
- "sys",
- "softirq",
- "idle",
- "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.67:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
- "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.68:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
- "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.69:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
- "sum(sysak_proc_meminfo{value=\"kernel_reserved\"})",
- "user_used",
- "kernel_reserved",
- "free",
- "app_used",
- "kernel_used",
- "app",
- "reserved",
- "kernel"
- ],
- "prefix": "All except:",
- "readOnly": true
- }
- },
- "properties": [
- {
- "id": "custom.hideFrom",
- "value": {
- "legend": false,
- "tooltip": false,
- "viz": true
- }
- }
- ]
- }
- ]
+ "unit": "none"
+ },
+ "overrides": []
},
"gridPos": {
- "h": 7,
- "w": 7,
- "x": 12,
+ "h": 5,
+ "w": 5,
+ "x": 10,
"y": 1
},
- "id": 15,
+ "id": 80,
+ "interval": "30s",
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "legend": {
- "displayMode": "list",
- "placement": "right",
- "showLegend": true,
- "values": [
- "percent"
- ]
- },
- "pieType": "pie",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -491,68 +272,142 @@
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
- "pluginVersion": "8.3.1",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_meminfo{value=\"kernel_reserved\"})",
- "interval": "",
- "legendFormat": "reserved",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_meminfo{value=\"user_used\"})",
+ "expr": "sysom_cluster_health_score{cluster=~\"$cluster\", type=\"latency\"}",
+ "format": "time_series",
"hide": false,
+ "instant": false,
"interval": "",
- "legendFormat": "app",
- "range": true,
- "refId": "B"
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "title": "Latency Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "semi-dark-red",
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "dark-yellow",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
+ },
+ "unit": "none"
},
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_meminfo{value=\"MemFree\"})",
- "hide": false,
- "interval": "",
- "legendFormat": "free",
- "range": true,
- "refId": "C"
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 5,
+ "x": 15,
+ "y": 1
+ },
+ "id": 82,
+ "interval": "30s",
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
},
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_meminfo{value=\"kernel_used\"} - on(instance)sysom_proc_meminfo{value=\"kernel_reserved\"})",
+ "expr": "sysom_cluster_health_score{cluster=~\"$cluster\", type=\"capacity\"}",
+ "format": "time_series",
"hide": false,
+ "instant": false,
"interval": "",
- "legendFormat": "kernel",
- "range": true,
- "refId": "D"
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "title": "集群内存使用分布",
- "type": "piechart"
+ "title": "Saturation Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
- "mappings": [],
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -562,26 +417,38 @@
},
{
"color": "red",
- "value": 1000000000000
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
}
]
},
- "unit": "bytes"
+ "unit": "none"
},
"overrides": []
},
"gridPos": {
- "h": 7,
- "w": 5,
- "x": 19,
+ "h": 5,
+ "w": 4,
+ "x": 20,
"y": 1
},
- "id": 17,
+ "id": 84,
+ "interval": "30s",
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "colorMode": "value",
- "graphMode": "area",
- "justifyMode": "auto",
- "orientation": "auto",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -589,109 +456,525 @@
"fields": "",
"values": false
},
- "textMode": "auto"
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": true,
- "expr": "sum(sysom_proc_meminfo{value=\"MemTotal\"} * 1024)",
+ "expr": "sysom_cluster_health_score{cluster=~\"$cluster\",type=\"load\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
"interval": "",
+ "intervalFactor": 1,
"legendFormat": "",
- "range": true,
- "refId": "A"
+ "refId": "A",
+ "step": 20
}
],
- "title": "集群内存总量",
- "type": "stat"
+ "title": "Load(Traffic) Health",
+ "type": "gauge"
},
{
- "datasource": "sysom-prometheus",
- "description": "",
+ "datasource": "sysom-mysql",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u5f97\u5206"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ {
+ "id": "custom.width",
+ "value": 274
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u5f02\u5e38\u6307\u6807"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 199
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 229
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u7c7b\u522b"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 120
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 10,
+ "x": 0,
+ "y": 6
+ },
+ "id": 94,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\nmetric_type,\nvalue\nFROM sysom.sys_abnormal_metrics_node\nWHERE cluster = '$cluster'\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Nodes Overview",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "metric_type": 2,
+ "score": 3,
+ "value": 4
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "metric_type": "\u6307\u6807\u7c7b\u522b",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206",
+ "value": "\u6307\u6807\u503c"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
},
"custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
},
- "mappings": []
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "ratelimit callbacks suppressed"
+ "options": "\u6307\u6807\u5f97\u5206"
},
"properties": [
{
- "id": "color",
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
"value": {
- "fixedColor": "super-light-purple",
- "mode": "fixed"
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
}
+ },
+ {
+ "id": "custom.width",
+ "value": 144
}
]
},
{
"matcher": {
"id": "byName",
- "options": "异常节点"
+ "options": "\u5f02\u5e38\u6307\u6807"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "orange",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 199
}
]
},
{
"matcher": {
"id": "byName",
- "options": "正常节点"
+ "options": "node"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 229
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u7c7b\u522b"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 120
}
]
}
]
},
+ "gridPos": {
+ "h": 9,
+ "w": 14,
+ "x": 10,
+ "y": 6
+ },
+ "id": 95,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": true,
+ "displayName": "pod"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\npod,\nnamespace,\nmetric_type,\nvalue\nFROM sysom.sys_abnormal_metrics_pod\nWHERE cluster = '$cluster'\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Pods Overview",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": false,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "metric_type": 4,
+ "namespace": 3,
+ "pod": 2,
+ "score": 5,
+ "value": 6
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "metric_type": "\u6307\u6807\u7c7b\u522b",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206",
+ "value": "\u6307\u6807\u503c"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 15
+ },
+ "id": 60,
+ "panels": [],
+ "title": "\u96c6\u7fa4\u8d44\u6e90\u6982\u89c8",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 1000
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
"gridPos": {
"h": 7,
- "w": 6,
+ "w": 4,
"x": 0,
- "y": 8
+ "y": 16
},
- "id": 67,
+ "id": 4,
"options": {
- "displayLabels": [
- "value"
- ],
- "legend": {
- "displayMode": "list",
- "placement": "right",
- "showLegend": true,
- "values": [
- "percent"
- ]
- },
- "pieType": "pie",
+ "colorMode": "background",
+ "graphMode": "none",
+ "justifyMode": "auto",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -699,10 +982,7 @@
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "textMode": "value_and_name"
},
"pluginVersion": "9.2.2",
"targets": [
@@ -710,31 +990,29 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "count(sysom_net_tcp_count{value=\"RetransSegs\"}/on(instance)sysom_net_tcp_count{value=\"OutSegs\"}+0.00001>0.005 or topk(1,sysom_net_tcp_count{value=\"RetransSegs\"}))-1",
- "hide": false,
+ "expr": "count(sysom_proc_cpus{mode=\"nice\"})",
"interval": "",
- "legendFormat": "异常节点",
+ "legendFormat": "cores",
"range": true,
- "refId": "F"
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "count(sysom_proc_meminfo{value=\"kernel_used\"}) - count(sysom_net_tcp_count{value=\"RetransSegs\"}/on(instance)sysom_net_tcp_count{value=\"OutSegs\"}+0.00001>0.005 or topk(1,sysom_net_tcp_count{value=\"RetransSegs\"})) + 1",
+ "expr": "count(sysom_proc_cpu_total{mode=\"nice\"})",
"hide": false,
"interval": "",
- "legendFormat": "正常节点",
+ "legendFormat": "nodes",
"range": true,
"refId": "B"
}
],
- "title": "集群网络健康度",
- "type": "piechart"
+ "title": "\u96c6\u7fa4\u603bCPU\u6838\u6570/\u8282\u70b9\u6570",
+ "type": "stat"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -751,16 +1029,34 @@
},
"overrides": [
{
+ "__systemRef": "hideSeriesFrom",
"matcher": {
- "id": "byName",
- "options": "ratelimit callbacks suppressed"
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "sum(sysak_proc_cpu_total{mode=\"user\"})",
+ "sum(sysak_proc_cpu_total{mode=\"nice\"})",
+ "sum(sysak_proc_cpu_total{mode=\"sys\"})",
+ "sum(sysak_proc_cpu_total{mode=\"softirq\"})",
+ "sum(sysak_proc_cpu_total{mode=\"iowait\"})",
+ "iowait",
+ "user",
+ "sys",
+ "softirq",
+ "idle"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
},
"properties": [
{
- "id": "color",
+ "id": "custom.hideFrom",
"value": {
- "fixedColor": "super-light-purple",
- "mode": "fixed"
+ "legend": false,
+ "tooltip": false,
+ "viz": true
}
}
]
@@ -768,13 +1064,13 @@
{
"matcher": {
"id": "byName",
- "options": "正常节点"
+ "options": "idle"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "green",
+ "fixedColor": "super-light-green",
"mode": "fixed"
}
}
@@ -783,108 +1079,28 @@
{
"matcher": {
"id": "byName",
- "options": "异常节点"
+ "options": "user"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "orange",
+ "fixedColor": "dark-yellow",
"mode": "fixed"
}
}
]
- }
- ]
- },
- "gridPos": {
- "h": 7,
- "w": 6,
- "x": 6,
- "y": 8
- },
- "id": 56,
- "options": {
- "displayLabels": [
- "value"
- ],
- "legend": {
- "displayMode": "list",
- "placement": "right",
- "showLegend": true,
- "values": [
- "percent"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
- "calcs": [
- "lastNotNull"
- ],
- "fields": "",
- "values": false
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "count((sysom_proc_meminfo{value=\"kernel_used\"} > on(instance)(0.3*sysom_proc_meminfo{value=\"total\"})) or (sum(rate(sysom_cg_memgdrcm_latency{value=\"memDrcm_glb_lat_total\"}[$__rate_interval])) > 0) or (topk(1,sysom_net_tcp_count{value=\"RetransSegs\"}))) - 1",
- "hide": false,
- "interval": "",
- "legendFormat": "异常节点",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": true,
- "expr": "count(sysom_proc_meminfo{value=\"kernel_used\"}) - count((sysom_proc_meminfo{value=\"kernel_used\"} > on(instance)(0.3*sysom_proc_meminfo{value=\"total\"})) or (sum(rate(sysom_cg_memgdrcm_latency{value=\"memDrcm_glb_lat_total\"}[$__rate_interval])) > 0) or (topk(1,sysom_net_tcp_count{value=\"RetransSegs\"}))) + 1",
- "hide": false,
- "interval": "",
- "legendFormat": "正常节点",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "集群内存健康度",
- "type": "piechart"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
},
- "mappings": []
- },
- "overrides": [
{
"matcher": {
"id": "byName",
- "options": "ratelimit callbacks suppressed"
+ "options": "sys"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "super-light-purple",
+ "fixedColor": "red",
"mode": "fixed"
}
}
@@ -893,13 +1109,13 @@
{
"matcher": {
"id": "byName",
- "options": "异常节点"
+ "options": "softirq"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "orange",
+ "fixedColor": "dark-purple",
"mode": "fixed"
}
}
@@ -908,13 +1124,13 @@
{
"matcher": {
"id": "byName",
- "options": "正常节点"
+ "options": "iowait"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "green",
+ "fixedColor": "dark-blue",
"mode": "fixed"
}
}
@@ -924,15 +1140,12 @@
},
"gridPos": {
"h": 7,
- "w": 6,
- "x": 12,
- "y": 8
+ "w": 8,
+ "x": 4,
+ "y": 16
},
- "id": 69,
+ "id": 41,
"options": {
- "displayLabels": [
- "value"
- ],
"legend": {
"displayMode": "list",
"placement": "right",
@@ -954,34 +1167,69 @@
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "8.3.1",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "count(sysom_proc_cpu_total{mode=\"sys\"}>45) or count(max(rate(sysom_proc_schedstat{value=\"delay\"}[$__rate_interval]))by(instance) > 200000000) or count(topk(1, sysom_proc_cpu_total{mode=\"idle\"}))-1",
+ "expr": "sum(sysom_proc_cpu_total{mode=\"user\"} + on(instance)sysom_proc_cpu_total{mode=\"nice\"})",
+ "interval": "",
+ "legendFormat": "user",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_cpu_total{mode=\"sys\"})",
"hide": false,
"interval": "",
- "legendFormat": "异常节点",
+ "legendFormat": "sys",
"range": true,
- "refId": "B"
+ "refId": "C"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "count(sysom_proc_cpu_total{mode=\"sys\"})-(count(sysom_proc_cpu_total{mode=\"sys\"}>45) or count(max(rate(sysom_proc_schedstat{value=\"delay\"}[$__rate_interval]))by(instance) > 200000000) or count(topk(1, sysom_proc_cpu_total{mode=\"idle\"}))-1)",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_cpu_total{mode=\"softirq\"})",
"hide": false,
- "legendFormat": "正常节点",
+ "interval": "",
+ "legendFormat": "softirq",
"range": true,
- "refId": "A"
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_cpu_total{mode=\"iowait\"})",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "iowait",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_cpu_total{mode=\"idle\"})",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "idle",
+ "range": true,
+ "refId": "F"
}
],
- "title": "集群CPU健康度",
+ "title": "\u96c6\u7fa4CPU\u5229\u7528\u7387\u5206\u5e03",
"type": "piechart"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -1030,13 +1278,28 @@
{
"matcher": {
"id": "byName",
- "options": "正常节点"
+ "options": "sys"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "red",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "softirq"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "green",
+ "fixedColor": "dark-purple",
"mode": "fixed"
}
}
@@ -1045,31 +1308,73 @@
{
"matcher": {
"id": "byName",
- "options": "异常节点"
+ "options": "iowait"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "orange",
+ "fixedColor": "dark-blue",
"mode": "fixed"
}
}
]
+ },
+ {
+ "__systemRef": "hideSeriesFrom",
+ "matcher": {
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "sum(sysak_proc_cpu_total{mode=\"user\"})",
+ "sum(sysak_proc_cpu_total{mode=\"nice\"})",
+ "sum(sysak_proc_cpu_total{mode=\"sys\"})",
+ "sum(sysak_proc_cpu_total{mode=\"softirq\"})",
+ "sum(sysak_proc_cpu_total{mode=\"iowait\"})",
+ "iowait",
+ "user",
+ "sys",
+ "softirq",
+ "idle",
+ "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.67:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
+ "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.68:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
+ "sysak_proc_meminfo{exported_instance=\"i-2ze2py754b42by09ig1n\", instance=\"192.168.57.69:32760\", job=\"cluster1\", value=\"kernel_reserved\"}",
+ "sum(sysak_proc_meminfo{value=\"kernel_reserved\"})",
+ "user_used",
+ "kernel_reserved",
+ "free",
+ "app_used",
+ "kernel_used",
+ "app",
+ "reserved",
+ "kernel"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
+ },
+ "properties": [
+ {
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": false,
+ "viz": true
+ }
+ }
+ ]
}
]
},
"gridPos": {
"h": 7,
- "w": 6,
- "x": 18,
- "y": 8
+ "w": 7,
+ "x": 12,
+ "y": 16
},
- "id": 66,
+ "id": 15,
"options": {
- "displayLabels": [
- "value"
- ],
"legend": {
"displayMode": "list",
"placement": "right",
@@ -1097,9 +1402,9 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "count(sysom_net_tcp_count{value=\"RetransSegs\"}/on(instance)sysom_net_tcp_count{value=\"OutSegs\"}+0.00001>0.005 or topk(1,sysom_net_tcp_count{value=\"RetransSegs\"}))-1",
+ "expr": "sum(sysom_proc_meminfo{value=\"kernel_reserved\"})",
"interval": "",
- "legendFormat": "异常节点",
+ "legendFormat": "reserved",
"range": true,
"refId": "A"
},
@@ -1107,17 +1412,101 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "count(sysom_proc_meminfo{value=\"kernel_used\"}) - count(sysom_net_tcp_count{value=\"RetransSegs\"}/on(instance)sysom_net_tcp_count{value=\"OutSegs\"}+0.00001>0.005 or topk(1,sysom_net_tcp_count{value=\"RetransSegs\"})) + 1",
+ "expr": "sum(sysom_proc_meminfo{value=\"user_used\"})",
"hide": false,
"interval": "",
- "legendFormat": "正常节点",
+ "legendFormat": "app",
"range": true,
- "refId": "F"
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_meminfo{value=\"MemFree\"})",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "free",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_meminfo{value=\"kernel_used\"} - on(instance)sysom_proc_meminfo{value=\"kernel_reserved\"})",
+ "hide": false,
+ "interval": "",
+ "legendFormat": "kernel",
+ "range": true,
+ "refId": "D"
}
],
- "title": "集群存储健康度",
+ "title": "\u96c6\u7fa4\u5185\u5b58\u4f7f\u7528\u5206\u5e03",
"type": "piechart"
},
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 1000000000000
+ }
+ ]
+ },
+ "unit": "bytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 7,
+ "w": 5,
+ "x": 19,
+ "y": 16
+ },
+ "id": 17,
+ "options": {
+ "colorMode": "value",
+ "graphMode": "area",
+ "justifyMode": "auto",
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "textMode": "auto"
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": true,
+ "expr": "sum(sysom_proc_meminfo{value=\"MemTotal\"} * 1024)",
+ "interval": "",
+ "legendFormat": "",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "\u96c6\u7fa4\u5185\u5b58\u603b\u91cf",
+ "type": "stat"
+ },
{
"datasource": "sysom-prometheus",
"description": "",
@@ -1159,8 +1548,8 @@
"links": [
{
"targetBlank": true,
- "title": "内存异常诊断中心",
- "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}&time=${__data.fields.Time}&diagnosis_type=内存延时诊断"
+ "title": "\u5185\u5b58\u5f02\u5e38\u8bca\u65ad\u4e2d\u5fc3",
+ "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}\ufeff\ufeff\ufeff&time=\ufeff\ufeff\ufeff${__data.fields.Time}\ufeff\ufeff\ufeff&diagnosis_type=\u5185\u5b58\u5ef6\u65f6\u8bca\u65ad"
}
],
"mappings": [],
@@ -1213,7 +1602,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 15
+ "y": 23
},
"id": 61,
"options": {
@@ -1237,7 +1626,7 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "sum(rate(sysom_container_memgdrcm_latency{pod!=\"\", value=\"memDrcm_glb_lat_total\"}[$__rate_interval])) by (instance)",
+ "expr": "sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_1000ms\"}[$__rate_interval])) by (instance) + sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_10to100ms\"}[$__rate_interval])) by (instance) + sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_500to1000ms\"}[$__rate_interval])) by (instance)",
"hide": false,
"interval": "",
"legendFormat": "{{instance}}",
@@ -1245,7 +1634,7 @@
"refId": "B"
}
],
- "title": "节点内存延时诊断",
+ "title": "\u8282\u70b9\u5185\u5b58\u5ef6\u65f6\u8bca\u65ad",
"type": "timeseries"
},
{
@@ -1289,8 +1678,8 @@
"links": [
{
"targetBlank": true,
- "title": "集群内存诊断中心",
- "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}&pod_name=${__field.labels.podname}&time=${__data.fields.Time}&diagnosis_type=内存延时诊断"
+ "title": "\u96c6\u7fa4\u5185\u5b58\u8bca\u65ad\u4e2d\u5fc3",
+ "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}&pod_name=${__field.labels.podname}&time=${__data.fields.Time}&diagnosis_type=\u5185\u5b58\u5ef6\u65f6\u8bca\u65ad"
}
],
"mappings": [],
@@ -1343,7 +1732,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 15
+ "y": 23
},
"id": 62,
"interval": "30s",
@@ -1368,20 +1757,15 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": true,
- "expr": "sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_total\"}[$__rate_interval])) by (pod, instance)\n#+on(podname)sysom_cg_memgdrcm_latency{value=\"memDrcm_glb_lat_total\"}",
+ "expr": "sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_10to100ms\"}[$__rate_interval])) by (pod, instance) + sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_100to500ms\"}[$__rate_interval])) by (pod, instance) + sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_500to1000ms\"}[$__rate_interval])) by (pod, instance) + sum(rate(sysom_container_memdrcm_latency{pod!=\"\", value=\"memDrcm_lat_1000ms\"}[$__rate_interval])) by (pod, instance)",
"hide": false,
"interval": "",
"legendFormat": "{{pod}}",
"range": true,
"refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "hide": false,
- "refId": "C"
}
],
- "title": "容器内存延时诊断",
+ "title": "\u5bb9\u5668\u5185\u5b58\u5ef6\u65f6\u8bca\u65ad",
"type": "timeseries"
},
{
@@ -1424,8 +1808,8 @@
"links": [
{
"targetBlank": true,
- "title": "内存异常诊断中心",
- "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}&time=${__data.fields.Time}&diagnosis_type=内存高诊断"
+ "title": "\u5185\u5b58\u5f02\u5e38\u8bca\u65ad\u4e2d\u5fc3",
+ "url": "../diagnose/memory/clustermem?instance=${__field.labels.instance}\ufeff\ufeff\ufeff&time=\ufeff\ufeff\ufeff${__data.fields.Time}\ufeff\ufeff\ufeff&diagnosis_type=\u5185\u5b58\u9ad8\u8bca\u65ad"
}
],
"mappings": [],
@@ -1455,10 +1839,10 @@
"overrides": []
},
"gridPos": {
- "h": 9,
+ "h": 8,
"w": 12,
"x": 0,
- "y": 23
+ "y": 31
},
"id": 72,
"options": {
@@ -1487,7 +1871,7 @@
"refId": "A"
}
],
- "title": "节点内存使用率诊断",
+ "title": "\u8282\u70b9\u5185\u5b58\u4f7f\u7528\u7387\u8bca\u65ad",
"type": "timeseries"
},
{
@@ -1528,7 +1912,13 @@
"mode": "area"
}
},
- "links": [],
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "CPU\u4e89\u62a2\u8bca\u65ad\u4e2d\u5fc3",
+ "url": "../diagnose/cpu/cpuhigh?instance=${__field.labels.instance}&moment=${__data.fields.Time}"
+ }
+ ],
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -1579,7 +1969,7 @@
"h": 9,
"w": 12,
"x": 12,
- "y": 23
+ "y": 31
},
"id": 8,
"options": {
@@ -1611,12 +2001,12 @@
"refId": "B"
}
],
- "title": "节点CPU利用率诊断",
+ "title": "\u8282\u70b9CPU\u5229\u7528\u7387\u8bca\u65ad",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "各个节点的CPU延时诊断",
+ "description": "\u5404\u4e2a\u8282\u70b9\u7684CPU\u5ef6\u65f6\u8bca\u65ad",
"fieldConfig": {
"defaults": {
"color": {
@@ -1652,7 +2042,13 @@
"mode": "off"
}
},
- "links": [],
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "cpu\u4e89\u62a2\u8bca\u65ad\u4e2d\u5fc3",
+ "url": "../diagnose/cpu/cpuhigh?instance=${__field.labels.instance}&moment=${__data.fields.Time}"
+ }
+ ],
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -1675,7 +2071,7 @@
"h": 9,
"w": 12,
"x": 0,
- "y": 32
+ "y": 39
},
"id": 45,
"options": {
@@ -1707,7 +2103,7 @@
"refId": "A"
}
],
- "title": "节点CPU延时诊断",
+ "title": "\u8282\u70b9CPU\u5ef6\u65f6\u8bca\u65ad",
"type": "timeseries"
},
{
@@ -1716,11 +2112,11 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 41
+ "y": 48
},
"id": 58,
"panels": [],
- "title": "集群资源详情",
+ "title": "\u96c6\u7fa4\u8d44\u6e90\u8be6\u60c5",
"type": "row"
},
{
@@ -1763,7 +2159,13 @@
"mode": "line+area"
}
},
- "links": [],
+ "links": [
+ {
+ "targetBlank": true,
+ "title": "node cpu",
+ "url": "http://100.82.241.245:3000/d/rYdddlPWk/sysak_base?orgId=1&from=1685030400000&to=1685033999000"
+ }
+ ],
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -1819,7 +2221,7 @@
"h": 9,
"w": 12,
"x": 0,
- "y": 42
+ "y": 49
},
"id": 9,
"options": {
@@ -1850,7 +2252,7 @@
"refId": "A"
}
],
- "title": "集群平均 CPU利用率",
+ "title": "\u96c6\u7fa4\u5e73\u5747 CPU\u5229\u7528\u7387",
"type": "timeseries"
},
{
@@ -1911,7 +2313,7 @@
"h": 9,
"w": 12,
"x": 12,
- "y": 42
+ "y": 49
},
"id": 48,
"options": {
@@ -1938,7 +2340,7 @@
"refId": "A"
}
],
- "title": "集群平均内存使用率",
+ "title": "\u96c6\u7fa4\u5e73\u5747\u5185\u5b58\u4f7f\u7528\u7387",
"type": "timeseries"
},
{
@@ -1999,7 +2401,7 @@
"h": 9,
"w": 12,
"x": 0,
- "y": 51
+ "y": 58
},
"id": 7,
"options": {
@@ -2074,12 +2476,12 @@
"refId": "E"
}
],
- "title": "集群平均CPU利用率分布情况",
+ "title": "\u96c6\u7fa4\u5e73\u5747CPU\u5229\u7528\u7387\u5206\u5e03\u60c5\u51b5",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "集群所有节点总内存使用情况",
+ "description": "\u96c6\u7fa4\u6240\u6709\u8282\u70b9\u603b\u5185\u5b58\u4f7f\u7528\u60c5\u51b5",
"fieldConfig": {
"defaults": {
"color": {
@@ -2137,7 +2539,7 @@
"h": 9,
"w": 12,
"x": 12,
- "y": 51
+ "y": 58
},
"id": 31,
"options": {
@@ -2202,7 +2604,7 @@
"refId": "D"
}
],
- "title": "总内存使用情况",
+ "title": "\u603b\u5185\u5b58\u4f7f\u7528\u60c5\u51b5",
"type": "timeseries"
},
{
@@ -2280,7 +2682,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 60
+ "y": 67
},
"id": 70,
"options": {
@@ -2305,12 +2707,12 @@
"editorMode": "code",
"expr": "sum(rate(sysom_proc_schedstat{value=\"delay\"}[$__rate_interval])) / count(sysom_proc_schedstat{value=\"delay\"})",
"hide": false,
- "legendFormat": "调度延迟",
+ "legendFormat": "\u8c03\u5ea6\u5ef6\u8fdf",
"range": true,
"refId": "B"
}
],
- "title": "集群平均调度延迟",
+ "title": "\u96c6\u7fa4\u5e73\u5747\u8c03\u5ea6\u5ef6\u8fdf",
"type": "timeseries"
},
{
@@ -2372,7 +2774,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 60
+ "y": 67
},
"id": 33,
"options": {
@@ -2465,7 +2867,7 @@
"refId": "G"
}
],
- "title": "集群用户态内存使用情况",
+ "title": "\u96c6\u7fa4\u7528\u6237\u6001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5",
"type": "timeseries"
},
{
@@ -2542,7 +2944,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 68
+ "y": 75
},
"id": 20,
"options": {
@@ -2573,7 +2975,7 @@
"refId": "A"
}
],
- "title": "集群节点平均load1",
+ "title": "\u96c6\u7fa4\u8282\u70b9\u5e73\u5747load1",
"type": "timeseries"
},
{
@@ -2635,7 +3037,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 68
+ "y": 75
},
"id": 40,
"options": {
@@ -2728,12 +3130,12 @@
"refId": "G"
}
],
- "title": "集群内核态内存使用情况",
+ "title": "\u96c6\u7fa4\u5185\u6838\u6001\u5185\u5b58\u4f7f\u7528\u60c5\u51b5",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "1 fork数量;2 处于IO阻塞任务数量",
+ "description": "1 fork\u6570\u91cf\uff1b2 \u5904\u4e8eIO\u963b\u585e\u4efb\u52a1\u6570\u91cf",
"fieldConfig": {
"defaults": {
"color": {
@@ -2806,7 +3208,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 76
+ "y": 83
},
"id": 55,
"options": {
@@ -2848,7 +3250,7 @@
"refId": "B"
}
],
- "title": "集群节点任务统计信息",
+ "title": "\u96c6\u7fa4\u8282\u70b9\u4efb\u52a1\u7edf\u8ba1\u4fe1\u606f",
"type": "timeseries"
},
{
@@ -2910,7 +3312,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 76
+ "y": 83
},
"id": 39,
"options": {
@@ -2948,67 +3350,55 @@
"refId": "B"
}
],
- "title": "集群app与kernel内存对比",
+ "title": "\u96c6\u7fa4app\u4e0ekernel\u5185\u5b58\u5bf9\u6bd4",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "容器大盘",
+ "description": "\u5bb9\u5668\u5927\u76d8",
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
- "y": 84
+ "y": 91
},
"id": 54,
- "links": [
- {
- "targetBlank": true,
- "title": "容器大盘(链接)",
- "url": "../monitor/container_monitor"
- }
- ],
+ "links": [],
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
- "content": "容器大盘详情",
- "mode": "html"
+ "content": "[\u5bb9\u5668\u5927\u76d8\u8be6\u60c5](../grafana/d/rYdddlPWW/rong-qi-jian-kong?var-node=192.168.0.12:8889&var-podname=All&var-podns=All&orgId=1&refresh=5s)\n\n",
+ "mode": "markdown"
},
"pluginVersion": "9.2.2",
- "title": "容器大盘",
+ "title": "\u5bb9\u5668\u5927\u76d8",
"type": "text"
},
{
"datasource": "sysom-prometheus",
- "description": "节点大盘",
+ "description": "\u8282\u70b9\u5927\u76d8",
"gridPos": {
"h": 2,
"w": 24,
"x": 0,
- "y": 86
+ "y": 93
},
"id": 53,
- "links": [
- {
- "targetBlank": true,
- "title": "节点大盘(链接)",
- "url": "../monitor/node_monitor"
- }
- ],
+ "links": [],
"options": {
"code": {
"language": "plaintext",
"showLineNumbers": false,
"showMiniMap": false
},
- "content": "节点大盘详情",
- "mode": "html"
+ "content": "[\u8282\u70b9\u5927\u76d8\u8be6\u60c5](../grafana/d/rYdddlPWk/sysom_base?orgId=1&refresh=5s)\n\n",
+ "mode": "markdown"
},
"pluginVersion": "9.2.2",
- "title": "节点大盘",
+ "title": "\u8282\u70b9\u5927\u76d8",
"type": "text"
}
],
@@ -3018,6 +3408,30 @@
"tags": [],
"templating": {
"list": [
+ {
+ "current": {
+ "selected": false,
+ "text": "default",
+ "value": "default"
+ },
+ "datasource": "sysom-prometheus",
+ "definition": "label_values(sysom_cluster_health_score, cluster)",
+ "hide": 0,
+ "includeAll": false,
+ "label": "cluster",
+ "multi": false,
+ "name": "cluster",
+ "options": [],
+ "query": {
+ "query": "label_values(sysom_cluster_health_score, cluster)",
+ "refId": "StandardVariableQuery"
+ },
+ "refresh": 1,
+ "regex": "",
+ "skipUrlSync": false,
+ "sort": 0,
+ "type": "query"
+ },
{
"current": {
"selected": true,
@@ -3082,9 +3496,9 @@
},
"timepicker": {},
"timezone": "",
- "title": "集群视角",
+ "title": "\u96c6\u7fa4\u89c6\u89d2",
"uid": "F4UBT8w4k",
- "version": 9,
+ "version": 10,
"weekStart": ""
}
}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-container-dashboard.json b/deps/4_grafana/sysom-container-dashboard.json
index 45fa805cfa814ea4dc64c02cd818170687e76650..6e4b9ccf7d5a85e6d5c889366fb8557367fa3cbc 100644
--- a/deps/4_grafana/sysom-container-dashboard.json
+++ b/deps/4_grafana/sysom-container-dashboard.json
@@ -36,6 +36,1293 @@
"x": 0,
"y": 0
},
+ "id": 450,
+ "panels": [],
+ "title": "pod\u6982\u89c8",
+ "type": "row"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "text",
+ "value": null
+ },
+ {
+ "color": "#E24D42",
+ "value": 0
+ },
+ {
+ "color": "#EF843C",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 5,
+ "x": 0,
+ "y": 1
+ },
+ "id": 454,
+ "options": {
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_pod_health_score{pod=~\"$pod\", namespace=~\"$podns\", type=\"total\"}",
+ "legendFormat": "{{pod}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Pod Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 5,
+ "x": 5,
+ "y": 1
+ },
+ "id": 458,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_pod_health_score{pod=~\"$pod\", namespace=~\"$podns\",type=\"error\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{pod}}",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "title": "Errors Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 0
+ },
+ {
+ "color": "#EAB839",
+ "value": 60
+ },
+ {
+ "color": "orange",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 5,
+ "x": 10,
+ "y": 1
+ },
+ "id": 460,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_pod_health_score{pod=~\"$pod\", namespace=~\"$podns\",type=\"latency\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{pod}}",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "title": "Latency Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 5,
+ "x": 15,
+ "y": 1
+ },
+ "id": 456,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_pod_health_score{pod=~\"$pod\", namespace=~\"$podns\",type=\"capacity\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{pod}}",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "title": "Saturation Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
+ }
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 5,
+ "w": 4,
+ "x": 20,
+ "y": 1
+ },
+ "id": 462,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_pod_health_score{pod=~\"$pod\", namespace=~\"$podns\",type=\"load\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{pod}}",
+ "refId": "A",
+ "step": 20
+ }
+ ],
+ "title": "Load(Traffic) Health",
+ "type": "gauge"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u5f97\u5206"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ {
+ "id": "custom.width",
+ "value": 144
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u5f02\u5e38\u6307\u6807"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 126
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 123
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 6,
+ "x": 0,
+ "y": 6
+ },
+ "id": 472,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\npod,\ninstance,\nnamespace,\nvalue\nFROM sysom.sys_abnormal_metrics_pod\nWHERE pod = $pod AND namespace = $podns AND metric_type = \"capacity\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Saturation Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": true,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u5f97\u5206"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ {
+ "id": "custom.width",
+ "value": 144
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u5f02\u5e38\u6307\u6807"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 126
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 123
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 6,
+ "x": 6,
+ "y": 6
+ },
+ "id": 473,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\npod,\ninstance,\nnamespace,\nvalue\nFROM sysom.sys_abnormal_metrics_pod\nWHERE pod = $pod AND namespace = $podns AND metric_type = \"load\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Load Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": true,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u5f97\u5206"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ {
+ "id": "custom.width",
+ "value": 144
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u5f02\u5e38\u6307\u6807"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 126
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 123
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 6,
+ "x": 12,
+ "y": 6
+ },
+ "id": 474,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\npod,\ninstance,\nnamespace,\nvalue\nFROM sysom.sys_abnormal_metrics_pod\nWHERE pod = $pod AND namespace = $podns AND metric_type = \"latency\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Latency Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": true,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "datasource": "sysom-mysql",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "custom": {
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u6307\u6807\u5f97\u5206"
+ },
+ "properties": [
+ {
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
+ "value": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
+ },
+ {
+ "id": "custom.width",
+ "value": 144
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "\u5f02\u5e38\u6307\u6807"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 126
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "node"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 123
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 6,
+ "x": 18,
+ "y": 6
+ },
+ "id": 475,
+ "interval": "30s",
+ "options": {
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
+ ],
+ "show": false
+ },
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-mysql",
+ "editorMode": "code",
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\npod,\ninstance,\nnamespace,\nvalue\nFROM sysom.sys_abnormal_metrics_pod\nWHERE pod = $pod AND namespace = $podns AND metric_type = \"error\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Error Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": true,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "collapsed": false,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 14
+ },
"id": 405,
"panels": [],
"title": "Pod Memory Monitor",
@@ -100,7 +1387,182 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 1
+ "y": 15
+ },
+ "id": 448,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "topk(5, sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"}) by (pod, value))",
+ "legendFormat": "{{pod}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Pod Memory Usage (top 5)",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "bytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 15
+ },
+ "id": 446,
+ "interval": "30",
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "topk(5, sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"cache\"}) by (pod, value))",
+ "legendFormat": "{{pod}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Pod Cache Usage (top 5)",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "bytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 12,
+ "x": 0,
+ "y": 23
},
"id": 412,
"options": {
@@ -123,7 +1585,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"cache\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"cache\"}) by (pod, value)",
"legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "A"
@@ -131,7 +1593,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"rss\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$podname\",value=\"rss\"}) by (pod,value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -140,7 +1602,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"shmem\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"shmem\"}) by (pod,value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -149,7 +1611,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"inactive_file\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"inactive_file\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -158,7 +1620,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"active_file\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"active_file\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -167,7 +1629,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"inactive_anon\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"inactive_anon\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -176,7 +1638,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"active_anon\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"active_file\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -185,7 +1647,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"usage\"} - ignoring(value)ysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"inactive_file\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"} - ignoring(value)sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"inactive_file\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-wss",
"range": true,
@@ -194,7 +1656,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memUtil{namespace=~\"$namespace\", pod=~\"$pod\",value=\"usage\"}",
+ "expr": "sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"}) by (pod, value)",
"hide": false,
"legendFormat": "{{pod}}-{{value}}",
"range": true,
@@ -260,12 +1722,13 @@
"overrides": []
},
"gridPos": {
- "h": 8,
+ "h": 9,
"w": 12,
"x": 12,
- "y": 1
+ "y": 23
},
"id": 407,
+ "interval": "30s",
"options": {
"legend": {
"calcs": [
@@ -286,13 +1749,13 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_podmem{namespace=~\"$namespace\",pod=~\"$pod\",value=\"cached\"}",
+ "expr": "sysom_podmem{namespace=~\"$podns\",pod=~\"$pod\",value=\"cached\"}",
"legendFormat": "{{pod}}-{{file}}",
"range": true,
"refId": "A"
}
],
- "title": "Pod Cache",
+ "title": "Pod Cached File (top 5)",
"type": "timeseries"
},
{
@@ -351,13 +1814,13 @@
"overrides": []
},
"gridPos": {
- "h": 7,
- "w": 8,
+ "h": 9,
+ "w": 12,
"x": 0,
- "y": 9
+ "y": 32
},
- "id": 411,
- "interval": "30",
+ "id": 410,
+ "interval": "60s",
"options": {
"legend": {
"calcs": [
@@ -378,40 +1841,40 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memgdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_0to1ms\"} + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1to5ms\"} + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_5to10ms\"}",
- "legendFormat": "{{pod}}-memDrcm_glb_lat_1to10ms",
+ "expr": "sum(rate(sysom_container_memfail_cnt{namespace=~\"$podns\",pod=~\"$pod\",value=\"fail_cnt\"}[$__rate_interval])) by (pod, value)",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memgdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_10to100ms\"}",
+ "expr": "sum(rate(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"pgpgin\"}[$__rate_interval])) by (pod, value)",
"hide": false,
- "legendFormat": "{{pod}}-memDrcm_glb_lat_10to100ms",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memgdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_100to500ms\"}",
+ "expr": "sum(rate(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"pgpgout\"}[$__rate_interval])) by (pod, value)",
"hide": false,
- "legendFormat": "{{pod}}-memDrcm_glb_lat_100to500ms",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
- "refId": "D"
+ "refId": "C"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_500to1000ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1000ms\"}",
+ "expr": "sum(rate(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"pgfault\"}[$__rate_interval])) by (pod, value)",
"hide": false,
- "legendFormat": "{{pod}}-memDrcm_glb_lat_500to1000ms",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
- "refId": "C"
+ "refId": "D"
}
],
- "title": "Memory Global Direct Reclaim Latency",
+ "title": "Pod Mem Event",
"type": "timeseries"
},
{
@@ -465,17 +1928,17 @@
}
]
},
- "unit": "none"
+ "unit": "percent"
},
"overrides": []
},
"gridPos": {
- "h": 7,
- "w": 8,
- "x": 8,
- "y": 9
+ "h": 9,
+ "w": 12,
+ "x": 12,
+ "y": 32
},
- "id": 409,
+ "id": 415,
"options": {
"legend": {
"calcs": [
@@ -496,40 +1959,31 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_0to1ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_1to5ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_5to10ms\"}",
- "legendFormat": "{{pod}}-memDrcm_lat_1to10ms",
+ "expr": "(sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"limit\"}) by (pod, container)) * 100",
+ "legendFormat": "{{pod}}-usage",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_10to100ms\"}",
+ "expr": "(sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"rss\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"}) by (pod, container)) * 100",
"hide": false,
- "legendFormat": "{{pod}}-memDrcm_lat_10to100ms",
+ "legendFormat": "{{pod}}-rss_ratio",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_100to500ms\"}",
- "hide": false,
- "legendFormat": "{{pod}}-memDrcm_lat_100to500ms",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_500to1000ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDrcm_lat_1000ms\"}",
+ "expr": "(sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"cache\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$podns\",pod=~\"$pod\",value=\"usage\"}) by (pod, container)) * 100",
"hide": false,
- "legendFormat": "{{pod}}-memDrcm_lat_500to1000ms",
+ "legendFormat": "{{pod}}-cache_ratio",
"range": true,
"refId": "C"
}
],
- "title": "Memory Direct Reclaim Latency",
+ "title": "Memory Rate",
"type": "timeseries"
},
{
@@ -574,8 +2028,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
@@ -588,12 +2041,12 @@
"overrides": []
},
"gridPos": {
- "h": 7,
- "w": 8,
- "x": 16,
- "y": 9
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 41
},
- "id": 413,
+ "id": 411,
"options": {
"legend": {
"calcs": [
@@ -614,40 +2067,40 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_1to5ms\"} + on(pod, container)sysom_container_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_5to10ms\"}",
- "legendFormat": "{{pod}}-memDcmp_lat_1to10ms",
+ "expr": "clamp_min(sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_0to1ms\"} + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1to5ms\"} + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_5to10ms\"}) by (pod) - sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_0to1ms\"} offset 30s + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1to5ms\"} offset 30s + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_5to10ms\"} offset 30s) by (pod), 0)",
+ "legendFormat": "{{pod}}-memDrcm_glb_lat_1to10ms",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_10to100ms\"}",
+ "expr": "clamp_min(sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_10to100ms\"}) by (pod) - sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_10to100ms\"} offset 30s) by (pod), 0)",
"hide": false,
- "legendFormat": "{{pod}}-memDcmp_lat_10to100ms",
+ "legendFormat": "{{pod}}-memDrcm_glb_lat_10to100ms",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_cg_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_100to500ms\"}",
+ "expr": "clamp_min(sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_100to500ms\"}) by (pod) - sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_100to500ms\"} offset 30s) by (pod), 0)",
"hide": false,
- "legendFormat": "{{pod}}-memDcmp_lat_100to500ms",
+ "legendFormat": "{{pod}}-memDrcm_glb_lat_100to500ms",
"range": true,
"refId": "D"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_500to1000ms\"} + on(pod, container)sysom_container_memmcmp_latency{namespace=~\"$namespace\",pod=~\"$pod\",value=\"memDcmp_lat_1000ms\"}",
+ "expr": "clamp_min(sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_500to1000ms\"} + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1000ms\"}) by (pod) - sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_500to1000ms\"} offset 30s + on(pod, container)sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_glb_lat_1000ms\"} offset 30s) by (pod), 0)",
"hide": false,
- "legendFormat": "{{pod}}-memDcmp_lat_500to1000ms",
+ "legendFormat": "{{pod}}-memDrcm_glb_lat_500to1000ms",
"range": true,
"refId": "C"
}
],
- "title": "Memory Compact Latency",
+ "title": "Memory Global Direct Reclaim Latency",
"type": "timeseries"
},
{
@@ -664,7 +2117,7 @@
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 0,
+ "fillOpacity": 24,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -692,8 +2145,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
@@ -701,18 +2153,18 @@
}
]
},
- "unit": "percent"
+ "unit": "none"
},
"overrides": []
},
"gridPos": {
- "h": 7,
+ "h": 10,
"w": 12,
- "x": 0,
- "y": 16
+ "x": 12,
+ "y": 41
},
- "id": 415,
- "interval": "30s",
+ "id": 409,
+ "interval": "30",
"options": {
"legend": {
"calcs": [
@@ -733,31 +2185,40 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "(sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"usage\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"limit\"}) by (pod, container)) * 100",
- "legendFormat": "{{pod}}-usage/limit",
+ "expr": "clamp_min(sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_0to1ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_1to5ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_5to10ms\"}) by (pod) - sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_0to1ms\"} offset 30s + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_1to5ms\"} offset 30s + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_5to10ms\"} offset 30s) by (pod), 0)",
+ "legendFormat": "{{pod}}-memDrcm_lat_1to10ms",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "(sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"rss\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"usage\"}) by (pod, container)) * 100",
+ "expr": "clamp_min(sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_10to100ms\"}) by (pod) - sum(sysom_container_memgdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_10to100ms\"} offset 30s) by (pod), 0)",
"hide": false,
- "legendFormat": "{{pod}}-rss-ratio",
+ "legendFormat": "{{pod}}-memDrcm_lat_10to100ms",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "(sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"cache\"}) by (pod, container) / sum(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"usage\"}) by (pod, container)) * 100",
+ "expr": "clamp_min(sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_100to500ms\"}) by (pod) - sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_100to500ms\"} offset 30s) by (pod), 0)",
+ "hide": false,
+ "legendFormat": "{{pod}}-memDrcm_lat_100to500ms",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "clamp_min(sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_500to1000ms\"} + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_1000ms\"}) by (pod) - sum(sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_500to1000ms\"} offset 30s + on(pod, container)sysom_container_memdrcm_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDrcm_lat_1000ms\"} offset 30s) by (pod), 0)",
"hide": false,
- "legendFormat": "{{pod}}-cache-ratio",
+ "legendFormat": "{{pod}}-memDrcm_lat_500to1000ms",
"range": true,
"refId": "C"
}
],
- "title": "Memory Rate",
+ "title": "Memory Direct Reclaim Latency",
"type": "timeseries"
},
{
@@ -802,8 +2263,7 @@
"mode": "absolute",
"steps": [
{
- "color": "green",
- "value": null
+ "color": "green"
},
{
"color": "red",
@@ -816,13 +2276,12 @@
"overrides": []
},
"gridPos": {
- "h": 7,
+ "h": 10,
"w": 12,
- "x": 12,
- "y": 16
+ "x": 0,
+ "y": 51
},
- "id": 410,
- "interval": "30s",
+ "id": 413,
"options": {
"legend": {
"calcs": [
@@ -843,40 +2302,40 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_container_memfail_cnt{namespace=~\"$namespace\",pod=~\"$pod\",value=\"fail_cnt\"}[$__rate_interval])",
- "legendFormat": "{{pod}}-{{value}}",
+ "expr": "clamp_min(sum(sysom_container_memmcmp_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDcmp_lat_1to5ms\"} + on(pod, container)sysom_container_memmcmp_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDcmp_lat_5to10ms\"}) by (pod) - sum(sysom_container_memmcmp_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDcmp_lat_1to5ms\"} offset 30s + on(pod, container)sysom_container_memmcmp_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDcmp_lat_5to10ms\"} offset 30s) by (pod), 0)",
+ "legendFormat": "{{pod}}-memDcmp_lat_1to10ms",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"pgpgin\"}[$__rate_interval])",
+ "expr": "sysom_container_memmcmp_latency{namespace=~\"$podns\",pod=~\"$pod\",value=\"memDcmp_lat_10to100ms\"}",
"hide": false,
- "legendFormat": "{{pod}}-{{value}}",
+ "legendFormat": "{{pod}}-memDcmp_lat_10to100ms",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"pgpgout\"}[$__rate_interval])",
+ "expr": "sysom_cg_memmcmp_latency{podns=~\"$podns\",podname=~\"$podname\",value=\"memDcmp_lat_100to500ms\"}",
"hide": false,
- "legendFormat": "{{pod}}-{{value}}",
+ "legendFormat": "{{pod}}-memDcmp_lat_100to500ms",
"range": true,
- "refId": "C"
+ "refId": "D"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_container_memUtil{namespace=~\"$namespace\",pod=~\"$pod\",value=\"pgfault\"}[$__rate_interval])",
+ "expr": "sysom_cg_memmcmp_latency{podns=~\"$podns\",podname=~\"$podname\",value=\"memDcmp_lat_500to1000ms\"} + on(podname, container)sysom_cg_memmcmp_latency{podns=~\"$podns\",podname=~\"$podname\",value=\"memDcmp_lat_1000ms\"}",
"hide": false,
- "legendFormat": "{{pod}}-{{value}}",
+ "legendFormat": "{{podname}}-memDcmp_lat_500to1000ms",
"range": true,
- "refId": "D"
+ "refId": "C"
}
],
- "title": "Pod Mem Event",
+ "title": "Memory Compact Latency",
"type": "timeseries"
},
{
@@ -885,7 +2344,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 23
+ "y": 61
},
"id": 417,
"panels": [],
@@ -950,7 +2409,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 24
+ "y": 62
},
"id": 419,
"options": {
@@ -973,26 +2432,26 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_cpuacct_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"total\"}",
- "legendFormat": "{{podname}}-{{value}}",
+ "expr": "sum(sysom_container_cpuacct_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"total\"}) by (pod)",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_cpuacct_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"user\"}",
+ "expr": "sum(sysom_container_cpuacct_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"user\"}) by (pod)",
"hide": false,
- "legendFormat": "{{podname}}-{{value}}",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_cpuacct_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"system\"}",
+ "expr": "sum(sysom_container_cpuacct_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"system\"}) by (pod)",
"hide": false,
- "legendFormat": "{{podname}}-{{value}}",
+ "legendFormat": "{{pod}}-{{value}}",
"range": true,
"refId": "C"
}
@@ -1057,10 +2516,10 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 24
+ "y": 62
},
"id": 420,
- "interval": "30s",
+ "interval": "60s",
"options": {
"legend": {
"calcs": [
@@ -1081,13 +2540,13 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_container_cpu_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"nr_throttled\"}[$__rate_interval])",
- "legendFormat": "{{podname}}-throttled",
+ "expr": "rate(sysom_container_cpu_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"nr_throttled\"}[$__rate_interval])",
+ "legendFormat": "{{pod}}-throttled",
"range": true,
"refId": "A"
}
],
- "title": "Pod CPU",
+ "title": "Pod CPU nr_throttled",
"type": "timeseries"
},
{
@@ -1124,7 +2583,7 @@
"mode": "none"
},
"thresholdsStyle": {
- "mode": "off"
+ "mode": "dashed+area"
}
},
"mappings": [],
@@ -1136,10 +2595,11 @@
},
{
"color": "red",
- "value": 80
+ "value": 15
}
]
- }
+ },
+ "unit": "ms"
},
"overrides": []
},
@@ -1147,7 +2607,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 32
+ "y": 70
},
"id": 441,
"interval": "60s",
@@ -1167,8 +2627,8 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_cpuacct_wait_latency{pod=~\"$pod\", namespace=~\"$namespace\", value=\"wait_lat_total\"}",
- "legendFormat": "{{pod}}-{{value}}",
+ "expr": "rate(sysom_container_cpuacct_wait_latency{value=\"wait_lat_total\"}[$__rate_interval])",
+ "legendFormat": "{{pod}}-quota_ratio",
"range": true,
"refId": "A"
}
@@ -1233,7 +2693,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 32
+ "y": 70
},
"id": 442,
"interval": "60s",
@@ -1253,7 +2713,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_container_cfs_quota{value=\"quota_ratio\",namespace=~\"$namespace\",pod=~\"$pod\"}",
+ "expr": "sysom_container_cfs_quota{value=\"quota_ratio\",namespace=~\"$podns\",pod=~\"$pod\"}",
"legendFormat": "{{pod}}-quota_ratio",
"range": true,
"refId": "A"
@@ -1268,7 +2728,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 40
+ "y": 78
},
"id": 424,
"panels": [],
@@ -1333,7 +2793,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 41
+ "y": 79
},
"id": 438,
"interval": "60s",
@@ -1353,7 +2813,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(rate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_tx_bytes\"}[5m])) by (pod)",
+ "expr": "sum(rate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_tx_bytes\"}[5m])) by (pod)",
"legendFormat": "{{pod}}-transmit",
"range": true,
"refId": "A"
@@ -1361,7 +2821,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(rate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_rx_bytes\"}[5m])) by (pod)",
+ "expr": "-sum(rate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_rx_bytes\"}[5m])) by (pod)",
"hide": false,
"legendFormat": "{{pod}}-receive",
"range": true,
@@ -1429,7 +2889,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 41
+ "y": 79
},
"id": 428,
"interval": "60s",
@@ -1449,7 +2909,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(rate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_tx_packets\"}[5m])) by (pod)",
+ "expr": "sum(rate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_tx_packets\"}[5m])) by (pod)",
"legendFormat": "{{pod}}-transmit",
"range": true,
"refId": "A"
@@ -1457,7 +2917,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(rate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_rx_packets\"}[5m])) by (pod)",
+ "expr": "-sum(rate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_rx_packets\"}[5m])) by (pod)",
"hide": false,
"legendFormat": "{{pod}}-reads",
"range": true,
@@ -1524,7 +2984,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 49
+ "y": 87
},
"id": 440,
"interval": "60s",
@@ -1544,7 +3004,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(irate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_tx_dropped\"}[5m])) by (pod) / sum(irate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_tx_packets\"}[5m])) by (pod)",
+ "expr": "sum(irate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_tx_dropped\"}[5m])) by (pod) / sum(irate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_tx_packets\"}[5m])) by (pod)",
"legendFormat": "{{pod}}-tx-drop",
"range": true,
"refId": "A"
@@ -1552,7 +3012,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(irate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_rx_dropped\"}[5m])) by (pod) / sum(irate(sysom_container_network_stat{namespace=~\"$namespace\",pod=~\"$pod\",value=\"net_rx_packets\"}[5m])) by (pod)",
+ "expr": "sum(irate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_rx_dropped\"}[5m])) by (pod) / sum(irate(sysom_container_network_stat{namespace=~\"$podns\",pod=~\"$pod\",value=\"net_rx_packets\"}[5m])) by (pod)",
"hide": false,
"legendFormat": "{{pod}}-rx-drop",
"range": true,
@@ -1568,7 +3028,7 @@
"h": 1,
"w": 24,
"x": 0,
- "y": 57
+ "y": 95
},
"id": 422,
"panels": [],
@@ -1633,7 +3093,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 58
+ "y": 96
},
"id": 430,
"interval": "60s",
@@ -1653,7 +3113,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(rate(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\", pod=~\".+\", value=\"writes_service_bytes\"}[5m]) / (1024 * 1024)) by (device,pod)",
+ "expr": "sum(rate(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\", value=\"writes_service_bytes\"}[5m]) / (1024 * 1024)) by (device,pod)",
"legendFormat": "{{pod}}-{{device}}-writes",
"range": true,
"refId": "A"
@@ -1661,7 +3121,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(rate(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\", pod=~\".+\", value=\"reads_service_bytes\"}[5m]) / (1024 * 1024)) by (pod,device)",
+ "expr": "-sum(rate(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\", value=\"reads_service_bytes\"}[5m]) / (1024 * 1024)) by (pod,device)",
"hide": false,
"legendFormat": "{{pod}}-{{device}}-reads",
"range": true,
@@ -1730,7 +3190,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 58
+ "y": 96
},
"id": 432,
"interval": "60s",
@@ -1750,7 +3210,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(rate(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\", value=\"writes_serviced\"}[5m])) by (device, pod)",
+ "expr": "sum(rate(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\", value=\"writes_serviced\"}[5m])) by (device, pod)",
"legendFormat": "{{pod}}-{{device}}-writes",
"range": true,
"refId": "A"
@@ -1758,20 +3218,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(rate(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\", value=\"reads_serviced\"}[5m])) by (device, pod)",
+ "expr": "-sum(rate(sysom_cg_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\", value=\"reads_serviced\"}[5m])) by (device, pod)",
"hide": false,
"legendFormat": "{{pod}}-{{device}}-reads",
"range": true,
"refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "",
- "hide": false,
- "legendFormat": "__auto",
- "range": true,
- "refId": "C"
}
],
"title": "Pod Writes/Reads IOs Rates",
@@ -1835,7 +3286,7 @@
"h": 8,
"w": 12,
"x": 0,
- "y": 66
+ "y": 104
},
"id": 434,
"interval": "60s",
@@ -1855,7 +3306,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\",value=\"writes_bytes_queued\"}) by (device,pod)",
+ "expr": "sum(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\",value=\"writes_bytes_queued\"}) by (device,pod)",
"legendFormat": "{{pod}}-{{device}}-writes",
"range": true,
"refId": "A"
@@ -1863,7 +3314,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\", value=\"reads_bytes_queued\"}) by (device,pod)",
+ "expr": "-sum(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\",value=\"reads_bytes_queued\"} / (1024 * 1024)) by (device,pod)",
"hide": false,
"legendFormat": "{{pod}}-{{device}}-reads",
"range": true,
@@ -1932,7 +3383,7 @@
"h": 8,
"w": 12,
"x": 12,
- "y": 66
+ "y": 104
},
"id": 436,
"interval": "60s",
@@ -1952,17 +3403,17 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sum(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\",value=\"writes_wait_time\"} / 10000000) by (device,pod)",
- "legendFormat": "{{pod}}-{{device}}-writes",
+ "expr": "sum(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\",value=\"writes_wait_time\"} / 1000000) by (device,pod)",
+ "legendFormat": "{{podname}}-{{device}}-writes",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "-sum(sysom_container_blkio_stat{namespace=~\"$namespace\", pod=~\"$pod\",value=\"reads_wait_time\"} / 1000000) by (device,pod)",
+ "expr": "-sum(sysom_container_blkio_stat{namespace=~\"$podns\", pod=~\"$pod\", pod=~\".+\",value=\"reads_wait_time\"} / 1000000) by (device,pod)",
"hide": false,
- "legendFormat": "{{pod}}-{{device}}-reads",
+ "legendFormat": "{{podname}}-{{device}}-reads",
"range": true,
"refId": "B"
}
@@ -1979,33 +3430,6 @@
],
"templating": {
"list": [
- {
- "current": {
- "selected": false,
- "text": "192.168.0.123",
- "value": "192.168.0.123"
- },
- "datasource": "sysom-prometheus",
- "definition": "label_values(sysom_proc_meminfo, exported_instance)",
- "hide": 2,
- "includeAll": false,
- "label": "Host:",
- "multi": false,
- "name": "node",
- "options": [],
- "query": {
- "query": "label_values(sysom_proc_meminfo, exported_instance)",
- "refId": "StandardVariableQuery"
- },
- "refresh": 1,
- "regex": "",
- "skipUrlSync": false,
- "sort": 1,
- "tagValuesQuery": "",
- "tagsQuery": "",
- "type": "query",
- "useTags": false
- },
{
"current": {
"selected": false,
@@ -2013,15 +3437,15 @@
"value": "$__all"
},
"datasource": "sysom-prometheus",
- "definition": "label_values(sysom_container_memUtil,pod)",
+ "definition": "label_values(sysom_container_memory_oomcnt, namespace)",
"hide": 0,
"includeAll": true,
- "label": "pod",
+ "label": "podns",
"multi": true,
- "name": "pod",
+ "name": "podns",
"options": [],
"query": {
- "query": "label_values(sysom_container_memUtil,pod)",
+ "query": "label_values(sysom_container_memory_oomcnt, namespace)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
@@ -2032,24 +3456,20 @@
},
{
"current": {
- "selected": true,
- "text": [
- "All"
- ],
- "value": [
- "$__all"
- ]
+ "selected": false,
+ "text": "file-daemonset-fxkd9",
+ "value": "file-daemonset-fxkd9"
},
"datasource": "sysom-prometheus",
- "definition": "label_values(sysom_container_memUtil,namespace)",
+ "definition": "label_values(sysom_container_memory_oomcnt,pod)",
"hide": 0,
- "includeAll": true,
- "label": "namespace",
+ "includeAll": false,
+ "label": "pod",
"multi": true,
- "name": "namespace",
+ "name": "pod",
"options": [],
"query": {
- "query": "label_values(sysom_container_memUtil,namespace)",
+ "query": "label_values(sysom_container_memory_oomcnt,pod)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
@@ -2090,9 +3510,9 @@
]
},
"timezone": "browser",
- "title": "容器监控",
+ "title": "\u5bb9\u5668\u76d1\u63a7",
"uid": "rYdddlPWW",
- "version": 23,
+ "version": 8,
"weekStart": ""
}
}
\ No newline at end of file
diff --git a/deps/4_grafana/sysom-sysak-base-dashboard.json b/deps/4_grafana/sysom-sysak-base-dashboard.json
index 2bae9ba6867bfc101e7b5008807c6129ee1e361e..fb3a0f8d70e9aa67a1074a82e59c537945e9e292 100644
--- a/deps/4_grafana/sysom-sysak-base-dashboard.json
+++ b/deps/4_grafana/sysom-sysak-base-dashboard.json
@@ -901,9 +901,9 @@
"x": 0,
"y": 7
},
- "id": 347,
+ "id": 405,
"panels": [],
- "title": "System CPU and Schedule",
+ "title": "System Health",
"type": "row"
},
{
@@ -912,92 +912,69 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
+ "mode": "thresholds"
},
- "links": [],
"mappings": [],
- "unit": "%"
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "text",
+ "value": null
+ },
+ {
+ "color": "#E24D42",
+ "value": 0
+ },
+ {
+ "color": "#EF843C",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 80
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
+ }
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 8,
+ "h": 5,
+ "w": 5,
"x": 0,
"y": 8
},
- "id": 345,
+ "id": 407,
"options": {
- "displayLabels": [
- "percent",
- "name"
- ],
- "legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
+ "orientation": "auto",
"reduceOptions": {
- "calcs": [],
+ "calcs": [
+ "lastNotNull"
+ ],
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"idle\"}",
- "legendFormat": "idle",
+ "expr": "sysom_node_health_score{exported_instance=~\"$node\", type=\"total\"}",
+ "legendFormat": "{{exported_instance}}",
"range": true,
"refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"user\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"nice\"}",
- "hide": false,
- "legendFormat": "user",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
- "hide": false,
- "legendFormat": "kernel",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"steal\"}",
- "hide": false,
- "legendFormat": "steal",
- "range": true,
- "refId": "D"
}
],
- "title": "CPU Graph",
- "type": "piechart"
+ "title": "Node health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -1005,91 +982,90 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
}
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "red",
+ "value": null
+ },
+ {
+ "color": "semi-dark-red",
+ "value": 0
+ },
+ {
+ "color": "orange",
+ "value": 60
+ },
+ {
+ "color": "yellow",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
},
- "mappings": [],
- "unit": "%"
+ "unit": "none"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 8,
- "x": 8,
+ "h": 5,
+ "w": 5,
+ "x": 5,
"y": 8
},
- "id": 348,
+ "id": 409,
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "displayLabels": [
- "name",
- "value"
- ],
- "legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
+ "orientation": "horizontal",
"reduceOptions": {
- "calcs": [],
+ "calcs": [
+ "lastNotNull"
+ ],
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"}",
- "legendFormat": "sys",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"}",
- "hide": false,
- "legendFormat": "iowait",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"}",
- "hide": false,
- "legendFormat": "hardirq",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
+ "expr": "sysom_node_health_score{exported_instance=~\"$node\", type=\"error\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "softirq",
- "range": true,
- "refId": "E"
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "title": "Kernel Used CPU",
- "type": "piechart"
+ "title": "Errors Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -1097,41 +1073,62 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
}
+ ],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "blue",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 0
+ },
+ {
+ "color": "#EAB839",
+ "value": 60
+ },
+ {
+ "color": "orange",
+ "value": 80
+ },
+ {
+ "color": "green",
+ "value": 100
+ }
+ ]
},
- "mappings": [],
"unit": "none"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 8,
- "x": 16,
+ "h": 5,
+ "w": 4,
+ "x": 10,
"y": 8
},
- "id": 356,
+ "id": 411,
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "displayLabels": [
- "value",
- "percent"
- ],
- "legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
+ "orientation": "horizontal",
"reduceOptions": {
"calcs": [
"lastNotNull"
@@ -1139,48 +1136,27 @@
"fields": "",
"values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_cgroups{instance=\"$node\",type=\"num_cgroups\"}",
+ "expr": "sysom_node_health_score{exported_instance=~\"$node\", type=\"latency\"}",
"format": "time_series",
- "instant": true,
+ "hide": false,
+ "instant": false,
"interval": "",
- "legendFormat": "{{value}}",
- "range": false,
- "refId": "A"
- }
- ],
- "title": "Cgroup Numbers",
- "transformations": [
- {
- "id": "organize",
- "options": {
- "excludeByName": {
- "Time": true,
- "__name__": true,
- "exported_instance": true,
- "instance": true,
- "job": true,
- "type": true
- },
- "indexByName": {},
- "renameByName": {
- "Value": "Count",
- "value": "Type"
- }
- }
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "type": "piechart"
+ "title": "Latency Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -1188,203 +1164,90 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
}
- },
- "mappings": [],
+ ],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
+ "color": "dark-red",
"value": null
},
{
"color": "red",
- "value": 80
- }
- ]
- },
- "unit": "%"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
+ "value": 0
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
+ "color": "orange",
+ "value": 60
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "free"
- },
- "properties": [
+ "color": "#EAB839",
+ "value": 80
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "color": "green",
+ "value": 100
}
]
- }
- ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
},
"gridPos": {
- "h": 11,
- "w": 12,
- "x": 0,
- "y": 17
+ "h": 5,
+ "w": 5,
+ "x": 14,
+ "y": 8
},
- "id": 352,
- "options": {
- "legend": {
+ "id": 413,
+ "links": [],
+ "maxDataPoints": 100,
+ "options": {
+ "orientation": "horizontal",
+ "reduceOptions": {
"calcs": [
- "min",
- "mean",
- "max",
"lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"user\"}",
- "hide": false,
- "legendFormat": "user",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"}",
- "hide": false,
- "legendFormat": "sys",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"nice\"}",
- "hide": false,
- "legendFormat": "nice",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"idle\"}",
- "legendFormat": "idle",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"}",
- "hide": false,
- "legendFormat": "iowait",
- "range": true,
- "refId": "E"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"}",
- "hide": false,
- "legendFormat": "hardirq",
- "range": true,
- "refId": "F"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
- "hide": false,
- "legendFormat": "softirq",
- "range": true,
- "refId": "G"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"steal\"}",
+ "expr": "sysom_node_health_score{exported_instance=~\"$node\", type=\"capacity\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "steal",
- "range": true,
- "refId": "H"
+ "instant": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "title": "CPU Used",
- "type": "timeseries"
+ "title": "Saturation Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -1392,143 +1255,90 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
+ "decimals": 0,
+ "mappings": [
+ {
+ "options": {
+ "match": "null",
+ "result": {
+ "text": "N/A"
+ }
+ },
+ "type": "special"
}
- },
- "mappings": [],
+ ],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green",
+ "color": "blue",
"value": null
},
{
"color": "red",
- "value": 80
- }
- ]
- },
- "unit": "%"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
+ "value": 0
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
+ "color": "orange",
+ "value": 60
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "free"
- },
- "properties": [
+ "color": "#EAB839",
+ "value": 80
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "color": "green",
+ "value": 100
}
]
- }
- ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
},
"gridPos": {
- "h": 11,
- "w": 12,
- "x": 12,
- "y": 17
+ "h": 5,
+ "w": 5,
+ "x": 19,
+ "y": 8
},
- "id": 398,
+ "id": 415,
+ "links": [],
+ "maxDataPoints": 100,
"options": {
- "legend": {
+ "orientation": "horizontal",
+ "reduceOptions": {
"calcs": [
- "min",
- "mean",
- "max",
"lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": false
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "100 - sysom_proc_cpus{instance=\"$node\",mode=\"idle\"}",
+ "expr": "sysom_node_health_score{exported_instance=~\"$node\", type=\"load\"}",
+ "format": "time_series",
"hide": false,
"instant": false,
- "legendFormat": "{{cpu_name}} busy",
- "range": true,
- "refId": "A"
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "",
+ "refId": "A",
+ "step": 20
}
],
- "title": "CPU Used",
- "type": "timeseries"
+ "title": "Load(Traffic) Health",
+ "type": "gauge"
},
{
"datasource": "sysom-prometheus",
@@ -1536,1292 +1346,1197 @@
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "mode": "thresholds"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "text",
+ "value": null
},
{
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "free"
- },
- "properties": [
+ "color": "#E24D42",
+ "value": 0
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "sys"
- },
- "properties": [
+ "color": "#EF843C",
+ "value": 60
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "hardirq"
- },
- "properties": [
+ "color": "#EAB839",
+ "value": 80
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "color": "dark-green",
+ "value": 100
}
]
}
- ]
+ },
+ "overrides": []
},
"gridPos": {
- "h": 11,
- "w": 12,
+ "h": 5,
+ "w": 24,
"x": 0,
- "y": 28
+ "y": 13
},
- "id": 351,
+ "id": 417,
+ "interval": "30s",
"options": {
- "legend": {
+ "orientation": "auto",
+ "reduceOptions": {
"calcs": [
- "min",
- "mean",
- "max",
"lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showThresholdLabels": false,
+ "showThresholdMarkers": true
},
"pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load1\"}",
- "legendFormat": "load 1m",
+ "expr": "sysom_pod_health_score{exported_instance=~\"$node\", type=\"total\"}",
+ "legendFormat": "{{pod}}",
"range": true,
"refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load5\"}",
- "hide": false,
- "legendFormat": "load 5m",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load15\"}",
- "hide": false,
- "legendFormat": "load 15m",
- "range": true,
- "refId": "C"
}
],
- "title": "System Load",
- "type": "timeseries"
+ "title": "Pod/Container Health",
+ "type": "gauge"
},
{
- "datasource": "sysom-prometheus",
- "description": "",
+ "datasource": "sysom-mysql",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "dark-red",
+ "value": null
},
{
"color": "red",
- "value": 80
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
}
]
- },
- "unit": "short"
+ }
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "app"
+ "options": "\u6307\u6807\u5f97\u5206"
},
"properties": [
{
- "id": "color",
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
"value": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
}
+ },
+ {
+ "id": "custom.width",
+ "value": 144
}
]
},
{
"matcher": {
"id": "byName",
- "options": "kernel"
+ "options": "\u5f02\u5e38\u6307\u6807"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 147
}
]
},
{
"matcher": {
"id": "byName",
- "options": "free"
+ "options": "node"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 175
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
}
]
}
]
},
"gridPos": {
- "h": 11,
- "w": 12,
- "x": 12,
- "y": 28
+ "h": 8,
+ "w": 6,
+ "x": 0,
+ "y": 18
},
- "id": 372,
+ "id": 427,
+ "interval": "30s",
"options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "show": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
},
"pluginVersion": "9.2.2",
"targets": [
{
- "datasource": "sysom-prometheus",
+ "datasource": "sysom-mysql",
"editorMode": "code",
- "expr": "sum by(value)(rate(sysom_interrupts{instance=\"$node\"}[$__rate_interval]))",
- "hide": false,
- "legendFormat": "{{value}}",
- "range": true,
- "refId": "A"
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\nvalue\nFROM sysom.sys_abnormal_metrics_node\nWHERE instance = '$node' AND metric_type = \"capacity\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Saturation Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
}
],
- "title": "Hardirqs Rate",
- "type": "timeseries"
+ "type": "table"
},
{
- "datasource": "sysom-prometheus",
- "description": "",
+ "datasource": "sysom-mysql",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "dark-red",
+ "value": null
},
{
"color": "red",
- "value": 80
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
}
]
- },
- "unit": "short"
+ }
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "app"
+ "options": "\u6307\u6807\u5f97\u5206"
},
"properties": [
{
- "id": "color",
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
"value": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
}
+ },
+ {
+ "id": "custom.width",
+ "value": 155
}
]
},
{
"matcher": {
"id": "byName",
- "options": "kernel"
+ "options": "\u5f02\u5e38\u6307\u6807"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 150
}
]
},
{
"matcher": {
"id": "byName",
- "options": "free"
+ "options": "node"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 155
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
}
]
}
]
},
"gridPos": {
- "h": 11,
- "w": 12,
- "x": 0,
- "y": 39
+ "h": 8,
+ "w": 6,
+ "x": 6,
+ "y": 18
},
- "id": 350,
+ "id": 428,
+ "interval": "30s",
"options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "show": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
},
"pluginVersion": "9.2.2",
"targets": [
{
- "datasource": "sysom-prometheus",
+ "datasource": "sysom-mysql",
"editorMode": "code",
- "expr": "rate(sysom_proc_sirq{instance=\"$node\"}[$__rate_interval])",
- "hide": false,
- "legendFormat": "{{type}}",
- "range": true,
- "refId": "A"
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\nvalue\nFROM sysom.sys_abnormal_metrics_node\nWHERE instance = '$node' AND metric_type = \"load\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Load Health",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
+ },
+ {
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
}
],
- "title": "Softirqs Rate",
- "type": "timeseries"
+ "type": "table"
},
{
- "datasource": "sysom-prometheus",
- "description": "",
+ "datasource": "sysom-mysql",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "log": 10,
- "type": "log"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "dark-red",
+ "value": null
},
{
"color": "red",
- "value": 80
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
}
]
- },
- "unit": "none"
+ }
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "app"
+ "options": "\u6307\u6807\u5f97\u5206"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
{
- "id": "color",
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
"value": {
- "fixedColor": "yellow",
- "mode": "fixed"
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
}
+ },
+ {
+ "id": "custom.width",
+ "value": 155
}
]
},
{
"matcher": {
"id": "byName",
- "options": "free"
+ "options": "\u5f02\u5e38\u6307\u6807"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 150
}
]
},
{
"matcher": {
"id": "byName",
- "options": "sys"
+ "options": "node"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 155
}
]
},
{
"matcher": {
"id": "byName",
- "options": "hardirq"
+ "options": "pod"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 135
}
]
}
]
},
"gridPos": {
- "h": 11,
- "w": 12,
+ "h": 8,
+ "w": 6,
"x": 12,
- "y": 39
+ "y": 18
},
- "id": 353,
+ "id": 440,
+ "interval": "30s",
"options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "show": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
},
"pluginVersion": "9.2.2",
"targets": [
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_stat_counters{instance=\"$node\",counter=\"ctxt\"} / 20",
- "legendFormat": "Context Switches",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
+ "datasource": "sysom-mysql",
"editorMode": "code",
- "expr": "sysom_proc_stat_counters{instance=\"$node\",counter=\"processes_forks\"} / 20",
- "hide": false,
- "legendFormat": "Forks",
- "range": true,
- "refId": "B"
- },
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\nvalue\nFROM sysom.sys_abnormal_metrics_node\nWHERE instance = '$node' AND metric_type = \"latency\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
+ {
+ "parameters": [],
+ "type": "function"
+ }
+ ],
+ "groupBy": [
+ {
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
+ }
+ ],
+ "limit": 50
+ }
+ }
+ ],
+ "title": "Latency Health",
+ "transformations": [
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"runq\"}",
- "hide": false,
- "legendFormat": "Running Threads",
- "range": true,
- "refId": "C"
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
},
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"plit\"}",
- "hide": false,
- "legendFormat": "Total Threads",
- "range": true,
- "refId": "D"
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
}
],
- "title": "Context Switches / Forks",
- "type": "timeseries"
+ "type": "table"
},
{
- "datasource": "sysom-prometheus",
- "description": "cgroup子系统周期内增长速率",
+ "datasource": "sysom-mysql",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
- "color": "green"
+ "color": "dark-red",
+ "value": null
},
{
"color": "red",
- "value": 80
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
}
]
- },
- "unit": "short"
+ }
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "app"
+ "options": "\u6307\u6807\u5f97\u5206"
},
"properties": [
{
- "id": "color",
+ "id": "custom.displayMode",
+ "value": "lcd-gauge"
+ },
+ {
+ "id": "color"
+ },
+ {
+ "id": "thresholds",
"value": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "dark-red",
+ "value": null
+ },
+ {
+ "color": "red",
+ "value": 60
+ },
+ {
+ "color": "#EAB839",
+ "value": 90
+ },
+ {
+ "color": "dark-green",
+ "value": 100
+ }
+ ]
}
+ },
+ {
+ "id": "custom.width",
+ "value": 155
}
]
},
{
"matcher": {
"id": "byName",
- "options": "kernel"
+ "options": "\u5f02\u5e38\u6307\u6807"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 150
}
]
},
{
"matcher": {
"id": "byName",
- "options": "free"
+ "options": "node"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "id": "custom.width",
+ "value": 155
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "pod"
+ },
+ "properties": [
+ {
+ "id": "custom.width",
+ "value": 135
}
]
}
]
},
"gridPos": {
- "h": 11,
- "w": 12,
- "x": 0,
- "y": 50
+ "h": 8,
+ "w": 6,
+ "x": 18,
+ "y": 18
},
- "id": 373,
+ "id": 441,
+ "interval": "30s",
"options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ "footer": {
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "show": false
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": false,
+ "displayName": "\u6307\u6807\u5f97\u5206"
+ }
+ ]
},
"pluginVersion": "9.2.2",
"targets": [
{
- "datasource": "sysom-prometheus",
+ "datasource": "sysom-mysql",
"editorMode": "code",
- "expr": "delta(sysom_cgroups{type=\"num_cgroups\",instance=\"$node\"}[$__range])",
- "hide": false,
- "legendFormat": "{{value}}",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "Cgroup Numbers Increase Rate",
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "关中断过长统计",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
+ "format": "table",
+ "rawQuery": true,
+ "rawSql": "SELECT \nmetric_id,\nscore,\ninstance,\nvalue\nFROM sysom.sys_abnormal_metrics_node\nWHERE instance = '$node' AND metric_type = \"error\"\nLIMIT 50 ",
+ "refId": "A",
+ "sql": {
+ "columns": [
{
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
+ "parameters": [],
+ "type": "function"
}
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "free"
- },
- "properties": [
+ ],
+ "groupBy": [
{
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
+ "property": {
+ "type": "string"
+ },
+ "type": "groupBy"
}
- ]
+ ],
+ "limit": 50
}
- ]
- },
- "gridPos": {
- "h": 11,
- "w": 12,
- "x": 12,
- "y": 50
- },
- "id": 396,
- "options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
}
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt50ms\",mod=\"irqoff\"}",
- "legendFormat": "DelayTime in (50ms,100ms)",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt100ms\",mod=\"irqoff\"}",
- "hide": false,
- "legendFormat": "DelayTime in [100ms, 500ms)",
- "range": true,
- "refId": "B"
- },
+ ],
+ "title": "Errors Health",
+ "transformations": [
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt500ms\",mod=\"irqoff\"}",
- "hide": false,
- "legendFormat": "DelayTime in [500ms, 1s)",
- "range": true,
- "refId": "C"
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "instance": false,
+ "namespace": true,
+ "value": false
+ },
+ "indexByName": {
+ "instance": 1,
+ "metric_id": 0,
+ "namespace": 3,
+ "pod": 2,
+ "score": 4,
+ "value": 5
+ },
+ "renameByName": {
+ "instance": "node",
+ "metric_id": "\u5f02\u5e38\u6307\u6807",
+ "pod": "",
+ "score": "\u6307\u6807\u5f97\u5206"
+ }
+ }
},
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt1s\",mod=\"irqoff\"}",
- "hide": false,
- "legendFormat": "DelayTime >= 1s",
- "range": true,
- "refId": "D"
+ "id": "convertFieldType",
+ "options": {
+ "conversions": [
+ {
+ "destinationType": "number",
+ "targetField": "\u6307\u6807\u5f97\u5206"
+ }
+ ],
+ "fields": {}
+ }
}
],
- "title": "IrqOff Count",
- "type": "timeseries"
+ "type": "table"
},
{
- "datasource": "sysom-prometheus",
- "description": "发生长时间不调度的次数",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 26
+ },
+ "id": 347,
+ "panels": [
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "short"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
}
- }
- ]
+ },
+ "links": [],
+ "mappings": [],
+ "unit": "%"
+ },
+ "overrides": []
},
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 0,
+ "y": 3
+ },
+ "id": 345,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "name"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
- }
- ]
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
},
- {
- "matcher": {
- "id": "byName",
- "options": "free"
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"idle\"}",
+ "legendFormat": "idle",
+ "range": true,
+ "refId": "A"
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
- },
- "gridPos": {
- "h": 11,
- "w": 12,
- "x": 0,
- "y": 61
- },
- "id": 354,
- "options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"user\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"nice\"}",
+ "hide": false,
+ "legendFormat": "user",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"} + on(instance)sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
+ "hide": false,
+ "legendFormat": "kernel",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"steal\"}",
+ "hide": false,
+ "legendFormat": "steal",
+ "range": true,
+ "refId": "D"
+ }
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt50ms\",mod=\"noschd\"}",
- "legendFormat": "DelayTime in (50ms,100ms)",
- "range": true,
- "refId": "A"
+ "title": "CPU Graph",
+ "type": "piechart"
},
{
"datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt100ms\",mod=\"noschd\"}",
- "hide": false,
- "legendFormat": "DelayTime in [100ms, 500ms)",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt500ms\",mod=\"noschd\"}",
- "hide": false,
- "legendFormat": "DelayTime in [500ms, 1s)",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt1s\",mod=\"noschd\"}",
- "hide": false,
- "legendFormat": "DelayTime >= 1s",
- "range": true,
- "refId": "D"
- }
- ],
- "title": "NoSched Count",
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "在就绪队列中等待的时间",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "axisSoftMax": 4,
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- {
- "color": "red",
- "value": 80
- }
- ]
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "mappings": [],
+ "unit": "%"
+ },
+ "overrides": []
},
- "unit": "ns"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 8,
+ "y": 3
+ },
+ "id": 348,
+ "options": {
+ "displayLabels": [
+ "name",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
},
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"}",
+ "legendFormat": "sys",
+ "range": true,
+ "refId": "A"
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"}",
+ "hide": false,
+ "legendFormat": "iowait",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"}",
+ "hide": false,
+ "legendFormat": "hardirq",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
+ "hide": false,
+ "legendFormat": "softirq",
+ "range": true,
+ "refId": "E"
+ }
+ ],
+ "title": "Kernel Used CPU",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
}
- }
- ]
+ },
+ "mappings": [],
+ "unit": "none"
+ },
+ "overrides": []
},
- {
- "matcher": {
- "id": "byName",
- "options": "free"
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 16,
+ "y": 3
+ },
+ "id": 356,
+ "options": {
+ "displayLabels": [
+ "value",
+ "percent"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_cgroups{instance=\"$node\",type=\"num_cgroups\"}",
+ "format": "time_series",
+ "instant": true,
+ "interval": "",
+ "legendFormat": "{{value}}",
+ "range": false,
+ "refId": "A"
+ }
+ ],
+ "title": "Cgroup Numbers",
+ "transformations": [
+ {
+ "id": "organize",
+ "options": {
+ "excludeByName": {
+ "Time": true,
+ "__name__": true,
+ "exported_instance": true,
+ "instance": true,
+ "job": true,
+ "type": true
+ },
+ "indexByName": {},
+ "renameByName": {
+ "Value": "Count",
+ "value": "Type"
}
}
- ]
- }
- ]
- },
- "gridPos": {
- "h": 11,
- "w": 12,
- "x": 12,
- "y": 61
- },
- "id": 355,
- "options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ }
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "type": "piechart"
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_schedstat{instance=\"$node\",value=\"delay\"}[$__rate_interval])",
- "legendFormat": "{{cpu}} WakeUp2Sched Delay",
- "range": true,
- "refId": "A"
- }
- ],
- "title": "WaitOnRunq Delay",
- "type": "timeseries"
- },
- {
- "collapsed": true,
- "datasource": "sysom-prometheus",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 72
- },
- "id": 266,
- "panels": [
{
"datasource": "sysom-prometheus",
"description": "",
@@ -2830,29 +2545,2419 @@
"color": {
"mode": "palette-classic"
},
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "%"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 0,
+ "y": 12
+ },
+ "id": 352,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"user\"}",
+ "hide": false,
+ "legendFormat": "user",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"sys\"}",
+ "hide": false,
+ "legendFormat": "sys",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"nice\"}",
+ "hide": false,
+ "legendFormat": "nice",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"idle\"}",
+ "legendFormat": "idle",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"iowait\"}",
+ "hide": false,
+ "legendFormat": "iowait",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"hardirq\"}",
+ "hide": false,
+ "legendFormat": "hardirq",
+ "range": true,
+ "refId": "F"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"softirq\"}",
+ "hide": false,
+ "legendFormat": "softirq",
+ "range": true,
+ "refId": "G"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_cpu_total{instance=\"$node\",mode=\"steal\"}",
+ "hide": false,
+ "legendFormat": "steal",
+ "range": true,
+ "refId": "H"
+ }
+ ],
+ "title": "CPU Used",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "%"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 12,
+ "y": 12
+ },
+ "id": 398,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "100 - sysom_proc_cpus{instance=\"$node\",mode=\"idle\"}",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "{{cpu_name}} busy",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "CPU Used",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "sys"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "hardirq"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 0,
+ "y": 23
+ },
+ "id": 351,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load1\"}",
+ "legendFormat": "load 1m",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load5\"}",
+ "hide": false,
+ "legendFormat": "load 5m",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"load15\"}",
+ "hide": false,
+ "legendFormat": "load 15m",
+ "range": true,
+ "refId": "C"
+ }
+ ],
+ "title": "System Load",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 12,
+ "y": 23
+ },
+ "id": 372,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sum by(value)(rate(sysom_interrupts{instance=\"$node\"}[$__rate_interval]))",
+ "hide": false,
+ "legendFormat": "{{value}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Hardirqs Rate",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 0,
+ "y": 34
+ },
+ "id": 350,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_sirq{instance=\"$node\"}[$__rate_interval])",
+ "hide": false,
+ "legendFormat": "{{type}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Softirqs Rate",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "log": 10,
+ "type": "log"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "sys"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "hardirq"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 12,
+ "y": 34
+ },
+ "id": 353,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_stat_counters{instance=\"$node\",counter=\"ctxt\"} / 20",
+ "legendFormat": "Context Switches",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_stat_counters{instance=\"$node\",counter=\"processes_forks\"} / 20",
+ "hide": false,
+ "legendFormat": "Forks",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"runq\"}",
+ "hide": false,
+ "legendFormat": "Running Threads",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_loadavg{instance=\"$node\",value=\"plit\"}",
+ "hide": false,
+ "legendFormat": "Total Threads",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "Context Switches / Forks",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "cgroup\u5b50\u7cfb\u7edf\u5468\u671f\u5185\u589e\u957f\u901f\u7387",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 0,
+ "y": 45
+ },
+ "id": 373,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "delta(sysom_cgroups{type=\"num_cgroups\",instance=\"$node\"}[$__range])",
+ "hide": false,
+ "legendFormat": "{{value}}",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "Cgroup Numbers Increase Rate",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5173\u4e2d\u65ad\u8fc7\u957f\u7edf\u8ba1",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 12,
+ "y": 45
+ },
+ "id": 396,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt50ms\",mod=\"irqoff\"}",
+ "legendFormat": "DelayTime in (50ms,100ms)",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt100ms\",mod=\"irqoff\"}",
+ "hide": false,
+ "legendFormat": "DelayTime in [100ms, 500ms)",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt500ms\",mod=\"irqoff\"}",
+ "hide": false,
+ "legendFormat": "DelayTime in [500ms, 1s)",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt1s\",mod=\"irqoff\"}",
+ "hide": false,
+ "legendFormat": "DelayTime >= 1s",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "IrqOff Count",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u53d1\u751f\u957f\u65f6\u95f4\u4e0d\u8c03\u5ea6\u7684\u6b21\u6570",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 0,
+ "y": 56
+ },
+ "id": 354,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt50ms\",mod=\"noschd\"}",
+ "legendFormat": "DelayTime in (50ms,100ms)",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt100ms\",mod=\"noschd\"}",
+ "hide": false,
+ "legendFormat": "DelayTime in [100ms, 500ms)",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt500ms\",mod=\"noschd\"}",
+ "hide": false,
+ "legendFormat": "DelayTime in [500ms, 1s)",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sched_moni_jitter{instance=\"$node\",value=\"gt1s\",mod=\"noschd\"}",
+ "hide": false,
+ "legendFormat": "DelayTime >= 1s",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "NoSched Count",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5728\u5c31\u7eea\u961f\u5217\u4e2d\u7b49\u5f85\u7684\u65f6\u95f4",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "axisSoftMax": 4,
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "ns"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 11,
+ "w": 12,
+ "x": 12,
+ "y": 56
+ },
+ "id": 355,
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_schedstat{instance=\"$node\",value=\"delay\"}[$__rate_interval])",
+ "legendFormat": "{{cpu}} WakeUp2Sched Delay",
+ "range": true,
+ "refId": "A"
+ }
+ ],
+ "title": "WaitOnRunq Delay",
+ "type": "timeseries"
+ }
+ ],
+ "title": "System CPU and Schedule",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "datasource": "sysom-prometheus",
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 27
+ },
+ "id": 266,
+ "panels": [
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "decimals": 2,
+ "mappings": [],
+ "min": -4,
+ "unit": "kbytes"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel reserved"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "red",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 0,
+ "y": 3
+ },
+ "id": 333,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_reserved\"}",
+ "legendFormat": "system reserved",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"MemFree\"}",
+ "hide": false,
+ "legendFormat": "free",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_used\"}",
+ "hide": false,
+ "legendFormat": "app use",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_used\"} - on(instance)sysom_proc_meminfo{value=\"kernel_reserved\"}",
+ "hide": false,
+ "legendFormat": "kernel use",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "Memory Graph",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "mappings": [],
+ "unit": "kbytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 8,
+ "y": 3
+ },
+ "id": 334,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"VmallocUsed\"}",
+ "hide": false,
+ "legendFormat": "VmallocUsed",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SReclaimable\"}",
+ "hide": false,
+ "legendFormat": "SReclaimable",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SUnreclaim\"}",
+ "hide": false,
+ "legendFormat": "SUnreclaim",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"PageTables\"}",
+ "hide": false,
+ "legendFormat": "PageTables",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"alloc_page\"}",
+ "hide": false,
+ "legendFormat": "alloc_page",
+ "range": true,
+ "refId": "F"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"KernelStack\"}",
+ "hide": false,
+ "legendFormat": "KernelStack",
+ "range": true,
+ "refId": "G"
+ }
+ ],
+ "title": "Kernel Used Memory",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "mappings": [],
+ "unit": "kbytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 8,
+ "x": 16,
+ "y": 3
+ },
+ "id": 335,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_filecache\"}",
+ "legendFormat": "filecache",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_anon\"}",
+ "hide": false,
+ "legendFormat": "anon",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_mlock\"}",
+ "hide": false,
+ "legendFormat": "mlock",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_buffers\"}",
+ "hide": false,
+ "legendFormat": "buffers",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_shmem\"}",
+ "hide": false,
+ "legendFormat": "shmem",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_1G\"}",
+ "hide": false,
+ "legendFormat": "huge_1G",
+ "range": true,
+ "refId": "F"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_2M\"}",
+ "hide": false,
+ "legendFormat": "huge_2M",
+ "range": true,
+ "refId": "G"
+ }
+ ],
+ "title": "User Used Memory",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5185\u5b58\u4f7f\u7528\u7387",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "left",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "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"
+ }
+ ]
+ },
+ "unit": "kbytes"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 11
+ },
+ "id": 331,
+ "links": [],
+ "options": {
+ "legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 350
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.0",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "#node_memory_Inactive_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"total\",instance=\"$node\"}\n",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "Total",
+ "range": true,
+ "refId": "A",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "#node_memory_Active_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"total\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"MemFree\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"Cached\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"Buffers\",instance=\"$node\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "Used",
+ "range": true,
+ "refId": "B",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{value=\"MemFree\",instance=\"$node\"}",
+ "format": "time_series",
+ "hide": false,
+ "intervalFactor": 1,
+ "legendFormat": "Free",
+ "range": true,
+ "refId": "C",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{value=\"Cached\",instance=\"$node\"} + on(instance)sysom_proc_meminfo{value=\"Buffers\",instance=\"$node\"}",
+ "format": "time_series",
+ "hide": false,
+ "intervalFactor": 1,
+ "legendFormat": "Buffers+Cached",
+ "range": true,
+ "refId": "D",
+ "step": 240
+ }
+ ],
+ "title": "Memory Usage",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u5185\u5b58\u4f19\u4f34\u7cfb\u7edf\u60c5\u51b5",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "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": "none"
+ },
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Apps"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#629E51",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Buffers"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#614D93",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Cache"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#6D1F62",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Cached"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#511749",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Committed"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#508642",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#0A437C",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#CFFAFF",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Inactive"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#584477",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "PageTables"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#0A50A1",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Page_Tables"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#0A50A1",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "RAM_Free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#E0F9D7",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Slab"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#806EB7",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "Slab_Cache"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#E0752D",
+ "mode": "fixed"
+ }
+ }
+ ]
},
- "decimals": 2,
- "mappings": [],
- "min": -4,
- "unit": "kbytes"
- },
- "overrides": [
{
"matcher": {
"id": "byName",
- "options": "app"
+ "options": "Swap"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "blue",
+ "fixedColor": "#BF1B00",
"mode": "fixed"
}
}
@@ -2861,13 +4966,13 @@
{
"matcher": {
"id": "byName",
- "options": "kernel"
+ "options": "Swap_Cache"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "yellow",
+ "fixedColor": "#C15C17",
"mode": "fixed"
}
}
@@ -2876,13 +4981,13 @@
{
"matcher": {
"id": "byName",
- "options": "free"
+ "options": "Swap_Free"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "green",
+ "fixedColor": "#2F575E",
"mode": "fixed"
}
}
@@ -2891,204 +4996,200 @@
{
"matcher": {
"id": "byName",
- "options": "kernel reserved"
+ "options": "Unused"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "red",
+ "fixedColor": "#EAB839",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*CommitLimit - *./"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#BF1B00",
"mode": "fixed"
}
+ },
+ {
+ "id": "custom.fillOpacity",
+ "value": 0
}
]
}
]
},
"gridPos": {
- "h": 8,
- "w": 8,
- "x": 0,
- "y": 3
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 11
},
- "id": 333,
+ "id": 135,
+ "links": [],
"options": {
- "displayLabels": [
- "percent",
- "value"
- ],
"legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
"calcs": [
+ "min",
+ "mean",
+ "max",
"lastNotNull"
],
- "fields": "",
- "values": false
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 350
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_reserved\"}",
- "legendFormat": "system reserved",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo0\",instance=\"$node\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "4K",
"range": true,
- "refId": "A"
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"MemFree\"}",
- "hide": false,
- "legendFormat": "free",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo1\",instance=\"$node\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "8K",
"range": true,
- "refId": "B"
+ "refId": "B",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_used\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo2\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "app use",
+ "intervalFactor": 1,
+ "legendFormat": "16K",
"range": true,
- "refId": "C"
+ "refId": "D",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_used\"} - on(instance)sysom_proc_meminfo{value=\"kernel_reserved\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo3\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "kernel use",
+ "intervalFactor": 1,
+ "legendFormat": "32K",
"range": true,
- "refId": "D"
- }
- ],
- "title": "Memory Graph",
- "type": "piechart"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- }
- },
- "mappings": [],
- "unit": "kbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 8,
- "w": 8,
- "x": 8,
- "y": 3
- },
- "id": 334,
- "options": {
- "displayLabels": [
- "percent",
- "value"
- ],
- "legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
+ "refId": "E",
+ "step": 240
},
- "pieType": "pie",
- "reduceOptions": {
- "calcs": [],
- "fields": "",
- "values": false
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo4\",instance=\"$node\"}",
+ "format": "time_series",
+ "hide": false,
+ "intervalFactor": 1,
+ "legendFormat": "64K",
+ "range": true,
+ "refId": "F",
+ "step": 240
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"VmallocUsed\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo5\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "VmallocUsed",
+ "intervalFactor": 1,
+ "legendFormat": "128K",
"range": true,
- "refId": "B"
+ "refId": "G",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SReclaimable\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo6\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "SReclaimable",
+ "intervalFactor": 1,
+ "legendFormat": "256K",
"range": true,
- "refId": "C"
+ "refId": "H",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SUnreclaim\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo7\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "SUnreclaim",
+ "intervalFactor": 1,
+ "legendFormat": "512K",
"range": true,
- "refId": "D"
+ "refId": "I",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"PageTables\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo8\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "PageTables",
+ "intervalFactor": 1,
+ "legendFormat": "1M",
"range": true,
- "refId": "E"
+ "refId": "J",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"alloc_page\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo9\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "alloc_page",
+ "intervalFactor": 1,
+ "legendFormat": "2M",
"range": true,
- "refId": "F"
+ "refId": "K",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"KernelStack\"}",
+ "expr": "sysom_proc_buddyinfo{value=\"buddyinfo10\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "KernelStack",
+ "intervalFactor": 1,
+ "legendFormat": "4M",
"range": true,
- "refId": "G"
+ "refId": "L",
+ "step": 240
}
],
- "title": "Kernel Used Memory",
- "type": "piechart"
+ "title": "Memory BuddyInfo",
+ "type": "timeseries"
},
{
"datasource": "sysom-prometheus",
@@ -3099,42 +5200,66 @@
"mode": "palette-classic"
},
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "left",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
}
},
"mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
"unit": "kbytes"
},
"overrides": []
},
"gridPos": {
- "h": 8,
- "w": 8,
- "x": 16,
- "y": 3
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 21
},
- "id": 335,
+ "id": 336,
"options": {
- "displayLabels": [
- "percent",
- "value"
- ],
"legend": {
+ "calcs": [
+ "min",
+ "mean",
+ "max",
+ "lastNotNull"
+ ],
"displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
- "calcs": [],
- "fields": "",
- "values": false
+ "placement": "bottom",
+ "showLegend": true
},
"tooltip": {
"mode": "single",
@@ -3146,72 +5271,73 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_filecache\"}",
- "legendFormat": "filecache",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_reserved\"}",
+ "hide": false,
+ "legendFormat": "reserved",
"range": true,
"refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_anon\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"VmallocUsed\"}",
"hide": false,
- "legendFormat": "anon",
+ "legendFormat": "VmallocUsed",
"range": true,
"refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_mlock\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SReclaimable\"}",
"hide": false,
- "legendFormat": "mlock",
+ "legendFormat": "SReclaimable",
"range": true,
"refId": "C"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_buffers\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SUnreclaim\"}",
"hide": false,
- "legendFormat": "buffers",
+ "legendFormat": "SUnreclaim",
"range": true,
"refId": "D"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_shmem\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"PageTables\"}",
"hide": false,
- "legendFormat": "shmem",
+ "legendFormat": "PageTables",
"range": true,
"refId": "E"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_1G\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"alloc_page\"}",
"hide": false,
- "legendFormat": "huge_1G",
+ "legendFormat": "alloc_page",
"range": true,
"refId": "F"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_2M\"}",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"KernelStack\"}",
"hide": false,
- "legendFormat": "huge_2M",
+ "legendFormat": "KernelStack",
"range": true,
"refId": "G"
}
],
- "title": "User Used Memory",
- "type": "piechart"
+ "title": "Kernel Used Memory",
+ "type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "内存使用率",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -3221,7 +5347,7 @@
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
- "axisPlacement": "left",
+ "axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
@@ -3237,7 +5363,7 @@
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "never",
+ "showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
@@ -3247,9 +5373,7 @@
"mode": "off"
}
},
- "links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -3260,16 +5384,61 @@
},
"unit": "kbytes"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "app"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "blue",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "kernel"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "yellow",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "free"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "green",
+ "mode": "fixed"
+ }
+ }
+ ]
+ }
+ ]
},
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
- "y": 11
+ "x": 12,
+ "y": 21
},
- "id": 331,
- "links": [],
+ "id": 337,
"options": {
"legend": {
"calcs": [
@@ -3280,69 +5449,84 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 350
+ "showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "#node_memory_Inactive_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"total\",instance=\"$node\"}\n",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Total",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_filecache\"}",
+ "legendFormat": "filecache",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "#node_memory_Active_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"total\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"MemFree\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"Cached\",instance=\"$node\"} - on(instance)sysom_proc_meminfo{value=\"Buffers\",instance=\"$node\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Used",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_anon\"}",
+ "hide": false,
+ "legendFormat": "anon",
"range": true,
- "refId": "B",
- "step": 240
+ "refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{value=\"MemFree\",instance=\"$node\"}",
- "format": "time_series",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_mlock\"}",
"hide": false,
- "intervalFactor": 1,
- "legendFormat": "Free",
+ "legendFormat": "mlock",
"range": true,
- "refId": "C",
- "step": 240
+ "refId": "C"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{value=\"Cached\",instance=\"$node\"} + on(instance)sysom_proc_meminfo{value=\"Buffers\",instance=\"$node\"}",
- "format": "time_series",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_buffers\"}",
"hide": false,
- "intervalFactor": 1,
- "legendFormat": "Buffers+Cached",
+ "legendFormat": "buffers",
"range": true,
- "refId": "D",
- "step": 240
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_shmem\"}",
+ "hide": false,
+ "legendFormat": "shmem",
+ "range": true,
+ "refId": "E"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_1G\"}",
+ "hide": false,
+ "legendFormat": "huge_1G",
+ "range": true,
+ "refId": "F"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_2M\"}",
+ "hide": false,
+ "legendFormat": "huge_2M",
+ "range": true,
+ "refId": "G"
}
],
- "title": "Memory Usage",
+ "title": "User Used Memory",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "内存伙伴系统情况",
+ "description": "THP\u7533\u8bf7\u9891\u7387",
"fieldConfig": {
"defaults": {
"color": {
@@ -3646,27 +5830,8 @@
"id": "color",
"value": {
"fixedColor": "#EAB839",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*CommitLimit - *./"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#BF1B00",
- "mode": "fixed"
- }
- },
- {
- "id": "custom.fillOpacity",
- "value": 0
+ "mode": "fixed"
+ }
}
]
}
@@ -3675,10 +5840,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 11
+ "x": 0,
+ "y": 31
},
- "id": 135,
+ "id": 191,
"links": [],
"options": {
"legend": {
@@ -3703,140 +5868,70 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo0\",instance=\"$node\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "4K",
- "range": true,
- "refId": "A",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo1\",instance=\"$node\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "8K",
- "range": true,
- "refId": "B",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo2\",instance=\"$node\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "16K",
- "range": true,
- "refId": "D",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo3\",instance=\"$node\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "32K",
- "range": true,
- "refId": "E",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo4\",instance=\"$node\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "64K",
- "range": true,
- "refId": "F",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo5\",instance=\"$node\"}",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "128K",
- "range": true,
- "refId": "G",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo6\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_vmstat{value=\"thp_fault_alloc\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "256K",
+ "legendFormat": "THP Fault Alloc Times",
"range": true,
- "refId": "H",
+ "refId": "A",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo7\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_vmstat{value=\"thp_fault_fallback\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "512K",
+ "legendFormat": "THP Fault Fallback",
"range": true,
- "refId": "I",
+ "refId": "B",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo8\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_vmstat{value=\"thp_collapse_alloc\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "1M",
+ "legendFormat": "THP Collapse Alloc",
"range": true,
- "refId": "J",
+ "refId": "C",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo9\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_vmstat{value=\"thp_collapse_alloc_failed\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "2M",
+ "legendFormat": "THP Collapse Alloc Fail",
"range": true,
- "refId": "K",
+ "refId": "D",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_buddyinfo{value=\"buddyinfo10\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_meminfo{value=\"AnonHugePages\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "4M",
+ "legendFormat": "THP Page Count",
"range": true,
- "refId": "L",
+ "refId": "E",
"step": 240
}
],
- "title": "Memory BuddyInfo",
+ "title": "THP Alloc Rate",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "\u53ef\u56de\u6536\u548c\u4e0d\u53ef\u56de\u6536Slab\u5185\u5b58\u5927\u5c0f",
"fieldConfig": {
"defaults": {
"color": {
@@ -3862,151 +5957,7 @@
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "kbytes"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 0,
- "y": 21
- },
- "id": 336,
- "options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"kernel_reserved\"}",
- "hide": false,
- "legendFormat": "reserved",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"VmallocUsed\"}",
- "hide": false,
- "legendFormat": "VmallocUsed",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SReclaimable\"}",
- "hide": false,
- "legendFormat": "SReclaimable",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"SUnreclaim\"}",
- "hide": false,
- "legendFormat": "SUnreclaim",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"PageTables\"}",
- "hide": false,
- "legendFormat": "PageTables",
- "range": true,
- "refId": "E"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"alloc_page\"}",
- "hide": false,
- "legendFormat": "alloc_page",
- "range": true,
- "refId": "F"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"KernelStack\"}",
- "hide": false,
- "legendFormat": "KernelStack",
- "range": true,
- "refId": "G"
- }
- ],
- "title": "Kernel Used Memory",
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
+ "showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
@@ -4016,7 +5967,9 @@
"mode": "off"
}
},
+ "links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -4027,61 +5980,16 @@
},
"unit": "kbytes"
},
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "app"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "blue",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "kernel"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "yellow",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "free"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "green",
- "mode": "fixed"
- }
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
- "y": 21
+ "y": 31
},
- "id": 337,
+ "id": 136,
+ "links": [],
"options": {
"legend": {
"calcs": [
@@ -4092,84 +6000,46 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true
+ "showLegend": true,
+ "width": 350
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_filecache\"}",
- "legendFormat": "filecache",
- "range": true,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_anon\"}",
- "hide": false,
- "legendFormat": "anon",
- "range": true,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_mlock\"}",
- "hide": false,
- "legendFormat": "mlock",
- "range": true,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_buffers\"}",
- "hide": false,
- "legendFormat": "buffers",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_shmem\"}",
- "hide": false,
- "legendFormat": "shmem",
- "range": true,
- "refId": "E"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_1G\"}",
- "hide": false,
- "legendFormat": "huge_1G",
+ "expr": "#node_memory_Inactive_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"SReclaimable\",instance=\"$node\"}\n",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "Reclaimable",
"range": true,
- "refId": "F"
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{instance=\"$node\",value=\"user_huge_2M\"}",
+ "expr": "sysom_proc_meminfo{value=\"SUnreclaim\",instance=\"$node\"}",
+ "format": "time_series",
"hide": false,
- "legendFormat": "huge_2M",
+ "intervalFactor": 1,
+ "legendFormat": "Unreclaim",
"range": true,
- "refId": "G"
+ "refId": "D",
+ "step": 240
}
],
- "title": "User Used Memory",
+ "title": "Memory Slab",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "THP申请频率",
+ "description": "Page\u6362\u8fdb\u6362\u51fa\u9891\u7387",
"fieldConfig": {
"defaults": {
"color": {
@@ -4477,6 +6347,30 @@
}
}
]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "ShmemHugePages - Memory used by shared memory (shmem) and tmpfs allocated with huge pages"
+ },
+ "properties": [
+ {
+ "id": "custom.fillOpacity",
+ "value": 0
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "ShmemHugePages - Memory used by shared memory (shmem) and tmpfs allocated with huge pages"
+ },
+ "properties": [
+ {
+ "id": "custom.fillOpacity",
+ "value": 0
+ }
+ ]
}
]
},
@@ -4484,9 +6378,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 31
+ "y": 41
},
- "id": 191,
+ "id": 138,
"links": [],
"options": {
"legend": {
@@ -4511,11 +6405,10 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"thp_fault_alloc\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{value=\"pgpgin\",instance=\"$node\"}[1m])",
"format": "time_series",
- "hide": false,
"intervalFactor": 1,
- "legendFormat": "THP Fault Alloc Times",
+ "legendFormat": "Page In",
"range": true,
"refId": "A",
"step": 240
@@ -4523,11 +6416,10 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"thp_fault_fallback\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{value=\"pgpgout\",instance=\"$node\"}[1m])",
"format": "time_series",
- "hide": false,
"intervalFactor": 1,
- "legendFormat": "THP Fault Fallback",
+ "legendFormat": "Page Out",
"range": true,
"refId": "B",
"step": 240
@@ -4535,11 +6427,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"thp_collapse_alloc\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{value=\"pswpin\",instance=\"$node\"}[1m])",
"format": "time_series",
- "hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "THP Collapse Alloc",
+ "legendFormat": "pswpin",
"range": true,
"refId": "C",
"step": 240
@@ -4547,34 +6439,22 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"thp_collapse_alloc_failed\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{value=\"pswpout\",instance=\"$node\"}[1m])",
"format": "time_series",
- "hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "THP Collapse Alloc Fail",
+ "legendFormat": "pswpout",
"range": true,
"refId": "D",
"step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_meminfo{value=\"AnonHugePages\",instance=\"$node\"}[1m])",
- "format": "time_series",
- "hide": false,
- "intervalFactor": 1,
- "legendFormat": "THP Page Count",
- "range": true,
- "refId": "E",
- "step": 240
}
],
- "title": "THP Alloc Rate",
+ "title": "Page In/Out",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "可回收和不可回收Slab内存大小",
+ "description": "PageFault\u9891\u7387",
"fieldConfig": {
"defaults": {
"color": {
@@ -4584,7 +6464,7 @@
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
- "axisPlacement": "left",
+ "axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 20,
@@ -4595,12 +6475,15 @@
"viz": false
},
"lineInterpolation": "linear",
+ "lineStyle": {
+ "fill": "solid"
+ },
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "never",
+ "showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
@@ -4621,7 +6504,7 @@
}
]
},
- "unit": "kbytes"
+ "unit": "short"
},
"overrides": []
},
@@ -4629,9 +6512,9 @@
"h": 10,
"w": 12,
"x": 12,
- "y": 31
+ "y": 41
},
- "id": 136,
+ "id": 131,
"links": [],
"options": {
"legend": {
@@ -4643,11 +6526,10 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 350
+ "showLegend": true
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
@@ -4656,10 +6538,10 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "#node_memory_Inactive_bytes{instance=\"$node\",job=\"$job\"}\nsysom_proc_meminfo{value=\"SReclaimable\",instance=\"$node\"}\n",
+ "expr": "rate(sysom_proc_vmstat{value=\"pgfault\",instance=\"$node\"}[1m])",
"format": "time_series",
"intervalFactor": 1,
- "legendFormat": "Reclaimable",
+ "legendFormat": "PageFault",
"range": true,
"refId": "A",
"step": 240
@@ -4667,22 +6549,33 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_meminfo{value=\"SUnreclaim\",instance=\"$node\"}",
+ "expr": "rate(sysom_proc_vmstat{value=\"pgmajfault\",instance=\"$node\"}[1m])",
"format": "time_series",
"hide": false,
"intervalFactor": 1,
- "legendFormat": "Unreclaim",
+ "legendFormat": "Pgmajfault",
"range": true,
- "refId": "D",
+ "refId": "B",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_vmstat{value=\"pgfault\",instance=\"$node\"}[1m]) - on(instance)rate(sysom_proc_vmstat{value=\"pgmajfault\",instance=\"$node\"}[1m])",
+ "format": "time_series",
+ "hide": false,
+ "intervalFactor": 1,
+ "legendFormat": "Pgminfault",
+ "range": true,
+ "refId": "C",
"step": 240
}
],
- "title": "Memory Slab",
+ "title": "PageFault Rate",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "Page换进换出频率",
"fieldConfig": {
"defaults": {
"color": {
@@ -4691,7 +6584,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "",
+ "axisLabel": "counter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -4726,26 +6619,22 @@
"steps": [
{
"color": "green"
- },
- {
- "color": "red",
- "value": 80
}
]
},
- "unit": "none"
+ "unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "Apps"
+ "options": "Active"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#629E51",
+ "fixedColor": "#99440A",
"mode": "fixed"
}
}
@@ -4760,7 +6649,7 @@
{
"id": "color",
"value": {
- "fixedColor": "#614D93",
+ "fixedColor": "#58140C",
"mode": "fixed"
}
}
@@ -4814,13 +6703,13 @@
{
"matcher": {
"id": "byName",
- "options": "Free"
+ "options": "Dirty"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#0A437C",
+ "fixedColor": "#6ED0E0",
"mode": "fixed"
}
}
@@ -4829,13 +6718,13 @@
{
"matcher": {
"id": "byName",
- "options": "Hardware Corrupted - Amount of RAM that the kernel identified as corrupted / not working"
+ "options": "Free"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#CFFAFF",
+ "fixedColor": "#B7DBAB",
"mode": "fixed"
}
}
@@ -4850,7 +6739,7 @@
{
"id": "color",
"value": {
- "fixedColor": "#584477",
+ "fixedColor": "#EA6460",
"mode": "fixed"
}
}
@@ -4859,13 +6748,13 @@
{
"matcher": {
"id": "byName",
- "options": "PageTables"
+ "options": "Mapped"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#0A50A1",
+ "fixedColor": "#052B51",
"mode": "fixed"
}
}
@@ -4874,7 +6763,7 @@
{
"matcher": {
"id": "byName",
- "options": "Page_Tables"
+ "options": "PageTables"
},
"properties": [
{
@@ -4889,13 +6778,13 @@
{
"matcher": {
"id": "byName",
- "options": "RAM_Free"
+ "options": "Page_Tables"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#E0F9D7",
+ "fixedColor": "#0A50A1",
"mode": "fixed"
}
}
@@ -4904,13 +6793,13 @@
{
"matcher": {
"id": "byName",
- "options": "Slab"
+ "options": "Slab_Cache"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#806EB7",
+ "fixedColor": "#EAB839",
"mode": "fixed"
}
}
@@ -4919,13 +6808,13 @@
{
"matcher": {
"id": "byName",
- "options": "Slab_Cache"
+ "options": "Swap"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#E0752D",
+ "fixedColor": "#BF1B00",
"mode": "fixed"
}
}
@@ -4934,13 +6823,13 @@
{
"matcher": {
"id": "byName",
- "options": "Swap"
+ "options": "Swap_Cache"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#BF1B00",
+ "fixedColor": "#C15C17",
"mode": "fixed"
}
}
@@ -4949,13 +6838,13 @@
{
"matcher": {
"id": "byName",
- "options": "Swap_Cache"
+ "options": "Total"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#C15C17",
+ "fixedColor": "#511749",
"mode": "fixed"
}
}
@@ -4964,13 +6853,13 @@
{
"matcher": {
"id": "byName",
- "options": "Swap_Free"
+ "options": "Total RAM"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#2F575E",
+ "fixedColor": "#052B51",
"mode": "fixed"
}
}
@@ -4979,13 +6868,13 @@
{
"matcher": {
"id": "byName",
- "options": "Unused"
+ "options": "Total RAM + Swap"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#EAB839",
+ "fixedColor": "#052B51",
"mode": "fixed"
}
}
@@ -4994,24 +6883,30 @@
{
"matcher": {
"id": "byName",
- "options": "ShmemHugePages - Memory used by shared memory (shmem) and tmpfs allocated with huge pages"
+ "options": "Total Swap"
},
"properties": [
{
- "id": "custom.fillOpacity",
- "value": 0
+ "id": "color",
+ "value": {
+ "fixedColor": "#614D93",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
"id": "byName",
- "options": "ShmemHugePages - Memory used by shared memory (shmem) and tmpfs allocated with huge pages"
+ "options": "VmallocUsed"
},
"properties": [
{
- "id": "custom.fillOpacity",
- "value": 0
+ "id": "color",
+ "value": {
+ "fixedColor": "#EA6460",
+ "mode": "fixed"
+ }
}
]
}
@@ -5021,143 +6916,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 41
- },
- "id": 138,
- "links": [],
- "options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true,
- "width": 350
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.0",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pgpgin\",instance=\"$node\"}[1m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Page In",
- "range": true,
- "refId": "A",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pgpgout\",instance=\"$node\"}[1m])",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "Page Out",
- "range": true,
- "refId": "B",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pswpin\",instance=\"$node\"}[1m])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pswpin",
- "range": true,
- "refId": "C",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pswpout\",instance=\"$node\"}[1m])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pswpout",
- "range": true,
- "refId": "D",
- "step": 240
- }
- ],
- "title": "Page In/Out",
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "PageFault频率",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineStyle": {
- "fill": "solid"
- },
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "links": [],
- "mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "short"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 10,
- "w": 12,
- "x": 12,
- "y": 41
+ "y": 51
},
- "id": 131,
+ "id": 307,
"links": [],
"options": {
"legend": {
@@ -5181,40 +6942,44 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pgfault\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_stall\"}[1m])",
"format": "time_series",
+ "hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "PageFault",
+ "legendFormat": "compact_stall",
"range": true,
- "refId": "A",
+ "refId": "E",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pgmajfault\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_success\"}[1m])",
"format": "time_series",
"hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "Pgmajfault",
+ "legendFormat": "compact_success",
"range": true,
- "refId": "B",
+ "refId": "F",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{value=\"pgfault\",instance=\"$node\"}[1m]) - on(instance)rate(sysom_proc_vmstat{value=\"pgmajfault\",instance=\"$node\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_fail\"}[1m])",
"format": "time_series",
"hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "Pgminfault",
+ "legendFormat": "compact_fail",
"range": true,
- "refId": "C",
+ "refId": "A",
"step": 240
}
],
- "title": "PageFault Rate",
+ "title": "Memory Compact ",
"type": "timeseries"
},
{
@@ -5558,10 +7323,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 51
},
- "id": 307,
+ "id": 339,
"links": [],
"options": {
"legend": {
@@ -5585,86 +7350,122 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_stall\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_kswapd\"}[1m])",
+ "format": "time_series",
+ "hide": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "pgscan_kswapd",
+ "range": true,
+ "refId": "B",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_direct\"}[1m])",
+ "format": "time_series",
+ "hide": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "pgscan_direct",
+ "range": true,
+ "refId": "C",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"oom_kill\"}[1m])",
+ "format": "time_series",
+ "hide": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "oom_kill",
+ "range": true,
+ "refId": "D",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgsteal_kswapd\"}[1m])",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "compact_stall",
+ "legendFormat": "pgsteal_kswapd",
"range": true,
- "refId": "E",
+ "refId": "A",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_success\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgsteal_direct\"}[1m])",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "compact_success",
+ "legendFormat": "pgsteal_direct",
"range": true,
- "refId": "F",
+ "refId": "E",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"compact_fail\"}[1m])",
+ "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_direct_throttle\"}[1m])",
"format": "time_series",
"hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "compact_fail",
+ "legendFormat": "pgscan_direct_throttle",
"range": true,
- "refId": "A",
+ "refId": "F",
"step": 240
}
],
- "title": "Memory Compact ",
+ "title": "Memory Others",
"type": "timeseries"
- },
+ }
+ ],
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "refId": "A"
+ }
+ ],
+ "title": "System Memory",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "datasource": "sysom-prometheus",
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 28
+ },
+ "id": 270,
+ "panels": [
{
"datasource": "sysom-prometheus",
+ "description": "\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u60c5\u51b5\uff0c\u7c7b\u4f3cdf -h\u7684\u7ed3\u679c",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
+ "mode": "thresholds"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "counter",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "align": "auto",
+ "displayMode": "auto",
+ "inspect": false,
+ "minWidth": 50
},
- "links": [],
+ "decimals": 2,
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -5673,260 +7474,191 @@
}
]
},
- "unit": "short"
+ "unit": "kbytes"
},
"overrides": [
{
"matcher": {
"id": "byName",
- "options": "Active"
+ "options": "Time"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#99440A",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Buffers"
+ "options": "exported_instance"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#58140C",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Cache"
+ "options": "instance"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#6D1F62",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Cached"
+ "options": "job"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#511749",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Committed"
+ "options": "Value #B"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#508642",
- "mode": "fixed"
- }
+ "id": "displayName",
+ "value": "Used"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Dirty"
+ "options": "mount 2"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#6ED0E0",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Free"
+ "options": "Value #A"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#B7DBAB",
- "mode": "fixed"
- }
+ "id": "displayName",
+ "value": "Size"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Inactive"
+ "options": "mount"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#EA6460",
- "mode": "fixed"
- }
+ "id": "displayName",
+ "value": "Mounted on"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Mapped"
+ "options": "counter 1"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#052B51",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "PageTables"
+ "options": "counter 2"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#0A50A1",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Page_Tables"
+ "options": "Time 3"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#0A50A1",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Slab_Cache"
+ "options": "fs 2"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#EAB839",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Swap"
+ "options": "Value #C"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#BF1B00",
- "mode": "fixed"
- }
+ "id": "displayName",
+ "value": "Available"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Swap_Cache"
+ "options": "Use%"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#C15C17",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Total"
- },
- "properties": [
+ "id": "unit",
+ "value": "percentunit"
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "#511749",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Total RAM"
- },
- "properties": [
+ "id": "decimals",
+ "value": 2
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "#052B51",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Total RAM + Swap"
- },
- "properties": [
+ "id": "custom.displayMode",
+ "value": "gradient-gauge"
+ },
+ {
+ "id": "max",
+ "value": 1
+ },
{
"id": "color",
"value": {
- "fixedColor": "#052B51",
- "mode": "fixed"
+ "mode": "continuous-GrYlRd"
}
}
]
@@ -5934,168 +7666,138 @@
{
"matcher": {
"id": "byName",
- "options": "Total Swap"
+ "options": "Total Size(ignore reserve)"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#614D93",
- "mode": "fixed"
- }
+ "id": "custom.hidden",
+ "value": true
}
]
},
{
"matcher": {
"id": "byName",
- "options": "VmallocUsed"
+ "options": "fs 1"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#EA6460",
- "mode": "fixed"
- }
+ "id": "displayName",
+ "value": "Filesystem"
}
]
}
]
},
"gridPos": {
- "h": 10,
+ "h": 12,
"w": 12,
- "x": 12,
- "y": 51
+ "x": 0,
+ "y": 4
},
- "id": 339,
- "links": [],
+ "id": 383,
"options": {
- "legend": {
- "calcs": [
- "min",
- "mean",
- "max",
- "lastNotNull"
+ "footer": {
+ "enablePagination": true,
+ "fields": "",
+ "reducer": [
+ "sum"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "show": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showHeader": true,
+ "sortBy": [
+ {
+ "desc": true,
+ "displayName": "Use%"
+ }
+ ]
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_kswapd\"}[1m])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pgscan_kswapd",
- "range": true,
- "refId": "B",
- "step": 240
+ "exemplar": false,
+ "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_blocks\"} * 4",
+ "format": "table",
+ "instant": true,
+ "legendFormat": "{{fs}}",
+ "range": false,
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_direct\"}[1m])",
- "format": "time_series",
+ "exemplar": false,
+ "expr": "(sysom_fs_stat{instance=\"$node\",counter=\"f_blocks\"} - on(mount)sysom_fs_stat{instance=\"$node\",counter=\"f_bfree\"}) * 4",
+ "format": "table",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pgscan_direct",
- "range": true,
- "refId": "C",
- "step": 240
+ "instant": true,
+ "legendFormat": "{{fs}}",
+ "range": false,
+ "refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"oom_kill\"}[1m])",
- "format": "time_series",
+ "exemplar": false,
+ "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_bavail\"} * 4",
+ "format": "table",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "oom_kill",
- "range": true,
- "refId": "D",
- "step": 240
- },
+ "instant": true,
+ "legendFormat": "{{fs}}",
+ "range": false,
+ "refId": "C"
+ }
+ ],
+ "title": "df -h info",
+ "transformations": [
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgsteal_kswapd\"}[1m])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pgsteal_kswapd",
- "range": true,
- "refId": "A",
- "step": 240
+ "id": "joinByField",
+ "options": {
+ "byField": "mount",
+ "mode": "outer"
+ }
},
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgsteal_direct\"}[1m])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pgsteal_direct",
- "range": true,
- "refId": "E",
- "step": 240
+ "id": "calculateField",
+ "options": {
+ "alias": "Total Size(ignore reserve)",
+ "binary": {
+ "left": "Value #B",
+ "operator": "+",
+ "reducer": "sum",
+ "right": "Value #C"
+ },
+ "mode": "binary",
+ "reduce": {
+ "reducer": "sum"
+ }
+ }
},
{
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "rate(sysom_proc_vmstat{instance=\"$node\",value=\"pgscan_direct_throttle\"}[1m])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "pgscan_direct_throttle",
- "range": true,
- "refId": "F",
- "step": 240
+ "id": "calculateField",
+ "options": {
+ "alias": "Use%",
+ "binary": {
+ "left": "Value #B",
+ "operator": "/",
+ "reducer": "sum",
+ "right": "Total Size(ignore reserve)"
+ },
+ "mode": "binary",
+ "reduce": {
+ "reducer": "sum"
+ }
+ }
}
],
- "title": "Memory Others",
- "type": "timeseries"
- }
- ],
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "refId": "A"
- }
- ],
- "title": "System Memory",
- "type": "row"
- },
- {
- "collapsed": true,
- "datasource": "sysom-prometheus",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 73
- },
- "id": 270,
- "panels": [
+ "type": "table"
+ },
{
"datasource": "sysom-prometheus",
- "description": "磁盘空间使用情况,类似df -h的结果",
+ "description": "\u7c7b\u4f3cdf -i\u7684\u7ed3\u679c\uff0c\u67e5\u770b\u6587\u4ef6\u7cfb\u7edfinode\u4f7f\u7528\u60c5\u51b5",
"fieldConfig": {
"defaults": {
"color": {
@@ -6107,7 +7809,6 @@
"inspect": false,
"minWidth": 50
},
- "decimals": 2,
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -6117,7 +7818,7 @@
}
]
},
- "unit": "kbytes"
+ "unit": "none"
},
"overrides": [
{
@@ -6135,19 +7836,7 @@
{
"matcher": {
"id": "byName",
- "options": "exported_instance"
- },
- "properties": [
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "instance"
+ "options": "__name__"
},
"properties": [
{
@@ -6159,7 +7848,7 @@
{
"matcher": {
"id": "byName",
- "options": "job"
+ "options": "exported_instance"
},
"properties": [
{
@@ -6176,7 +7865,7 @@
"properties": [
{
"id": "displayName",
- "value": "Used"
+ "value": "IUsed"
}
]
},
@@ -6200,7 +7889,7 @@
"properties": [
{
"id": "displayName",
- "value": "Size"
+ "value": "Inodes"
}
]
},
@@ -6219,43 +7908,19 @@
{
"matcher": {
"id": "byName",
- "options": "counter 1"
- },
- "properties": [
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "counter 2"
- },
- "properties": [
- {
- "id": "custom.hidden",
- "value": true
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "Time 3"
+ "options": "fs 1"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "displayName",
+ "value": "Filesystem"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "fs 2"
+ "options": "counter"
},
"properties": [
{
@@ -6272,14 +7937,14 @@
"properties": [
{
"id": "displayName",
- "value": "Available"
+ "value": "IFree"
}
]
},
{
"matcher": {
"id": "byName",
- "options": "Use%"
+ "options": "IUse%"
},
"properties": [
{
@@ -6309,7 +7974,7 @@
{
"matcher": {
"id": "byName",
- "options": "Total Size(ignore reserve)"
+ "options": "job"
},
"properties": [
{
@@ -6321,12 +7986,24 @@
{
"matcher": {
"id": "byName",
- "options": "fs 1"
+ "options": "instance"
},
"properties": [
{
- "id": "displayName",
- "value": "Filesystem"
+ "id": "custom.hidden",
+ "value": true
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byName",
+ "options": "fs 2"
+ },
+ "properties": [
+ {
+ "id": "custom.hidden",
+ "value": true
}
]
}
@@ -6335,10 +8012,10 @@
"gridPos": {
"h": 12,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 4
},
- "id": 383,
+ "id": 385,
"options": {
"footer": {
"enablePagination": true,
@@ -6352,7 +8029,7 @@
"sortBy": [
{
"desc": true,
- "displayName": "Use%"
+ "displayName": "IUse%"
}
]
},
@@ -6362,7 +8039,7 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": false,
- "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_blocks\"} * 4",
+ "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_files\"}",
"format": "table",
"instant": true,
"legendFormat": "{{fs}}",
@@ -6373,7 +8050,7 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": false,
- "expr": "(sysom_fs_stat{instance=\"$node\",counter=\"f_blocks\"} - on(mount)sysom_fs_stat{instance=\"$node\",counter=\"f_bfree\"}) * 4",
+ "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_files\"} - on(mount)sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}",
"format": "table",
"hide": false,
"instant": true,
@@ -6385,7 +8062,7 @@
"datasource": "sysom-prometheus",
"editorMode": "code",
"exemplar": false,
- "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_bavail\"} * 4",
+ "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}",
"format": "table",
"hide": false,
"instant": true,
@@ -6394,7 +8071,7 @@
"refId": "C"
}
],
- "title": "df -h info",
+ "title": "df -i info",
"transformations": [
{
"id": "joinByField",
@@ -6406,58 +8083,249 @@
{
"id": "calculateField",
"options": {
- "alias": "Total Size(ignore reserve)",
+ "alias": "IUse%",
"binary": {
"left": "Value #B",
- "operator": "+",
+ "operator": "/",
"reducer": "sum",
- "right": "Value #C"
+ "right": "Value #A"
},
"mode": "binary",
"reduce": {
"reducer": "sum"
}
}
+ }
+ ],
+ "type": "table"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u6587\u4ef6\u7cfb\u7edf\u7a7a\u95f4\u4f7f\u7528\u91cf",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "KBs"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 12,
+ "w": 12,
+ "x": 0,
+ "y": 16
+ },
+ "id": 387,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
},
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
{
- "id": "calculateField",
- "options": {
- "alias": "Use%",
- "binary": {
- "left": "Value #B",
- "operator": "/",
- "reducer": "sum",
- "right": "Total Size(ignore reserve)"
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "- delta(sysom_fs_stat{instance=\"$node\",counter=\"f_bfree\"}[1m]) * 4 / 60",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "{{mount}}({{fs}})",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "Filesystem used increase rate",
+ "transformations": [],
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "Filesystem Inode \u4f7f\u7528\u60c5\u51b5",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 0,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "auto",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ }
+ ]
+ },
+ "unit": "none"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 12,
+ "w": 12,
+ "x": 12,
+ "y": 16
+ },
+ "id": 386,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "-delta(sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}[1m])",
+ "format": "time_series",
+ "hide": false,
+ "instant": false,
+ "legendFormat": "{{mount}}({{fs}})",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "Filesystem Inode used increase rate",
+ "transformations": [],
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u78c1\u76d8\u53d1\u751fio hang\u7684\u6b21\u6570",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "IOs",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "never",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
},
- "mode": "binary",
- "reduce": {
- "reducer": "sum"
+ "thresholdsStyle": {
+ "mode": "off"
}
- }
- }
- ],
- "type": "table"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "类似df -i的结果,查看文件系统inode使用情况",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "thresholds"
- },
- "custom": {
- "align": "auto",
- "displayMode": "auto",
- "inspect": false,
- "minWidth": 50
},
+ "links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
},
@@ -6466,433 +8334,323 @@
"overrides": [
{
"matcher": {
- "id": "byName",
- "options": "Time"
+ "id": "byRegexp",
+ "options": "/.*sda_.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#7EB26D",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "__name__"
+ "id": "byRegexp",
+ "options": "/.*sdb_.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#EAB839",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "exported_instance"
+ "id": "byRegexp",
+ "options": "/.*sdc_.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#6ED0E0",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "Value #B"
+ "id": "byRegexp",
+ "options": "/.*sdd_.*/"
},
"properties": [
{
- "id": "displayName",
- "value": "IUsed"
+ "id": "color",
+ "value": {
+ "fixedColor": "#EF843C",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "mount 2"
+ "id": "byRegexp",
+ "options": "/.*sde_.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#E24D42",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "Value #A"
+ "id": "byRegexp",
+ "options": "/.*sda1.*/"
},
"properties": [
{
- "id": "displayName",
- "value": "Inodes"
+ "id": "color",
+ "value": {
+ "fixedColor": "#584477",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "mount"
+ "id": "byRegexp",
+ "options": "/.*sda2_.*/"
},
"properties": [
{
- "id": "displayName",
- "value": "Mounted on"
+ "id": "color",
+ "value": {
+ "fixedColor": "#BA43A9",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "fs 1"
+ "id": "byRegexp",
+ "options": "/.*sda3_.*/"
},
"properties": [
{
- "id": "displayName",
- "value": "Filesystem"
+ "id": "color",
+ "value": {
+ "fixedColor": "#F4D598",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "counter"
+ "id": "byRegexp",
+ "options": "/.*sdb1.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#0A50A1",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "Value #C"
+ "id": "byRegexp",
+ "options": "/.*sdb2.*/"
},
"properties": [
{
- "id": "displayName",
- "value": "IFree"
+ "id": "color",
+ "value": {
+ "fixedColor": "#BF1B00",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "IUse%"
+ "id": "byRegexp",
+ "options": "/.*sdb3.*/"
},
"properties": [
{
- "id": "unit",
- "value": "percentunit"
- },
+ "id": "color",
+ "value": {
+ "fixedColor": "#E0752D",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sdc1.*/"
+ },
+ "properties": [
{
- "id": "decimals",
- "value": 2
- },
+ "id": "color",
+ "value": {
+ "fixedColor": "#962D82",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sdc2.*/"
+ },
+ "properties": [
{
- "id": "custom.displayMode",
- "value": "gradient-gauge"
- },
+ "id": "color",
+ "value": {
+ "fixedColor": "#614D93",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sdc3.*/"
+ },
+ "properties": [
{
- "id": "max",
- "value": 1
- },
+ "id": "color",
+ "value": {
+ "fixedColor": "#9AC48A",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sdd1.*/"
+ },
+ "properties": [
{
"id": "color",
"value": {
- "mode": "continuous-GrYlRd"
+ "fixedColor": "#65C5DB",
+ "mode": "fixed"
}
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "job"
+ "id": "byRegexp",
+ "options": "/.*sdd2.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#F9934E",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sdd3.*/"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#EA6460",
+ "mode": "fixed"
+ }
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*sde1.*/"
+ },
+ "properties": [
+ {
+ "id": "color",
+ "value": {
+ "fixedColor": "#E0F9D7",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "instance"
+ "id": "byRegexp",
+ "options": "/.*sdd2.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#FCEACA",
+ "mode": "fixed"
+ }
}
]
},
{
"matcher": {
- "id": "byName",
- "options": "fs 2"
+ "id": "byRegexp",
+ "options": "/.*sde3.*/"
},
"properties": [
{
- "id": "custom.hidden",
- "value": true
+ "id": "color",
+ "value": {
+ "fixedColor": "#F9E2D2",
+ "mode": "fixed"
+ }
}
]
}
]
},
"gridPos": {
- "h": 12,
- "w": 12,
- "x": 12,
- "y": 4
- },
- "id": 385,
- "options": {
- "footer": {
- "enablePagination": true,
- "fields": "",
- "reducer": [
- "sum"
- ],
- "show": false
- },
- "showHeader": true,
- "sortBy": [
- {
- "desc": true,
- "displayName": "IUse%"
- }
- ]
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_files\"}",
- "format": "table",
- "instant": true,
- "legendFormat": "{{fs}}",
- "range": false,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_files\"} - on(mount)sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}",
- "format": "table",
- "hide": false,
- "instant": true,
- "legendFormat": "{{fs}}",
- "range": false,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}",
- "format": "table",
- "hide": false,
- "instant": true,
- "legendFormat": "{{fs}}",
- "range": false,
- "refId": "C"
- }
- ],
- "title": "df -i info",
- "transformations": [
- {
- "id": "joinByField",
- "options": {
- "byField": "mount",
- "mode": "outer"
- }
- },
- {
- "id": "calculateField",
- "options": {
- "alias": "IUse%",
- "binary": {
- "left": "Value #B",
- "operator": "/",
- "reducer": "sum",
- "right": "Value #A"
- },
- "mode": "binary",
- "reduce": {
- "reducer": "sum"
- }
- }
- }
- ],
- "type": "table"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "文件系统空间使用量",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "KBs"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
- "w": 12,
- "x": 0,
- "y": 16
- },
- "id": 387,
- "options": {
- "legend": {
- "calcs": [],
- "displayMode": "list",
- "placement": "bottom",
- "showLegend": true
- },
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.2",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "- delta(sysom_fs_stat{instance=\"$node\",counter=\"f_bfree\"}[1m]) * 4 / 60",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "legendFormat": "{{mount}}({{fs}})",
- "range": true,
- "refId": "B"
- }
- ],
- "title": "Filesystem used increase rate",
- "transformations": [],
- "type": "timeseries"
- },
- {
- "datasource": "sysom-prometheus",
- "description": "Filesystem Inode 使用情况",
- "fieldConfig": {
- "defaults": {
- "color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 0,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "auto",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
- },
- "mappings": [],
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- }
- ]
- },
- "unit": "none"
- },
- "overrides": []
- },
- "gridPos": {
- "h": 12,
+ "h": 10,
"w": 12,
- "x": 12,
- "y": 16
+ "x": 0,
+ "y": 28
},
- "id": 386,
+ "id": 301,
+ "links": [],
"options": {
"legend": {
- "calcs": [],
- "displayMode": "list",
+ "calcs": [
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
+ ],
+ "displayMode": "table",
"placement": "bottom",
"showLegend": true
},
@@ -6901,28 +8659,26 @@
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "-delta(sysom_fs_stat{instance=\"$node\",counter=\"f_ffree\"}[1m])",
- "format": "time_series",
- "hide": false,
- "instant": false,
- "legendFormat": "{{mount}}({{fs}})",
+ "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"iohangCnt\"}",
+ "interval": "",
+ "intervalFactor": 4,
+ "legendFormat": "{{devname}}",
"range": true,
- "refId": "B"
+ "refId": "A",
+ "step": 240
}
],
- "title": "Filesystem Inode used increase rate",
- "transformations": [],
+ "title": "Disk IO iohangCnt",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "磁盘发生io hang的次数",
+ "description": "\u78c1\u76d8\u53d1\u751fio delay\u7684\u6b21\u6570",
"fieldConfig": {
"defaults": {
"color": {
@@ -7280,10 +9036,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 28
},
- "id": 301,
+ "id": 401,
"links": [],
"options": {
"legend": {
@@ -7307,7 +9063,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"iohangCnt\"}",
+ "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"iodelayCnt\"}",
"interval": "",
"intervalFactor": 4,
"legendFormat": "{{devname}}",
@@ -7316,12 +9072,12 @@
"step": 240
}
],
- "title": "Disk IO iohangCnt",
+ "title": "Disk IO iodelayCnt",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "磁盘发生io delay的次数",
+ "description": "\u78c1\u76d8\u53d1\u751fio burst\u7684\u6b21\u6570",
"fieldConfig": {
"defaults": {
"color": {
@@ -7679,10 +9435,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 28
+ "x": 0,
+ "y": 38
},
- "id": 401,
+ "id": 402,
"links": [],
"options": {
"legend": {
@@ -7706,7 +9462,7 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"iodelayCnt\"}",
+ "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"ioburstCnt\"}",
"interval": "",
"intervalFactor": 4,
"legendFormat": "{{devname}}",
@@ -7715,12 +9471,12 @@
"step": 240
}
],
- "title": "Disk IO iodelayCnt",
+ "title": "Disk IO ioburstCnt",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "磁盘发生io burst的次数",
+ "description": "\u7cfb\u7edf\u53d1\u751fio wait \u9ad8\u7684\u6b21\u6570",
"fieldConfig": {
"defaults": {
"color": {
@@ -8078,10 +9834,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 38
},
- "id": 402,
+ "id": 403,
"links": [],
"options": {
"legend": {
@@ -8105,21 +9861,21 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_IOMonIndForDisksIO{instance=\"$node\",value=\"ioburstCnt\"}",
+ "expr": "sysom_IOMonIndForSystemIO{instance=\"$node\",value=\"iowaithighCnt\"}",
"interval": "",
"intervalFactor": 4,
- "legendFormat": "{{devname}}",
+ "legendFormat": "{{devname}} iowait high count",
"range": true,
"refId": "A",
"step": 240
}
],
- "title": "Disk IO ioburstCnt",
+ "title": "System IO iowaithighCnt",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "系统发生io wait 高的次数",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -8169,7 +9925,7 @@
}
]
},
- "unit": "none"
+ "unit": "percent"
},
"overrides": [
{
@@ -8477,10 +10233,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 38
+ "x": 0,
+ "y": 48
},
- "id": 403,
+ "id": 400,
"links": [],
"options": {
"legend": {
@@ -8504,21 +10260,21 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_IOMonIndForSystemIO{instance=\"$node\",value=\"iowaithighCnt\"}",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"busy\",disk_name!~\"[a-z]*[0-9]$\"}",
"interval": "",
"intervalFactor": 4,
- "legendFormat": "{{devname}} iowait high count",
+ "legendFormat": "{{disk_name}}",
"range": true,
"refId": "A",
"step": 240
}
],
- "title": "System IO iowaithighCnt",
+ "title": "Disk IO Utils",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
+ "description": "The number (after merges) of I/O requests completed per second for the device",
"fieldConfig": {
"defaults": {
"color": {
@@ -8527,7 +10283,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "IOs",
+ "axisLabel": "IO read (-) / write (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -8568,9 +10324,21 @@
}
]
},
- "unit": "percent"
+ "unit": "iops"
},
"overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Read.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ },
{
"matcher": {
"id": "byRegexp",
@@ -8876,10 +10644,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 48
},
- "id": 400,
+ "id": 9,
"links": [],
"options": {
"legend": {
@@ -8903,21 +10671,30 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"busy\",disk_name!~\"[a-z]*[0-9]$\"}",
- "interval": "",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"reads\",disk_name!~\"[a-z]*[0-9]$\"}",
"intervalFactor": 4,
- "legendFormat": "{{disk_name}}",
+ "legendFormat": "{{disk_name}} - Reads completed",
"range": true,
"refId": "A",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"writes\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "intervalFactor": 1,
+ "legendFormat": "{{disk_name}} - Writes completed",
+ "range": true,
+ "refId": "B",
+ "step": 240
}
],
- "title": "Disk IO Utils",
+ "title": "Disk IOps Completed",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The number (after merges) of I/O requests completed per second for the device",
+ "description": "The average time for requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.",
"fieldConfig": {
"defaults": {
"color": {
@@ -8926,11 +10703,11 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "IO read (-) / write (+)",
+ "axisLabel": "time. read (-) / write (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 20,
+ "fillOpacity": 30,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -8967,7 +10744,7 @@
}
]
},
- "unit": "iops"
+ "unit": "ms"
},
"overrides": [
{
@@ -9287,10 +11064,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 48
+ "x": 0,
+ "y": 58
},
- "id": 9,
+ "id": 37,
"links": [],
"options": {
"legend": {
@@ -9314,9 +11091,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"reads\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rmsec\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "hide": false,
+ "interval": "",
"intervalFactor": 4,
- "legendFormat": "{{disk_name}} - Reads completed",
+ "legendFormat": "{{disk_name}} - Read wait time avg",
"range": true,
"refId": "A",
"step": 240
@@ -9324,20 +11103,22 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"writes\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wmsec\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "hide": false,
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "{{disk_name}} - Writes completed",
+ "legendFormat": "{{disk_name}} - Write wait time avg",
"range": true,
"refId": "B",
"step": 240
}
],
- "title": "Disk IOps Completed",
+ "title": "Disk Average Wait Time",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The average time for requests issued to the device to be served. This includes the time spent by the requests in queue and the time spent servicing them.",
+ "description": "The number of bytes read from or written to the device per second",
"fieldConfig": {
"defaults": {
"color": {
@@ -9346,11 +11127,11 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "time. read (-) / write (+)",
+ "axisLabel": "bytes read (-) / write (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 30,
+ "fillOpacity": 20,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -9387,7 +11168,7 @@
}
]
},
- "unit": "ms"
+ "unit": "KBs"
},
"overrides": [
{
@@ -9707,10 +11488,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 58
},
- "id": 37,
+ "id": 33,
"links": [],
"options": {
"legend": {
@@ -9734,11 +11515,10 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rmsec\",disk_name!~\"[a-z]*[0-9]$\"}",
- "hide": false,
- "interval": "",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rkb\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "format": "time_series",
"intervalFactor": 4,
- "legendFormat": "{{disk_name}} - Read wait time avg",
+ "legendFormat": "{{disk_name}} - Read bytes",
"range": true,
"refId": "A",
"step": 240
@@ -9746,22 +11526,21 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wmsec\",disk_name!~\"[a-z]*[0-9]$\"}",
- "hide": false,
- "interval": "",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wkb\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "format": "time_series",
"intervalFactor": 1,
- "legendFormat": "{{disk_name}} - Write wait time avg",
+ "legendFormat": "{{disk_name}} - Written bytes",
"range": true,
"refId": "B",
"step": 240
}
],
- "title": "Disk Average Wait Time",
+ "title": "Disk R/W Data",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The number of bytes read from or written to the device per second",
+ "description": "The average queue length of the requests that were issued to the device",
"fieldConfig": {
"defaults": {
"color": {
@@ -9770,7 +11549,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "bytes read (-) / write (+)",
+ "axisLabel": "aqu-sz",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -9797,8 +11576,10 @@
"mode": "off"
}
},
+ "decimals": 2,
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -9811,21 +11592,9 @@
}
]
},
- "unit": "KBs"
+ "unit": "none"
},
"overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Read.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- },
{
"matcher": {
"id": "byRegexp",
@@ -10131,10 +11900,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 58
+ "x": 0,
+ "y": 68
},
- "id": 33,
+ "id": 35,
"links": [],
"options": {
"legend": {
@@ -10158,32 +11927,21 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rkb\",disk_name!~\"[a-z]*[0-9]$\"}",
- "format": "time_series",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"backlog\",disk_name!~\"[a-z]*[0-9]$\"} / 1000",
+ "interval": "",
"intervalFactor": 4,
- "legendFormat": "{{disk_name}} - Read bytes",
+ "legendFormat": "{{disk_name}}",
"range": true,
"refId": "A",
"step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wkb\",disk_name!~\"[a-z]*[0-9]$\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{disk_name}} - Written bytes",
- "range": true,
- "refId": "B",
- "step": 240
}
],
- "title": "Disk R/W Data",
+ "title": "Average Queue Size",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The average queue length of the requests that were issued to the device",
+ "description": "The number of read and write requests merged per second that were queued to the device",
"fieldConfig": {
"defaults": {
"color": {
@@ -10192,7 +11950,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "aqu-sz",
+ "axisLabel": "I/Os",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -10219,10 +11977,8 @@
"mode": "off"
}
},
- "decimals": 2,
"links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -10235,9 +11991,21 @@
}
]
},
- "unit": "none"
+ "unit": "iops"
},
"overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Read.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ },
{
"matcher": {
"id": "byRegexp",
@@ -10543,10 +12311,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 0,
+ "x": 12,
"y": 68
},
- "id": 35,
+ "id": 133,
"links": [],
"options": {
"legend": {
@@ -10570,21 +12338,30 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"backlog\",disk_name!~\"[a-z]*[0-9]$\"} / 1000",
- "interval": "",
- "intervalFactor": 4,
- "legendFormat": "{{disk_name}}",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rmerge\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "intervalFactor": 1,
+ "legendFormat": "{{disk_name}} - Read merged",
+ "range": true,
+ "refId": "A",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wmerge\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "intervalFactor": 1,
+ "legendFormat": "{{disk_name}} - Write merged",
"range": true,
- "refId": "A",
+ "refId": "B",
"step": 240
}
],
- "title": "Average Queue Size",
+ "title": "Disk R/W Merged",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "The number of read and write requests merged per second that were queued to the device",
+ "description": "The number of outstanding requests at the instant the sample was taken. Incremented as requests are given to appropriate struct request_queue and decremented as they finish.",
"fieldConfig": {
"defaults": {
"color": {
@@ -10593,7 +12370,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "I/Os",
+ "axisLabel": "Outstanding req",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -10622,6 +12399,7 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -10634,21 +12412,9 @@
}
]
},
- "unit": "iops"
+ "unit": "none"
},
"overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Read.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- },
{
"matcher": {
"id": "byRegexp",
@@ -10954,10 +12720,10 @@
"gridPos": {
"h": 10,
"w": 12,
- "x": 12,
- "y": 68
+ "x": 0,
+ "y": 78
},
- "id": 133,
+ "id": 34,
"links": [],
"options": {
"legend": {
@@ -10971,238 +12737,475 @@
"placement": "bottom",
"showLegend": true
},
- "tooltip": {
- "mode": "single",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.0",
- "targets": [
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.0",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_disks{instance=\"$node\",counter=\"inflight\",disk_name!~\"[a-z]*[0-9]$\"}",
+ "interval": "",
+ "intervalFactor": 4,
+ "legendFormat": "{{disk_name}} - IO now",
+ "range": true,
+ "refId": "A",
+ "step": 240
+ }
+ ],
+ "title": "Inflight IO/s",
+ "type": "timeseries"
+ }
+ ],
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "refId": "A"
+ }
+ ],
+ "title": "Storage Filesystem and IO",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "datasource": "sysom-prometheus",
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 29
+ },
+ "id": 272,
+ "panels": [
+ {
+ "datasource": "sysom-prometheus",
+ "description": "\u7edf\u8ba1\u5404\u4e2a\u7f51\u53e3\u7684\u6536\u53d1\u5305\u60c5\u51b5",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "decimals": 0,
+ "mappings": [],
+ "min": -2,
+ "unit": "pps"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 0,
+ "y": 5
+ },
+ "id": 393,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "asc"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ipackets\"}",
+ "format": "time_series",
+ "instant": true,
+ "interval": "",
+ "legendFormat": "{{network_name}} rx",
+ "range": false,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_opackets\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "{{network_name}} tx",
+ "range": false,
+ "refId": "B"
+ }
+ ],
+ "title": "Network Traffic RTX",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "description": "",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
+ },
+ "custom": {
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
+ }
+ },
+ "decimals": 1,
+ "mappings": [],
+ "min": -4,
+ "unit": "pps"
+ },
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 8,
+ "y": 5
+ },
+ "id": 394,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_tcp_count{instance=\"$node\",value=\"InSegs\"}",
+ "format": "time_series",
+ "instant": true,
+ "interval": "",
+ "legendFormat": "tcp in",
+ "range": false,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_tcp_count{instance=\"$node\",value=\"OutSegs\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "tcp out",
+ "range": false,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_udp_count{instance=\"$node\",value=\"InDatagrams\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "udp in",
+ "range": false,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_udp_count{instance=\"$node\",value=\"OutDatagrams\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "udp out",
+ "range": false,
+ "refId": "D"
+ },
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"rmerge\",disk_name!~\"[a-z]*[0-9]$\"}",
- "intervalFactor": 1,
- "legendFormat": "{{disk_name}} - Read merged",
- "range": true,
- "refId": "A",
- "step": 240
+ "exemplar": false,
+ "expr": "sysom_net_ip_count{instance=\"$node\",value=\"InReceives\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "ip in",
+ "range": false,
+ "refId": "E"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"wmerge\",disk_name!~\"[a-z]*[0-9]$\"}",
- "intervalFactor": 1,
- "legendFormat": "{{disk_name}} - Write merged",
- "range": true,
- "refId": "B",
- "step": 240
+ "exemplar": false,
+ "expr": "sysom_net_ip_count{instance=\"$node\",value=\"OutRequests\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "ip out",
+ "range": false,
+ "refId": "F"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_icmp_count{instance=\"$node\",value=\"InMsgs\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "icmp in",
+ "range": false,
+ "refId": "G"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sysom_net_icmp_count{instance=\"$node\",value=\"OutMsgs\"}",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "icmp out",
+ "range": false,
+ "refId": "H"
}
],
- "title": "Disk R/W Merged",
- "type": "timeseries"
+ "title": "Netstat RTX Graph",
+ "type": "piechart"
},
{
"datasource": "sysom-prometheus",
- "description": "The number of outstanding requests at the instant the sample was taken. Incremented as requests are given to appropriate struct request_queue and decremented as they finish.",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "Outstanding req",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
}
},
- "links": [],
+ "decimals": 1,
"mappings": [],
- "min": 0,
- "thresholds": {
- "mode": "absolute",
- "steps": [
- {
- "color": "green"
- },
- {
- "color": "red",
- "value": 80
- }
- ]
- },
- "unit": "none"
+ "min": -4,
+ "unit": "pps"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sda_.*/"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#7EB26D",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdb_.*/"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#EAB839",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdc_.*/"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#6ED0E0",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdd_.*/"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#EF843C",
- "mode": "fixed"
- }
- }
- ]
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 9,
+ "w": 8,
+ "x": 16,
+ "y": 5
+ },
+ "id": 397,
+ "options": {
+ "displayLabels": [
+ "percent",
+ "value"
+ ],
+ "legend": {
+ "displayMode": "table",
+ "placement": "right",
+ "showLegend": true,
+ "values": [
+ "value"
+ ]
+ },
+ "pieType": "pie",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
+ "format": "time_series",
+ "instant": true,
+ "interval": "",
+ "legendFormat": "icmp InError",
+ "range": false,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sum(irate(sysom_net_udp_count{instance=\"$node\",value!=\"InDatagrams\",value!=\"OutDatagrams\"}[$__rate_interval]))",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "udp errors",
+ "range": false,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sum (irate(sysom_net_tcp_ext_count{instance=\"$node\"}[$__rate_interval]))",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "tcp errors",
+ "range": false,
+ "refId": "G"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "exemplar": false,
+ "expr": "sum(sysom_net_retrans_count{instance=\"$node\"})",
+ "format": "time_series",
+ "hide": false,
+ "instant": true,
+ "interval": "",
+ "legendFormat": "tcp retrans",
+ "range": false,
+ "refId": "C"
+ }
+ ],
+ "title": "Netstat Error Count",
+ "type": "piechart"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sde_.*/"
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "packets out (-) / in (+)",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#E24D42",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sda1.*/"
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#584477",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sda2_.*/"
+ "showPoints": "never",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#BA43A9",
- "mode": "fixed"
- }
- }
- ]
+ "thresholdsStyle": {
+ "mode": "off"
+ }
},
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sda3_.*/"
- },
- "properties": [
+ "links": [],
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "color",
- "value": {
- "fixedColor": "#F4D598",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdb1.*/"
- },
- "properties": [
+ "color": "green"
+ },
{
- "id": "color",
- "value": {
- "fixedColor": "#0A50A1",
- "mode": "fixed"
- }
+ "color": "red",
+ "value": 80
}
]
},
+ "unit": "pps"
+ },
+ "overrides": [
{
"matcher": {
- "id": "byRegexp",
- "options": "/.*sdb2.*/"
+ "id": "byName",
+ "options": "receive_packets_eth0"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#BF1B00",
+ "fixedColor": "#7EB26D",
"mode": "fixed"
}
}
@@ -11210,14 +13213,14 @@
},
{
"matcher": {
- "id": "byRegexp",
- "options": "/.*sdb3.*/"
+ "id": "byName",
+ "options": "receive_packets_lo"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#E0752D",
+ "fixedColor": "#E24D42",
"mode": "fixed"
}
}
@@ -11225,14 +13228,14 @@
},
{
"matcher": {
- "id": "byRegexp",
- "options": "/.*sdc1.*/"
+ "id": "byName",
+ "options": "transmit_packets_eth0"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#962D82",
+ "fixedColor": "#7EB26D",
"mode": "fixed"
}
}
@@ -11240,14 +13243,14 @@
},
{
"matcher": {
- "id": "byRegexp",
- "options": "/.*sdc2.*/"
+ "id": "byName",
+ "options": "transmit_packets_lo"
},
"properties": [
{
"id": "color",
"value": {
- "fixedColor": "#614D93",
+ "fixedColor": "#E24D42",
"mode": "fixed"
}
}
@@ -11256,105 +13259,258 @@
{
"matcher": {
"id": "byRegexp",
- "options": "/.*sdc3.*/"
+ "options": "/.*Trans.*/"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#9AC48A",
- "mode": "fixed"
- }
+ "id": "custom.transform",
+ "value": "negative-Y"
}
]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 14
+ },
+ "id": 60,
+ "links": [],
+ "options": {
+ "legend": {
+ "calcs": [
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 300
+ },
+ "tooltip": {
+ "mode": "multi",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.0",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ipackets\"}",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Receive",
+ "range": true,
+ "refId": "A",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_opackets\"}",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Transmit",
+ "range": true,
+ "refId": "B",
+ "step": 240
+ }
+ ],
+ "title": "Network Traffic by Packets",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdd1.*/"
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "packets out (-) / in (+)",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#65C5DB",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdd2.*/"
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
},
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#F9934E",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdd3.*/"
+ "showPoints": "never",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
},
- "properties": [
+ "thresholdsStyle": {
+ "mode": "off"
+ }
+ },
+ "links": [],
+ "mappings": [],
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "color",
- "value": {
- "fixedColor": "#EA6460",
- "mode": "fixed"
- }
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
},
+ "unit": "pps"
+ },
+ "overrides": [
{
"matcher": {
"id": "byRegexp",
- "options": "/.*sde1.*/"
+ "options": "/.*Trans.*/"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#E0F9D7",
- "mode": "fixed"
- }
+ "id": "custom.transform",
+ "value": "negative-Y"
}
]
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 14
+ },
+ "id": 143,
+ "links": [],
+ "options": {
+ "legend": {
+ "calcs": [
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 300
+ },
+ "tooltip": {
+ "mode": "multi",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.0",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_idrop\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Receive drop",
+ "range": true,
+ "refId": "A",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_odrop\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Transmit drop",
+ "range": true,
+ "refId": "B",
+ "step": 240
+ }
+ ],
+ "title": "Network Traffic Drop",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "palette-classic"
},
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*sdd2.*/"
+ "custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "packets out (-) / in (+)",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
+ "hideFrom": {
+ "legend": false,
+ "tooltip": false,
+ "viz": false
},
- "properties": [
+ "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": [
{
- "id": "color",
- "value": {
- "fixedColor": "#FCEACA",
- "mode": "fixed"
- }
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
},
+ "unit": "pps"
+ },
+ "overrides": [
{
"matcher": {
"id": "byRegexp",
- "options": "/.*sde3.*/"
+ "options": "/.*Trans.*/"
},
"properties": [
{
- "id": "color",
- "value": {
- "fixedColor": "#F9E2D2",
- "mode": "fixed"
- }
+ "id": "custom.transform",
+ "value": "negative-Y"
}
]
}
@@ -11364,9 +13520,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 78
+ "y": 24
},
- "id": 34,
+ "id": 146,
"links": [],
"options": {
"legend": {
@@ -11378,10 +13534,11 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true
+ "showLegend": true,
+ "width": 300
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
@@ -11390,400 +13547,412 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_disks{instance=\"$node\",counter=\"inflight\",disk_name!~\"[a-z]*[0-9]$\"}",
- "interval": "",
- "intervalFactor": 4,
- "legendFormat": "{{disk_name}} - IO now",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_imulticast\"}",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Receive multicast",
"range": true,
"refId": "A",
"step": 240
}
],
- "title": "Inflight IO/s",
+ "title": "Network Traffic Multicast",
"type": "timeseries"
- }
- ],
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "refId": "A"
- }
- ],
- "title": "Storage Filesystem and IO",
- "type": "row"
- },
- {
- "collapsed": true,
- "datasource": "sysom-prometheus",
- "gridPos": {
- "h": 1,
- "w": 24,
- "x": 0,
- "y": 74
- },
- "id": 272,
- "panels": [
+ },
{
"datasource": "sysom-prometheus",
- "description": "统计各个网口的收发包情况",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "packets out (-) / in (+)",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": 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": [],
- "min": -2,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
"unit": "pps"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Trans.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ }
+ ]
},
"gridPos": {
- "h": 9,
- "w": 8,
- "x": 0,
- "y": 5
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 24
},
- "id": 393,
+ "id": 142,
+ "links": [],
"options": {
- "displayLabels": [
- "percent",
- "value"
- ],
"legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
"calcs": [
- "lastNotNull"
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
],
- "fields": "",
- "values": false
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 300
},
"tooltip": {
- "mode": "single",
- "sort": "asc"
+ "mode": "multi",
+ "sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ipackets\"}",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ierrs\"}",
"format": "time_series",
- "instant": true,
- "interval": "",
- "legendFormat": "{{network_name}} rx",
- "range": false,
- "refId": "A"
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Receive errors",
+ "range": true,
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_opackets\"}",
+ "expr": "sysom_proc_networks{instance=\"$node\",counter=\"of_ierrs\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "{{network_name}} tx",
- "range": false,
- "refId": "B"
+ "intervalFactor": 1,
+ "legendFormat": "{{network_name}} - Rransmit errors",
+ "range": true,
+ "refId": "B",
+ "step": 240
}
],
- "title": "Network Traffic RTX",
- "type": "piechart"
+ "title": "Network Traffic Errors",
+ "type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "counter",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "never",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
}
},
- "decimals": 1,
+ "links": [],
"mappings": [],
- "min": -4,
- "unit": "pps"
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 8,
- "x": 8,
- "y": 5
+ "h": 10,
+ "w": 12,
+ "x": 0,
+ "y": 34
},
- "id": 394,
+ "id": 63,
+ "links": [],
"options": {
- "displayLabels": [
- "percent",
- "value"
- ],
"legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
"calcs": [
- "lastNotNull"
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
],
- "fields": "",
- "values": false
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 300
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_tcp_count{instance=\"$node\",value=\"InSegs\"}",
- "format": "time_series",
- "instant": true,
- "interval": "",
- "legendFormat": "tcp in",
- "range": false,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_tcp_count{instance=\"$node\",value=\"OutSegs\"}",
- "format": "time_series",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "tcp out",
- "range": false,
- "refId": "B"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_udp_count{instance=\"$node\",value=\"InDatagrams\"}",
- "format": "time_series",
- "hide": false,
- "instant": true,
- "interval": "",
- "legendFormat": "udp in",
- "range": false,
- "refId": "C"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_udp_count{instance=\"$node\",value=\"OutDatagrams\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_alloc\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "udp out",
- "range": false,
- "refId": "D"
+ "intervalFactor": 1,
+ "legendFormat": "TCP_alloc - Allocated sockets",
+ "range": true,
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_ip_count{instance=\"$node\",value=\"InReceives\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_inuse\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "ip in",
- "range": false,
- "refId": "E"
+ "intervalFactor": 1,
+ "legendFormat": "TCP_inuse - Tcp sockets currently in use",
+ "range": true,
+ "refId": "B",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_ip_count{instance=\"$node\",value=\"OutRequests\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_mem\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
+ "hide": true,
"interval": "",
- "legendFormat": "ip out",
- "range": false,
- "refId": "F"
+ "intervalFactor": 1,
+ "legendFormat": "TCP_mem - Used memory for tcp",
+ "range": true,
+ "refId": "C",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_icmp_count{instance=\"$node\",value=\"InMsgs\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_orphan\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "icmp in",
- "range": false,
- "refId": "G"
+ "intervalFactor": 1,
+ "legendFormat": "TCP_orphan - Orphan sockets",
+ "range": true,
+ "refId": "D",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sysom_net_icmp_count{instance=\"$node\",value=\"OutMsgs\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_tw\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "icmp out",
- "range": false,
- "refId": "H"
+ "intervalFactor": 1,
+ "legendFormat": "TCP_tw - Sockets wating close",
+ "range": true,
+ "refId": "E",
+ "step": 240
}
],
- "title": "Netstat RTX Graph",
- "type": "piechart"
+ "title": "Sockstat TCP",
+ "type": "timeseries"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
+ "axisCenteredZero": false,
+ "axisColorMode": "text",
+ "axisLabel": "counter",
+ "axisPlacement": "auto",
+ "barAlignment": 0,
+ "drawStyle": "line",
+ "fillOpacity": 20,
+ "gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
+ },
+ "lineInterpolation": "linear",
+ "lineWidth": 1,
+ "pointSize": 5,
+ "scaleDistribution": {
+ "type": "linear"
+ },
+ "showPoints": "never",
+ "spanNulls": false,
+ "stacking": {
+ "group": "A",
+ "mode": "none"
+ },
+ "thresholdsStyle": {
+ "mode": "off"
}
},
- "decimals": 1,
+ "links": [],
"mappings": [],
- "min": -4,
- "unit": "pps"
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
+ {
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
+ }
+ ]
+ },
+ "unit": "short"
},
"overrides": []
},
"gridPos": {
- "h": 9,
- "w": 8,
- "x": 16,
- "y": 5
+ "h": 10,
+ "w": 12,
+ "x": 12,
+ "y": 34
},
- "id": 397,
+ "id": 124,
+ "links": [],
"options": {
- "displayLabels": [
- "percent",
- "value"
- ],
"legend": {
- "displayMode": "table",
- "placement": "right",
- "showLegend": true,
- "values": [
- "value"
- ]
- },
- "pieType": "pie",
- "reduceOptions": {
"calcs": [
- "lastNotNull"
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
],
- "fields": "",
- "values": false
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true,
+ "width": 300
},
"tooltip": {
- "mode": "single",
+ "mode": "multi",
"sort": "none"
}
},
- "pluginVersion": "9.2.2",
+ "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
- "format": "time_series",
- "instant": true,
- "interval": "",
- "legendFormat": "icmp InError",
- "range": false,
- "refId": "A"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "exemplar": false,
- "expr": "sum(irate(sysom_net_udp_count{instance=\"$node\",value!=\"InDatagrams\",value!=\"OutDatagrams\"}[$__rate_interval]))",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"udplite_inuse\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "udp errors",
- "range": false,
- "refId": "B"
+ "intervalFactor": 1,
+ "legendFormat": "UDPLITE_inuse - Udplite sockets currently in use",
+ "range": true,
+ "refId": "A",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sum (irate(sysom_net_tcp_ext_count{instance=\"$node\"}[$__rate_interval]))",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_inuse\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "tcp errors",
- "range": false,
- "refId": "G"
+ "intervalFactor": 1,
+ "legendFormat": "UDP_inuse - Udp sockets currently in use",
+ "range": true,
+ "refId": "B",
+ "step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "exemplar": false,
- "expr": "sum(sysom_net_retrans_count{instance=\"$node\"})",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_mem\"}",
"format": "time_series",
- "hide": false,
- "instant": true,
"interval": "",
- "legendFormat": "tcp retrans",
- "range": false,
- "refId": "C"
+ "intervalFactor": 1,
+ "legendFormat": "UDP_mem - Used memory for udp",
+ "range": true,
+ "refId": "C",
+ "step": 240
}
],
- "title": "Netstat Error Count",
- "type": "piechart"
+ "title": "Sockstat UDP",
+ "type": "timeseries"
},
{
"datasource": "sysom-prometheus",
@@ -11795,7 +13964,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "packets out (-) / in (+)",
+ "axisLabel": "sockets",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -11824,6 +13993,7 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -11836,90 +14006,17 @@
}
]
},
- "unit": "pps"
+ "unit": "short"
},
- "overrides": [
- {
- "matcher": {
- "id": "byName",
- "options": "receive_packets_eth0"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#7EB26D",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "receive_packets_lo"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#E24D42",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "transmit_packets_eth0"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#7EB26D",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byName",
- "options": "transmit_packets_lo"
- },
- "properties": [
- {
- "id": "color",
- "value": {
- "fixedColor": "#E24D42",
- "mode": "fixed"
- }
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Trans.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
- "y": 14
+ "y": 44
},
- "id": 60,
+ "id": 126,
"links": [],
"options": {
"legend": {
@@ -11944,29 +14041,17 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ipackets\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"sockets_used\"}",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "{{network_name}} - Receive",
+ "legendFormat": "Sockets_used - Sockets currently in use",
"range": true,
"refId": "A",
"step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_opackets\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "{{network_name}} - Transmit",
- "range": true,
- "refId": "B",
- "step": 240
}
],
- "title": "Network Traffic by Packets",
+ "title": "Sockstat Used",
"type": "timeseries"
},
{
@@ -11979,7 +14064,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "packets out (-) / in (+)",
+ "axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12008,42 +14093,26 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
- },
- {
- "color": "red",
- "value": 80
}
]
},
- "unit": "pps"
+ "unit": "kbytes"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Trans.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
- "y": 14
+ "y": 44
},
- "id": 143,
+ "id": 220,
"links": [],
"options": {
"legend": {
@@ -12068,10 +14137,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_idrop\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_mem\"} * 4",
"format": "time_series",
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "{{network_name}} - Receive drop",
+ "legendFormat": "mem_bytes - TCP sockets in that state",
"range": true,
"refId": "A",
"step": 240
@@ -12079,16 +14149,27 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_odrop\"}",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_mem\"} * 4",
"format": "time_series",
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "{{network_name}} - Transmit drop",
+ "legendFormat": "mem_bytes - UDP sockets in that state",
"range": true,
"refId": "B",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_sock_stat{instance=\"$node\",value=\"frag_mem\"} * 4",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "FRAG_memory - Used memory for frag",
+ "range": true,
+ "refId": "C"
}
],
- "title": "Network Traffic Drop",
+ "title": "Sockstat Memory Size",
"type": "timeseries"
},
{
@@ -12101,7 +14182,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "packets out (-) / in (+)",
+ "axisLabel": "octects out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12142,13 +14223,13 @@
}
]
},
- "unit": "pps"
+ "unit": "short"
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
- "options": "/.*Trans.*/"
+ "options": "/.*Out.*/"
},
"properties": [
{
@@ -12163,9 +14244,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 24
+ "y": 54
},
- "id": 146,
+ "id": 221,
"links": [],
"options": {
"legend": {
@@ -12190,16 +14271,28 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_imulticast\"}",
+ "expr": "irate(sysom_net_ip_count{instance=\"$node\",value=\"InReceives\"}[$__rate_interval])",
"format": "time_series",
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "{{network_name}} - Receive multicast",
+ "legendFormat": "InOctets - Received octets",
"range": true,
"refId": "A",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_ip_count{instance=\"$node\",value=\"OutRequests\"}[$__rate_interval])",
+ "format": "time_series",
+ "intervalFactor": 1,
+ "legendFormat": "OutOctets - Sent octets",
+ "range": true,
+ "refId": "B",
+ "step": 240
}
],
- "title": "Network Traffic Multicast",
+ "title": "Netstat IP In / Out Octets",
"type": "timeseries"
},
{
@@ -12212,7 +14305,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "packets out (-) / in (+)",
+ "axisLabel": "datagrams",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12241,6 +14334,7 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -12253,30 +14347,17 @@
}
]
},
- "unit": "pps"
+ "unit": "short"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Trans.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
- "y": 24
+ "y": 54
},
- "id": 142,
+ "id": 81,
"links": [],
"options": {
"legend": {
@@ -12301,27 +14382,17 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"if_ierrs\"}",
+ "expr": "rate(sysom_net_ip_count{instance=\"$node\",value=\"Forwarding\"}[$__rate_interval])",
"format": "time_series",
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "{{network_name}} - Receive errors",
+ "legendFormat": "Forwarding - IP forwarding",
"range": true,
"refId": "A",
"step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_proc_networks{instance=\"$node\",counter=\"of_ierrs\"}",
- "format": "time_series",
- "intervalFactor": 1,
- "legendFormat": "{{network_name}} - Rransmit errors",
- "range": true,
- "refId": "B",
- "step": 240
}
],
- "title": "Network Traffic Errors",
+ "title": "Netstat IP Forwarding",
"type": "timeseries"
},
{
@@ -12334,7 +14405,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "counter",
+ "axisLabel": "messages out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12363,7 +14434,6 @@
},
"links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -12378,15 +14448,28 @@
},
"unit": "short"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Out.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ }
+ ]
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
- "y": 34
+ "y": 64
},
- "id": 63,
+ "id": 115,
"links": [],
"options": {
"legend": {
@@ -12398,8 +14481,7 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 300
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
@@ -12411,11 +14493,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_alloc\"}",
+ "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InMsgs\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "TCP_alloc - Allocated sockets",
+ "legendFormat": "InMsgs - Messages which the entity received. Note that this counter includes all those counted by icmpInErrors",
"range": true,
"refId": "A",
"step": 240
@@ -12423,54 +14505,17 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_inuse\"}",
+ "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"OutMsgs\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "TCP_inuse - Tcp sockets currently in use",
+ "legendFormat": "OutMsgs - Messages which this entity attempted to send. Note that this counter includes all those counted by icmpOutErrors",
"range": true,
"refId": "B",
"step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_mem\"}",
- "format": "time_series",
- "hide": true,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "TCP_mem - Used memory for tcp",
- "range": true,
- "refId": "C",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_orphan\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "TCP_orphan - Orphan sockets",
- "range": true,
- "refId": "D",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_tw\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "TCP_tw - Sockets wating close",
- "range": true,
- "refId": "E",
- "step": 240
}
],
- "title": "Sockstat TCP",
+ "title": "ICMP In / Out",
"type": "timeseries"
},
{
@@ -12483,7 +14528,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "counter",
+ "axisLabel": "messages out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12512,7 +14557,6 @@
},
"links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -12527,74 +14571,62 @@
},
"unit": "short"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Out.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ }
+ ]
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
- "y": 34
+ "y": 64
},
- "id": 124,
+ "id": 50,
"links": [],
"options": {
"legend": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
- ],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true,
- "width": 300
- },
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
- },
- "pluginVersion": "9.2.0",
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"udplite_inuse\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "UDPLITE_inuse - Udplite sockets currently in use",
- "range": true,
- "refId": "A",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_inuse\"}",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "UDP_inuse - Udp sockets currently in use",
- "range": true,
- "refId": "B",
- "step": 240
+ "mean",
+ "lastNotNull",
+ "max",
+ "min"
+ ],
+ "displayMode": "table",
+ "placement": "bottom",
+ "showLegend": true
},
+ "tooltip": {
+ "mode": "multi",
+ "sort": "none"
+ }
+ },
+ "pluginVersion": "9.2.0",
+ "targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_mem\"}",
+ "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "UDP_mem - Used memory for udp",
+ "legendFormat": "InErrors - Messages which the entity received but determined as having ICMP-specific errors (bad ICMP checksums, bad length, etc.)",
"range": true,
- "refId": "C",
+ "refId": "A",
"step": 240
}
],
- "title": "Sockstat UDP",
+ "title": "ICMP Errors",
"type": "timeseries"
},
{
@@ -12607,7 +14639,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "sockets",
+ "axisLabel": "datagrams out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12636,7 +14668,6 @@
},
"links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -12651,15 +14682,40 @@
},
"unit": "short"
},
- "overrides": []
+ "overrides": [
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Out.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Snd.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
+ }
+ ]
},
"gridPos": {
"h": 10,
"w": 12,
"x": 0,
- "y": 44
+ "y": 74
},
- "id": 126,
+ "id": 55,
"links": [],
"options": {
"legend": {
@@ -12671,8 +14727,7 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 300
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
@@ -12684,17 +14739,29 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"sockets_used\"}",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"InDatagrams\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "Sockets_used - Sockets currently in use",
+ "legendFormat": "InDatagrams - Datagrams received",
"range": true,
"refId": "A",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"OutDatagrams\"}[$__rate_interval])",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "OutDatagrams - Datagrams sent",
+ "range": true,
+ "refId": "B",
+ "step": 240
}
],
- "title": "Sockstat Used",
+ "title": "UDP In / Out",
"type": "timeseries"
},
{
@@ -12707,7 +14774,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "",
+ "axisLabel": "datagrams",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12736,16 +14803,19 @@
},
"links": [],
"mappings": [],
- "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
},
- "unit": "kbytes"
+ "unit": "short"
},
"overrides": []
},
@@ -12753,9 +14823,9 @@
"h": 10,
"w": 12,
"x": 12,
- "y": 44
+ "y": 74
},
- "id": 220,
+ "id": 109,
"links": [],
"options": {
"legend": {
@@ -12767,8 +14837,7 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 300
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
@@ -12780,11 +14849,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"tcp_mem\"} * 4",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "mem_bytes - TCP sockets in that state",
+ "legendFormat": "InErrors - UDP Datagrams that could not be delivered to an application",
"range": true,
"refId": "A",
"step": 240
@@ -12792,11 +14861,11 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"udp_mem\"} * 4",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"NoPorts\"}[$__rate_interval])",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "mem_bytes - UDP sockets in that state",
+ "legendFormat": "NoPorts - UDP Datagrams received on a port with no listener",
"range": true,
"refId": "B",
"step": 240
@@ -12804,15 +14873,29 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_sock_stat{instance=\"$node\",value=\"frag_mem\"} * 4",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"RcvbufErrors\"}[$__rate_interval])",
+ "format": "time_series",
"interval": "",
"intervalFactor": 1,
- "legendFormat": "FRAG_memory - Used memory for frag",
+ "legendFormat": "RcvbufErrors - UDP buffer errors received",
"range": true,
- "refId": "C"
+ "refId": "D",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"SndbufErrors\"}[$__rate_interval])",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "SndbufErrors - UDP buffer errors send",
+ "range": true,
+ "refId": "E",
+ "step": 240
}
],
- "title": "Sockstat Memory Size",
+ "title": "UDP Errors",
"type": "timeseries"
},
{
@@ -12825,7 +14908,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "octects out (-) / in (+)",
+ "axisLabel": "datagrams out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12880,6 +14963,18 @@
"value": "negative-Y"
}
]
+ },
+ {
+ "matcher": {
+ "id": "byRegexp",
+ "options": "/.*Snd.*/"
+ },
+ "properties": [
+ {
+ "id": "custom.transform",
+ "value": "negative-Y"
+ }
+ ]
}
]
},
@@ -12887,9 +14982,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 54
+ "y": 84
},
- "id": 221,
+ "id": 299,
"links": [],
"options": {
"legend": {
@@ -12901,8 +14996,7 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 300
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
@@ -12914,32 +15008,34 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_ip_count{instance=\"$node\",value=\"InReceives\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"InSegs\"}[$__rate_interval])",
"format": "time_series",
+ "instant": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "InOctets - Received octets",
- "range": true,
+ "legendFormat": "InSegs - Segments received, including those received in error. This count includes segments received on currently established connections",
"refId": "A",
"step": 240
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_ip_count{instance=\"$node\",value=\"OutRequests\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"OutSegs\"}[$__rate_interval])",
"format": "time_series",
+ "interval": "",
"intervalFactor": 1,
- "legendFormat": "OutOctets - Sent octets",
+ "legendFormat": "OutSegs - Segments sent, including those on current connections but excluding those containing only retransmitted octets",
"range": true,
"refId": "B",
"step": 240
}
],
- "title": "Netstat IP In / Out Octets",
+ "title": "TCP In / Out",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -12948,7 +15044,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "datagrams",
+ "axisLabel": "counter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -12998,9 +15094,9 @@
"h": 10,
"w": 12,
"x": 12,
- "y": 54
+ "y": 84
},
- "id": 81,
+ "id": 104,
"links": [],
"options": {
"legend": {
@@ -13012,8 +15108,7 @@
],
"displayMode": "table",
"placement": "bottom",
- "showLegend": true,
- "width": 300
+ "showLegend": true
},
"tooltip": {
"mode": "multi",
@@ -13025,17 +15120,61 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "rate(sysom_net_ip_count{instance=\"$node\",value=\"Forwarding\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"ListenOverflows\"}[$__rate_interval])",
"format": "time_series",
+ "hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "Forwarding - IP forwarding",
+ "legendFormat": "ListenOverflows - Times the listen queue of a socket overflowed",
"range": true,
"refId": "A",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"ListenDrops\"}[$__rate_interval])",
+ "format": "time_series",
+ "hide": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "ListenDrops - SYNs to LISTEN sockets ignored",
+ "range": true,
+ "refId": "B",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_retrans_count{instance=\"$node\",value=\"syn_ack\"}[$__rate_interval])",
+ "format": "time_series",
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "TCPSynRetrans - SYN-SYN/ACK retransmits to break down retransmissions in SYN, fast/timeout retransmits",
+ "range": true,
+ "refId": "C",
+ "step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"RetransSegs\"}[$__rate_interval])",
+ "interval": "",
+ "legendFormat": "RetransSegs - Segments retransmitted - that is, the number of TCP segments transmitted containing one or more previously transmitted octets",
+ "range": true,
+ "refId": "D"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"InErrs\"}[$__rate_interval])",
+ "interval": "",
+ "legendFormat": "InErrs - Segments received in error (e.g., bad TCP checksums)",
+ "range": true,
+ "refId": "E"
}
],
- "title": "Netstat IP Forwarding",
+ "title": "TCP Errors",
"type": "timeseries"
},
{
@@ -13048,7 +15187,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "messages out (-) / in (+)",
+ "axisLabel": "connections",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -13077,6 +15216,7 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -13095,12 +15235,19 @@
{
"matcher": {
"id": "byRegexp",
- "options": "/.*Out.*/"
+ "options": "/.*MaxConn *./"
},
"properties": [
{
- "id": "custom.transform",
- "value": "negative-Y"
+ "id": "color",
+ "value": {
+ "fixedColor": "#890F02",
+ "mode": "fixed"
+ }
+ },
+ {
+ "id": "custom.fillOpacity",
+ "value": 0
}
]
}
@@ -13110,9 +15257,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 64
+ "y": 94
},
- "id": 115,
+ "id": 85,
"links": [],
"options": {
"legend": {
@@ -13136,33 +15283,23 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InMsgs\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "InMsgs - Messages which the entity received. Note that this counter includes all those counted by icmpInErrors",
- "range": true,
- "refId": "A",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"OutMsgs\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"CurrEstab\"}[$__rate_interval])",
"format": "time_series",
+ "hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "OutMsgs - Messages which this entity attempted to send. Note that this counter includes all those counted by icmpOutErrors",
+ "legendFormat": "CurrEstab - TCP connections for which the current state is either ESTABLISHED or CLOSE- WAIT",
"range": true,
- "refId": "B",
+ "refId": "A",
"step": 240
}
],
- "title": "ICMP In / Out",
+ "title": "TCP Connections",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -13171,7 +15308,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "messages out (-) / in (+)",
+ "axisLabel": "counter",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -13200,6 +15337,7 @@
},
"links": [],
"mappings": [],
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -13214,28 +15352,15 @@
},
"unit": "short"
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Out.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- }
- ]
+ "overrides": []
},
"gridPos": {
"h": 10,
"w": 12,
"x": 12,
- "y": 64
+ "y": 94
},
- "id": 50,
+ "id": 395,
"links": [],
"options": {
"legend": {
@@ -13259,21 +15384,23 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_icmp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
+ "expr": "sysom_net_retrans_count{instance=\"$node\"}",
"format": "time_series",
+ "hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "InErrors - Messages which the entity received but determined as having ICMP-specific errors (bad ICMP checksums, bad length, etc.)",
+ "legendFormat": "{{value}}",
"range": true,
"refId": "A",
"step": 240
}
],
- "title": "ICMP Errors",
+ "title": "TCP Retrans",
"type": "timeseries"
},
{
"datasource": "sysom-prometheus",
+ "description": "",
"fieldConfig": {
"defaults": {
"color": {
@@ -13282,7 +15409,7 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "datagrams out (-) / in (+)",
+ "axisLabel": "counter out (-) / in (+)",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
@@ -13329,19 +15456,7 @@
{
"matcher": {
"id": "byRegexp",
- "options": "/.*Out.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Snd.*/"
+ "options": "/.*Sent.*/"
},
"properties": [
{
@@ -13356,9 +15471,9 @@
"h": 10,
"w": 12,
"x": 0,
- "y": 74
+ "y": 104
},
- "id": 55,
+ "id": 91,
"links": [],
"options": {
"legend": {
@@ -13382,11 +15497,12 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"InDatagrams\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesFailed\"}[$__rate_interval])",
"format": "time_series",
+ "hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "InDatagrams - Datagrams received",
+ "legendFormat": "SyncookiesFailed - Invalid SYN cookies received",
"range": true,
"refId": "A",
"step": 240
@@ -13394,19 +15510,53 @@
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"OutDatagrams\"}[$__rate_interval])",
+ "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesRecv\"}[$__rate_interval])",
"format": "time_series",
+ "hide": false,
"interval": "",
"intervalFactor": 1,
- "legendFormat": "OutDatagrams - Datagrams sent",
+ "legendFormat": "SyncookiesRecv - SYN cookies received",
"range": true,
"refId": "B",
"step": 240
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesSent\"}[$__rate_interval])",
+ "format": "time_series",
+ "hide": false,
+ "interval": "",
+ "intervalFactor": 1,
+ "legendFormat": "SyncookiesSent - SYN cookies sent",
+ "range": true,
+ "refId": "C",
+ "step": 240
}
],
- "title": "UDP In / Out",
+ "title": "TCP SynCookie",
"type": "timeseries"
- },
+ }
+ ],
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "refId": "A"
+ }
+ ],
+ "title": "Network Traffic and Sockstat and Netstat",
+ "type": "row"
+ },
+ {
+ "collapsed": true,
+ "gridPos": {
+ "h": 1,
+ "w": 24,
+ "x": 0,
+ "y": 30
+ },
+ "id": 427,
+ "panels": [
{
"datasource": "sysom-prometheus",
"fieldConfig": {
@@ -13417,11 +15567,11 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "datagrams",
+ "axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 20,
+ "fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -13434,7 +15584,7 @@
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "never",
+ "showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
@@ -13444,7 +15594,6 @@
"mode": "off"
}
},
- "links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -13457,88 +15606,93 @@
"value": 80
}
]
- },
- "unit": "short"
+ }
},
- "overrides": []
+ "overrides": [
+ {
+ "__systemRef": "hideSeriesFrom",
+ "matcher": {
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "node-real",
+ "node-predict"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
+ },
+ "properties": [
+ {
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": false,
+ "viz": true
+ }
+ }
+ ]
+ }
+ ]
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
- "x": 12,
- "y": 74
+ "x": 0,
+ "y": 7
},
- "id": 109,
- "links": [],
+ "id": 435,
"options": {
"legend": {
- "calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
- ],
- "displayMode": "table",
+ "calcs": [],
+ "displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
- "mode": "multi",
+ "mode": "single",
"sort": "none"
}
},
- "pluginVersion": "9.2.0",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"InErrors\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "InErrors - UDP Datagrams that could not be delivered to an application",
+ "expr": "sysom_colocation_node_predict_rt{category=\"predict\",tag=\"ALL\",resource=\"CPU\",exported_instance=\"$node\"}",
+ "legendFormat": "node-{{category}}",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"NoPorts\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "NoPorts - UDP Datagrams received on a port with no listener",
+ "expr": "100-sysom_proc_cpu_total{mode=\"idle\",instance=\"$node\"}",
+ "hide": false,
+ "legendFormat": "node-real",
"range": true,
- "refId": "B",
- "step": 240
+ "refId": "B"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"RcvbufErrors\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "RcvbufErrors - UDP buffer errors received",
+ "expr": "sum(sysom_container_cpuacct_stat{bvt=\"LS\",instance=\"$node\",value=\"total\"})",
+ "hide": false,
+ "legendFormat": "ls-real",
"range": true,
- "refId": "D",
- "step": 240
+ "refId": "C"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_udp_count{instance=\"$node\",value=\"SndbufErrors\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "SndbufErrors - UDP buffer errors send",
+ "expr": "sysom_colocation_node_predict_rt{category=\"predict\",tag=\"LS\",resource=\"CPU\",exported_instance=\"$node\"}",
+ "hide": false,
+ "legendFormat": "ls-{{category}}",
"range": true,
- "refId": "E",
- "step": 240
+ "refId": "D"
}
],
- "title": "UDP Errors",
+ "title": "$node- CPU\u9884\u4f30\u8d44\u6e90VS\u5b9e\u9645\u8d44\u6e90",
"type": "timeseries"
},
{
@@ -13551,11 +15705,11 @@
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
- "axisLabel": "datagrams out (-) / in (+)",
+ "axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
- "fillOpacity": 20,
+ "fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
@@ -13568,7 +15722,7 @@
"scaleDistribution": {
"type": "linear"
},
- "showPoints": "never",
+ "showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
@@ -13578,7 +15732,6 @@
"mode": "off"
}
},
- "links": [],
"mappings": [],
"thresholds": {
"mode": "absolute",
@@ -13591,131 +15744,173 @@
"value": 80
}
]
- },
- "unit": "short"
+ }
},
"overrides": [
{
+ "__systemRef": "hideSeriesFrom",
"matcher": {
- "id": "byRegexp",
- "options": "/.*Out.*/"
+ "id": "byNames",
+ "options": {
+ "mode": "exclude",
+ "names": [
+ "node-predict",
+ "node-real"
+ ],
+ "prefix": "All except:",
+ "readOnly": true
+ }
},
"properties": [
{
- "id": "custom.transform",
- "value": "negative-Y"
+ "id": "custom.hideFrom",
+ "value": {
+ "legend": false,
+ "tooltip": false,
+ "viz": true
+ }
}
]
- },
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Snd.*/"
- },
- "properties": [
+ }
+ ]
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 12,
+ "y": 7
+ },
+ "id": 431,
+ "options": {
+ "legend": {
+ "calcs": [],
+ "displayMode": "list",
+ "placement": "bottom",
+ "showLegend": true
+ },
+ "tooltip": {
+ "mode": "single",
+ "sort": "none"
+ }
+ },
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_rt{category=\"predict\",tag=\"ALL\",resource=\"MEMORY\",exported_instance=\"$node\"}",
+ "legendFormat": "node-{{category}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "100 - sysom_proc_meminfo{value=\"MemAvailable\",instance=\"$node\"} / on(instance) sysom_proc_meminfo{value=\"MemTotal\",instance=\"$node\"} * 100",
+ "hide": false,
+ "legendFormat": "node-real",
+ "range": true,
+ "refId": "B"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "(100*sum(sysom_container_memUtil{bvt=\"LS\",value=\"usage\",instance=\"$node\"})/1024)/sum(sysom_proc_meminfo{value=\"MemTotal\",instance=\"$node\"})",
+ "hide": false,
+ "legendFormat": "ls-real",
+ "range": true,
+ "refId": "C"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_rt{category=\"predict\",tag=\"LS\",resource=\"MEMORY\",exported_instance=\"$node\"}",
+ "hide": false,
+ "legendFormat": "ls-{{category}}",
+ "range": true,
+ "refId": "D"
+ }
+ ],
+ "title": "$node - MEM\u9884\u4f30\u8d44\u6e90VS\u5b9e\u9645\u8d44\u6e90",
+ "type": "timeseries"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "mappings": [],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "custom.transform",
- "value": "negative-Y"
+ "color": "green"
+ },
+ {
+ "color": "red",
+ "value": 80
}
]
}
- ]
+ },
+ "overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
"x": 0,
- "y": 84
+ "y": 15
},
- "id": 299,
- "links": [],
+ "id": 436,
"options": {
- "legend": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
+ "lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showUnfilled": true
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"InSegs\"}[$__rate_interval])",
- "format": "time_series",
- "instant": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "InSegs - Segments received, including those received in error. This count includes segments received on currently established connections",
- "refId": "A",
- "step": 240
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"LS\", category=\"predict\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
+ "range": true,
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"OutSegs\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "OutSegs - Segments sent, including those on current connections but excluding those containing only retransmitted octets",
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"LS\", category=\"predict\",exported_instance=\"$node\", future=~\"..\"}",
+ "hide": false,
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "B",
- "step": 240
+ "refId": "B"
}
],
- "title": "TCP In / Out",
- "type": "timeseries"
+ "title": "$node - LS\u670d\u52a1CPU\u8d44\u6e90\u9884\u4f30(\u672a\u676524\u5c0f\u65f6)",
+ "type": "bargauge"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "counter",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "mode": "thresholds"
},
- "links": [],
"mappings": [],
+ "max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
@@ -13728,137 +15923,63 @@
"value": 80
}
]
- },
- "unit": "short"
+ }
},
"overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
"x": 12,
- "y": 84
+ "y": 15
},
- "id": 104,
- "links": [],
+ "id": 433,
"options": {
- "legend": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
+ "lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showUnfilled": true
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"ListenOverflows\"}[$__rate_interval])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "ListenOverflows - Times the listen queue of a socket overflowed",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"LS\", category=\"predict\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"ListenDrops\"}[$__rate_interval])",
- "format": "time_series",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"LS\", category=\"predict\",exported_instance=\"$node\", future=~\"..\"}",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "ListenDrops - SYNs to LISTEN sockets ignored",
- "range": true,
- "refId": "B",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "irate(sysom_net_retrans_count{instance=\"$node\",value=\"syn_ack\"}[$__rate_interval])",
- "format": "time_series",
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "TCPSynRetrans - SYN-SYN/ACK retransmits to break down retransmissions in SYN, fast/timeout retransmits",
- "range": true,
- "refId": "C",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"RetransSegs\"}[$__rate_interval])",
- "interval": "",
- "legendFormat": "RetransSegs - Segments retransmitted - that is, the number of TCP segments transmitted containing one or more previously transmitted octets",
- "range": true,
- "refId": "D"
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"InErrs\"}[$__rate_interval])",
- "interval": "",
- "legendFormat": "InErrs - Segments received in error (e.g., bad TCP checksums)",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "E"
+ "refId": "B"
}
],
- "title": "TCP Errors",
- "type": "timeseries"
+ "title": "$node - LS\u670d\u52a1MEM\u8d44\u6e90\u9884\u4f30(\u672a\u676524\u5c0f\u65f6)",
+ "type": "bargauge"
},
{
"datasource": "sysom-prometheus",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "connections",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "mode": "thresholds"
},
- "links": [],
"mappings": [],
+ "max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
@@ -13871,115 +15992,133 @@
"value": 80
}
]
- },
- "unit": "short"
+ }
},
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*MaxConn *./"
- },
- "properties": [
+ "overrides": []
+ },
+ "gridPos": {
+ "h": 8,
+ "w": 12,
+ "x": 0,
+ "y": 23
+ },
+ "id": 437,
+ "options": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
+ "calcs": [
+ "lastNotNull"
+ ],
+ "fields": "",
+ "values": false
+ },
+ "showUnfilled": true
+ },
+ "pluginVersion": "9.2.2",
+ "targets": [
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"ALL\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"ALL\",exported_instance=\"$node\", future=~\"..\"}",
+ "hide": false,
+ "legendFormat": "{{future}}",
+ "range": true,
+ "refId": "B"
+ }
+ ],
+ "title": "$node - \u8282\u70b9CPU\u8d44\u6e90\u9884\u4f30(\u672a\u676524\u5c0f\u65f6)",
+ "type": "bargauge"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "fieldConfig": {
+ "defaults": {
+ "color": {
+ "mode": "thresholds"
+ },
+ "decimals": 0,
+ "mappings": [],
+ "max": 100,
+ "min": 0,
+ "thresholds": {
+ "mode": "absolute",
+ "steps": [
{
- "id": "color",
- "value": {
- "fixedColor": "#890F02",
- "mode": "fixed"
- }
+ "color": "green"
},
{
- "id": "custom.fillOpacity",
- "value": 0
+ "color": "red",
+ "value": 80
}
]
}
- ]
+ },
+ "overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
- "x": 0,
- "y": 94
+ "x": 12,
+ "y": 23
},
- "id": 85,
- "links": [],
+ "id": 434,
"options": {
- "legend": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": -1,
+ "orientation": "vertical",
+ "reduceOptions": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
+ "lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showUnfilled": true
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_count{instance=\"$node\",value=\"CurrEstab\"}[$__rate_interval])",
- "format": "time_series",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"ALL\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"ALL\",exported_instance=\"$node\",future=~\"..\"}",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "CurrEstab - TCP connections for which the current state is either ESTABLISHED or CLOSE- WAIT",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "B"
}
],
- "title": "TCP Connections",
- "type": "timeseries"
+ "title": "$node - \u8282\u70b9MEM\u8d44\u6e90\u9884\u4f30(\u672a\u676524\u5c0f\u65f6)",
+ "type": "bargauge"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "counter",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "mode": "thresholds"
},
- "links": [],
"mappings": [],
+ "max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
@@ -13992,95 +16131,64 @@
"value": 80
}
]
- },
- "unit": "short"
+ }
},
"overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
- "x": 12,
- "y": 94
+ "x": 0,
+ "y": 31
},
- "id": 395,
- "links": [],
+ "id": 439,
"options": {
- "legend": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
+ "lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showUnfilled": true
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "sysom_net_retrans_count{instance=\"$node\"}",
- "format": "time_series",
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"LS\", category=\"slack\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
+ "range": true,
+ "refId": "A"
+ },
+ {
+ "datasource": "sysom-prometheus",
+ "editorMode": "code",
+ "expr": "sysom_colocation_node_predict_future{resource=\"CPU\", tag=\"LS\", category=\"slack\",exported_instance=\"$node\", future=~\"..\"}",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "{{value}}",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "A",
- "step": 240
+ "refId": "B"
}
],
- "title": "TCP Retrans",
- "type": "timeseries"
+ "title": "$node - LS\u670d\u52a1CPU-slack\u8d44\u6e90\u9884\u4f30",
+ "type": "bargauge"
},
{
"datasource": "sysom-prometheus",
- "description": "",
"fieldConfig": {
"defaults": {
"color": {
- "mode": "palette-classic"
- },
- "custom": {
- "axisCenteredZero": false,
- "axisColorMode": "text",
- "axisLabel": "counter out (-) / in (+)",
- "axisPlacement": "auto",
- "barAlignment": 0,
- "drawStyle": "line",
- "fillOpacity": 20,
- "gradientMode": "none",
- "hideFrom": {
- "legend": false,
- "tooltip": false,
- "viz": false
- },
- "lineInterpolation": "linear",
- "lineWidth": 1,
- "pointSize": 5,
- "scaleDistribution": {
- "type": "linear"
- },
- "showPoints": "never",
- "spanNulls": false,
- "stacking": {
- "group": "A",
- "mode": "none"
- },
- "thresholdsStyle": {
- "mode": "off"
- }
+ "mode": "thresholds"
},
- "links": [],
"mappings": [],
+ "max": 100,
+ "min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
@@ -14092,102 +16200,56 @@
"value": 80
}
]
- },
- "unit": "short"
- },
- "overrides": [
- {
- "matcher": {
- "id": "byRegexp",
- "options": "/.*Sent.*/"
- },
- "properties": [
- {
- "id": "custom.transform",
- "value": "negative-Y"
- }
- ]
}
- ]
+ },
+ "overrides": []
},
"gridPos": {
- "h": 10,
+ "h": 8,
"w": 12,
- "x": 0,
- "y": 104
+ "x": 12,
+ "y": 31
},
- "id": 91,
- "links": [],
+ "id": 438,
"options": {
- "legend": {
+ "displayMode": "gradient",
+ "minVizHeight": 10,
+ "minVizWidth": 0,
+ "orientation": "auto",
+ "reduceOptions": {
"calcs": [
- "mean",
- "lastNotNull",
- "max",
- "min"
+ "lastNotNull"
],
- "displayMode": "table",
- "placement": "bottom",
- "showLegend": true
+ "fields": "",
+ "values": false
},
- "tooltip": {
- "mode": "multi",
- "sort": "none"
- }
+ "showUnfilled": true
},
- "pluginVersion": "9.2.0",
+ "pluginVersion": "9.2.2",
"targets": [
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesFailed\"}[$__rate_interval])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "SyncookiesFailed - Invalid SYN cookies received",
- "range": true,
- "refId": "A",
- "step": 240
- },
- {
- "datasource": "sysom-prometheus",
- "editorMode": "code",
- "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesRecv\"}[$__rate_interval])",
- "format": "time_series",
- "hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "SyncookiesRecv - SYN cookies received",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"LS\", category=\"slack\",exported_instance=\"$node\", future=~\".\"}",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "B",
- "step": 240
+ "refId": "A"
},
{
"datasource": "sysom-prometheus",
"editorMode": "code",
- "expr": "irate(sysom_net_tcp_ext_count{instance=\"$node\",value=\"SyncookiesSent\"}[$__rate_interval])",
- "format": "time_series",
+ "expr": "sysom_colocation_node_predict_future{resource=\"MEMORY\", tag=\"LS\", category=\"slack\",exported_instance=\"$node\", future=~\"..\"}",
"hide": false,
- "interval": "",
- "intervalFactor": 1,
- "legendFormat": "SyncookiesSent - SYN cookies sent",
+ "legendFormat": "{{future}}",
"range": true,
- "refId": "C",
- "step": 240
+ "refId": "B"
}
],
- "title": "TCP SynCookie",
- "type": "timeseries"
- }
- ],
- "targets": [
- {
- "datasource": "sysom-prometheus",
- "refId": "A"
+ "title": "$node - LS\u670d\u52a1MEMORY-slack\u8d44\u6e90\u9884\u4f30",
+ "type": "bargauge"
}
],
- "title": "Network Traffic and Sockstat and Netstat",
+ "title": "Resource Evaluation",
"type": "row"
}
],
@@ -14221,8 +16283,8 @@
{
"current": {
"selected": false,
- "text": "127.0.0.1:8400",
- "value": "127.0.0.1:8400"
+ "text": "192.168.10.149:8400",
+ "value": "192.168.10.149:8400"
},
"datasource": "sysom-prometheus",
"definition": "label_values(sysom_proc_meminfo, instance)",
@@ -14248,7 +16310,7 @@
]
},
"time": {
- "from": "now-1h",
+ "from": "now-24h",
"to": "now"
},
"timepicker": {
@@ -14279,7 +16341,7 @@
"timezone": "browser",
"title": "sysom_base",
"uid": "rYdddlPWk",
- "version": 4,
+ "version": 5,
"weekStart": ""
}
}
\ No newline at end of file
diff --git a/docker/sysom-init.service b/docker/sysom-init.service
index 96c390f5e5f58d9718acc66c6847c0ea3bb423e1..4abdbc4e1061aacf1d5f8f0d59a1543cebdf0c37 100644
--- a/docker/sysom-init.service
+++ b/docker/sysom-init.service
@@ -1,10 +1,12 @@
[Unit]
Description=Init sysom
After=mariadb.service
+Before=supervisord
[Service]
Type=oneshot
-ExecStart=bash -x /root/sysom/script/server/init.sh
+WorkingDirectory=/usr/local/sysom/init_scripts
+ExecStart=bash -x ./sysom.sh init ALL
[Install]
WantedBy=multi-user.target
\ No newline at end of file
diff --git a/docker/sysom_dockerfile b/docker/sysom_base_dockerfile
similarity index 75%
rename from docker/sysom_dockerfile
rename to docker/sysom_base_dockerfile
index be9d2a0fbcbd56b1e65e25188c8435e5621efb52..b75442ff694559e936c4c8b4cf9f37a3cd16d801 100644
--- a/docker/sysom_dockerfile
+++ b/docker/sysom_base_dockerfile
@@ -1,4 +1,14 @@
-FROM openanolis/anolisos:8.8
+
+FROM node:16.20.1 as web_builder
+COPY sysom_web /root/sysom_web
+WORKDIR /root/sysom_web
+RUN npm config set registry https://registry.npmmirror.com
+RUN yarn config set registry https://registry.npmmirror.com
+RUN yarn
+RUN yarn build
+
+
+FROM openanolis/anolisos:8.8 as prod
# Add epel
RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
@@ -28,11 +38,11 @@ COPY deps /root/sysom/deps
COPY environment /root/sysom/environment
COPY sysom_server /root/sysom/sysom_server
-COPY sysom_web/dist /usr/local/sysom/web
+COPY --from=web_builder /root/sysom_web/dist /usr/local/sysom/web
RUN bash -x /root/sysom/script/sysom.sh install deps ALL
RUN bash -x /root/sysom/script/sysom.sh install env ALL
-RUN bash -x /root/sysom/script/sysom.sh install ms sysom_api,sysom_diagnosis,sysom_channel,sysom_monitor_server,sysom_migration
+RUN bash -x /root/sysom/script/sysom.sh install ms sysom_api,sysom_diagnosis,sysom_channel,sysom_monitor_server,sysom_log,sysom_alarm,sysom_cmg
RUN yum clean all
diff --git a/docker/sysom_api_dockerfile b/docker/sysom_base_lite_dockerfile
similarity index 38%
rename from docker/sysom_api_dockerfile
rename to docker/sysom_base_lite_dockerfile
index 4eaa0b9c240b05c5fcb8b06743f12dcd78c23136..df9a713ca1ca91a89df9d7e4a45960319b56f1b1 100644
--- a/docker/sysom_api_dockerfile
+++ b/docker/sysom_base_lite_dockerfile
@@ -1,4 +1,14 @@
-FROM openanolis/anolisos:8.8
+
+FROM node:16.20.1 as web_builder
+COPY sysom_web /root/sysom_web
+WORKDIR /root/sysom_web
+RUN npm config set registry https://registry.npmmirror.com
+RUN yarn config set registry https://registry.npmmirror.com
+RUN yarn
+RUN yarn build
+
+
+FROM openanolis/anolisos:8.8 as prod
# Add epel
RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
@@ -9,23 +19,34 @@ RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
RUN yum makecache
RUN yum install -y supervisor cronie net-tools
RUN systemctl enable crond
-# RUN systemctl enable supervisord
+RUN yum install -y python3
+RUN yum install -y nginx
+RUN yum install -y wget
+RUN systemctl enable supervisord
+RUN systemctl enable nginx
# Init sysom-diagnosis
ARG SYSOM_HOME=/usr/local/sysom
ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
RUN mkdir /root/sysom
+RUN mkdir -p /usr/local/sysom
COPY conf /root/sysom/conf
COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
+COPY deps /root/sysom/deps
+COPY environment /root/sysom/environment
+COPY sysom_server /root/sysom/sysom_server
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_api
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
+COPY --from=web_builder /root/sysom_web/dist /usr/local/sysom/web
+
+RUN bash -x /root/sysom/script/sysom.sh install deps nginx
+RUN bash -x /root/sysom/script/sysom.sh install env ALL
+RUN bash -x /root/sysom/script/sysom.sh install ms sysom_api,sysom_diagnosis,sysom_channel,sysom_monitor_server,sysom_log,sysom_cmg
RUN yum clean all
+COPY docker/sysom-init.service /usr/lib/systemd/system/sysom-init.service
+RUN systemctl enable sysom-init.service
+
# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
+ENTRYPOINT [ "/usr/sbin/init" ]
\ No newline at end of file
diff --git a/docker/sysom_channel_dockerfile b/docker/sysom_channel_dockerfile
deleted file mode 100644
index 70e34b9f6e30fa5bf2e3bb75a7475abf3dbfc8ac..0000000000000000000000000000000000000000
--- a/docker/sysom_channel_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_channel
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_diagnosis_dockerfile b/docker/sysom_diagnosis_dockerfile
deleted file mode 100644
index 5197206457001b4e730ed5f90fff5d6dff539be5..0000000000000000000000000000000000000000
--- a/docker/sysom_diagnosis_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_diagnosis
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_hotfix_dockerfile b/docker/sysom_hotfix_dockerfile
deleted file mode 100644
index ffc3106a6647e25b346c46623d17a413c4c8b134..0000000000000000000000000000000000000000
--- a/docker/sysom_hotfix_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools rpcbind nfs-utils
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_hotfix
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_migration_dockerfile b/docker/sysom_migration_dockerfile
deleted file mode 100644
index e34ec3d20ecd72894efb4d52b7b52ff39cdc887d..0000000000000000000000000000000000000000
--- a/docker/sysom_migration_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools wget
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_migration
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_monitor_server_dockerfile b/docker/sysom_monitor_server_dockerfile
deleted file mode 100644
index a930cc609bee8f1b44ff22efcc68cce58a07efb2..0000000000000000000000000000000000000000
--- a/docker/sysom_monitor_server_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_monitor_server
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_vmcore_dockerfile b/docker/sysom_vmcore_dockerfile
deleted file mode 100644
index 6bbe95481eb22c124fe0db4f5ef678cf81250781..0000000000000000000000000000000000000000
--- a/docker/sysom_vmcore_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools rpcbind nfs-utils
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_vmcore
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docker/sysom_vul_dockerfile b/docker/sysom_vul_dockerfile
deleted file mode 100644
index 378fb79bd707fb457e00312d79aa59ec49f27da5..0000000000000000000000000000000000000000
--- a/docker/sysom_vul_dockerfile
+++ /dev/null
@@ -1,31 +0,0 @@
-FROM openanolis/anolisos:8.8
-
-# Add epel
-RUN yum install -y https://mirrors.aliyun.com/epel/epel-release-latest-8.noarch.rpm
-RUN bash -c "sed -i 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|' /etc/yum.repos.d/epel*"
-RUN bash -c "sed -i 's|^metalink|#metalink|' /etc/yum.repos.d/epel*"
-
-# Add required yum packages
-RUN yum makecache
-RUN yum install -y supervisor cronie net-tools rpcbind nfs-utils
-RUN systemctl enable crond
-# RUN systemctl enable supervisord
-
-# Init sysom-diagnosis
-ARG SYSOM_HOME=/usr/local/sysom
-ARG SYSOM_SERVER_HOME=${SYSOM_HOME}/server
-
-RUN mkdir /root/sysom
-COPY conf /root/sysom/conf
-COPY script /root/sysom/script
-COPY infrastructure /root/sysom/infrastructure
-COPY microservice /root/sysom/microservice
-
-RUN bash -x /root/sysom/script/sysom.sh deploy infrastructure env,sdk
-RUN bash -x /root/sysom/script/sysom.sh deploy microservice sysom_vul
-RUN sed "s/nodaemon=false/nodaemon=true/g" -i /etc/supervisord.conf
-
-RUN yum clean all
-
-# # 环境准备
-ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
\ No newline at end of file
diff --git a/docs/develop_guide.md b/docs/develop_guide.md
index b40b6fe9cb92a2ce42491537281b988e1fd968d4..bd97740f6310a75e3e17ded6c43eb658f43dd88b 100644
--- a/docs/develop_guide.md
+++ b/docs/develop_guide.md
@@ -302,4 +302,28 @@ for msg in consumer:
# 使用示例 => 下列命令会一键创建一个名为 sysom_demo 的微服务,并监听在 7010 端口
./sysom.sh create server demo 7010
-```
\ No newline at end of file
+```
+
+
+### 3.1 已有微服务以及端口占用情况
+| **微服务名** | **占用端口** |
+| -------------- | ----------------- |
+| sysom_api | 7001 |
+| sysom_diagnosis | 7002 |
+| sysom_channel | 7003 |
+| sysom_vmcore | 7004 |
+| sysom_vul | 7005 |
+| sysom_migration | 7006 |
+| sysom_hotfix | 7007 |
+| sysom_monitor_server | 7009 |
+| sysom_log | 7010 |
+| sysom_cec_proxy | 7011 |
+| sysom_alarm | 7012 |
+| sysom_rca | 7013 |
+| sysom_ad_proxy | 7014 |
+| sysom_knowledge | 7015 |
+| sysom_hotfix_builder | 7016 |
+| sysom_metric_anomaly_detection | 7017 |
+| sysom_alert_pusher | 7018 |
+| sysom_dingtalk | 7019 |
+| sysom_cluster_health | 7020 |
\ No newline at end of file
diff --git a/environment/0_env/requirements.txt b/environment/0_env/requirements.txt
index fab44e461d26933677238948e6afec072b86338f..8f2b516c798cdc4c9423bf0b49db8e2f49b930f3 100644
--- a/environment/0_env/requirements.txt
+++ b/environment/0_env/requirements.txt
@@ -6,6 +6,7 @@ aiofiles==0.8.0
anyio==3.6.2
aiohttp==3.8.4
asyncer==0.0.2
+sqlalchemy==1.4.49
# asyncssh==2.12.0
# autopep8==2.0.0
# channels==3.0.4
@@ -37,4 +38,6 @@ uvicorn[standard]==0.16.0
# xlrd==2.0.1
# prometheus-client==0.16.0
pyyaml==6.0
-pyyaml-include==1.3
\ No newline at end of file
+pyyaml-include==1.3
+psutil==5.9.7
+confluent-kafka==1.9.0
diff --git a/environment/1_sdk/cec_kafka/__init__.py b/environment/1_sdk/cec_kafka/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..17cd0f5c027a627564ec97293b82d35bbeb03134
--- /dev/null
+++ b/environment/1_sdk/cec_kafka/__init__.py
@@ -0,0 +1,9 @@
+# -*- coding: utf-8 -*- #
+"""
+Time 2023/12/7 21:16
+Author: zhangque (Wardenjohn)
+Email ydzhang@linux.alibaba.com
+File __init__.py.py
+Description:
+"""
+name = "cec_kafka"
diff --git a/environment/1_sdk/cec_kafka/admin_static.py b/environment/1_sdk/cec_kafka/admin_static.py
new file mode 100644
index 0000000000000000000000000000000000000000..3b555d4c093552e058635d630bb111ca52a8b004
--- /dev/null
+++ b/environment/1_sdk/cec_kafka/admin_static.py
@@ -0,0 +1,144 @@
+# -*- coding: utf-8 -*- #
+"""
+Time 2022/9/26 21:13
+Author: mingfeng (SunnyQjm), zhangque (Wardenjohn)
+Email mfeng@linux.alibaba.com, ydzhang@linux.alibaba.com
+File admin_static.py
+Description: static call method
+"""
+import sys
+from typing import Optional, List
+from itertools import chain
+from clogger import logger
+from cec_base.exceptions import TopicNotExistsException, \
+ TopicAlreadyExistsException, ConsumerGroupNotExistsException, \
+ ConsumerGroupAlreadyExistsException
+from cec_base.meta import TopicMeta, PartitionMeta, ConsumerGroupMeta, \
+ ConsumerGroupMemberMeta
+from cec_base.exceptions import CecException
+from cec_base.url import CecUrl
+from .utils import raise_if_not_ignore
+from .consume_status_storage import ConsumeStatusStorage
+from .common import StaticConst
+from confluent_kafka.admin import AdminClient, NewTopic
+from confluent_kafka import Consumer as ConfluentKafkaConsumer
+from confluent_kafka import Consumer, TopicPartition
+import confluent_kafka
+from confluent_kafka.error import KafkaException, KafkaError
+
+
+####################################################################
+# Static function implementation of the management interface
+####################################################################
+def static_create_topic(kafka_admin_client: AdminClient,
+ topic_name: str = "", num_partitions: int = 1,
+ replication_factor: int = 1,
+ ignore_exception: bool = False,
+ expire_time: int = 24 * 60 * 60 * 1000) -> bool:
+ try:
+ res = kafka_admin_client.create_topics(
+ [NewTopic(topic_name, num_partitions, replication_factor)])
+ res.get(topic_name).result()
+ except KafkaException as ke:
+ if ke.args[0].code() == KafkaError.TOPIC_ALREADY_EXISTS:
+ return raise_if_not_ignore(ignore_exception,
+ TopicAlreadyExistsException(
+ f"Topic {topic_name} already "
+ f"exists."
+ ))
+ else:
+ return raise_if_not_ignore(ignore_exception, ke)
+ except Exception as e:
+ return raise_if_not_ignore(ignore_exception, e)
+ return True
+
+def static_del_topic(kafka_admin_client: AdminClient, topic_name: str,
+ ignore_exception: bool = False):
+ """static method of deleting one topic
+
+ this method of deleting one topic can be invoked by static method
+
+ Args:
+ kafka_admin_client (AdminClient): _description_
+ topic_name (str): _description_
+ ignore_exception (bool, optional): _description_. Defaults to False.
+
+ Returns:
+ _type_: _description_
+ """
+ try:
+ res = kafka_admin_client.delete_topics([topic_name])
+ res.get(topic_name).result()
+ except KafkaException as ke:
+ if ke.args[0].code() == KafkaError.UNKNOWN_TOPIC_OR_PART:
+ return raise_if_not_ignore(ignore_exception,
+ TopicNotExistsException(
+ f"Someone else is creating or deleting "
+ f"this topic."
+ ))
+ else:
+ return raise_if_not_ignore(ignore_exception, ke)
+ except Exception as e:
+ return raise_if_not_ignore(ignore_exception, e)
+ return True
+
+def static_is_topic_exist(kafka_admin_client: AdminClient,
+ topic_name: str) -> bool:
+ class_meta = kafka_admin_client.list_topics(topic_name)
+ return class_meta.topics.get(topic_name).error is None
+
+def static_get_topic_list(kafka_admin_client: AdminClient) -> [TopicMeta]:
+ class_meta = kafka_admin_client.list_topics()
+ res = []
+ for topic in class_meta.topics.values():
+ new_topic = TopicMeta(topic.topic)
+ new_topic.error = topic.error
+ for p_key, p_value in topic.partitions.items():
+ new_topic.partitions[p_key] = PartitionMeta(p_value.id)
+ res.append(new_topic)
+ return res
+
+def static_create_consumer_group(kafka_admin_client: AdminClient,
+ url: CecUrl, consumer_group_id: str,
+ ignore_exception: bool = False
+ ):
+
+ if KafkaAdmin.static_is_consumer_group_exist(kafka_admin_client,
+ consumer_group_id):
+ return raise_if_not_ignore(
+ ignore_exception, ConsumerGroupAlreadyExistsException(
+ f"Consumer group {consumer_group_id} already exists."))
+
+ _kafka_consumer_client = Consumer({
+ 'bootstrap.servers': url.netloc,
+ "request.timeout.ms": 600000,
+ 'group.id': consumer_group_id,
+ **url.params,
+ })
+ try:
+ _kafka_consumer_client.subscribe(['__consumer_offsets'])
+ _kafka_consumer_client.poll(0.1)
+ except Exception as e:
+ return raise_if_not_ignore(
+ ignore_exception, e)
+ return True
+
+def static_is_consumer_group_exist(
+ kafka_admin_client: AdminClient,
+ consumer_group_id: str) -> bool:
+ return len(kafka_admin_client.list_groups(consumer_group_id)) > 0
+
+def static_get_consumer_group_list(
+ kafka_admin_client: AdminClient
+ ) -> [ConsumerGroupMeta]:
+ groups = kafka_admin_client.list_groups()
+ res = []
+ for group in groups:
+ new_group = ConsumerGroupMeta(group.id)
+ new_group.error = group.error
+ for member in group.members:
+ new_group.members.append(
+ ConsumerGroupMemberMeta(member.client_id))
+ res.append(new_group)
+ return res
+
diff --git a/environment/1_sdk/cec_kafka/common.py b/environment/1_sdk/cec_kafka/common.py
new file mode 100644
index 0000000000000000000000000000000000000000..aa19b96c9696008245708c2b1d68b9c159adfa2f
--- /dev/null
+++ b/environment/1_sdk/cec_kafka/common.py
@@ -0,0 +1,119 @@
+# -*- coding: utf-8 -*- #
+"""
+Time 2022/7/29 13:33
+Author: Zhangque (Wardenjohn)
+Email ydzhang@linux.alibaba.com
+File common.py
+Description: Static variable
+"""
+
+from cec_base.url import CecUrl
+
+class StaticConst:
+ """Static consts
+
+ This class defines all the static constant values in the cec-redis module
+ """
+
+ # List of specialization parameters
+ KAFKA_SPECIAL_PARM_CEC_BATCH_CONSUMER_LIMIT = "batch_consume_limit"
+ KAFKA_SPECIAL_PARM_CEC_CONSUME_TIMEOUT = "kafka_consume_event_timeout"
+ # KAFKA_CONNECTTION_PARAMS_ ****
+
+ """
+ The special parameter supported by Kafka
+ """
+ _kafka_special_parameter_list = [
+ # batch_consume_limit => the number of event to consume in one batch
+ # 1. Effective range:[Consumer]
+ # 2. Meaning: This parameter specifies the number of event of one
+ # consumer consume at one time. For some case of Kafka,
+ # if the number of event not reach the batch_consume_limit,
+ # the consumer process may block.
+ KAFKA_SPECIAL_PARM_CEC_BATCH_CONSUMER_LIMIT,
+ # kafka_consume_event_timeout => The time to wait for an event
+ # 1. Effective range:[Consumer]
+ # 2. Meaning: This parameter specifies the time to wait for an event.
+ # If the consumer wait for an event too long to reach the
+ # limit of this timeout, consumer will stop to wait more
+ # event even though the number of message still not reach
+ # the batch_consume_limie.
+ KAFKA_SPECIAL_PARM_CEC_CONSUME_TIMEOUT
+ ]
+
+ _kafka_special_parameters_default_value = {
+ KAFKA_SPECIAL_PARM_CEC_BATCH_CONSUMER_LIMIT: (int, 1),
+ KAFKA_SPECIAL_PARM_CEC_CONSUME_TIMEOUT: (int, 1)
+ }
+
+ """
+ The following _kafka_connection_parameter_list is used to generate the supported
+ parameter supported by the connection process to kafka server.
+ _kafka_connection_parameters_default_value is used to generate the default value
+ of kafka server connection.
+ """
+
+ _kafka_connection_parameter_list = [
+
+ ]
+
+ _kafka_connection_parameters_default_value = {
+
+ }
+
+ @staticmethod
+ def parse_special_parameter(params: dict) -> dict:
+ """Parse specialization parameters
+
+ Parse the specialization parameters and remove the specialization
+ parameters from the parameter list
+
+ Args:
+ params(dict): CecUrl.params
+
+ Returns:
+
+ """
+ res = {}
+ for key in StaticConst._kafka_special_parameter_list:
+ _type, default = \
+ StaticConst._kafka_special_parameters_default_value[key]
+ res[key] = _type(params.pop(key, default))
+ return res
+
+ @staticmethod
+ def parse_kafka_connection_params(params: dict) -> dict:
+ """Parse kafka connection parameters
+
+ Args:
+ params(dict): CecUrl.params
+
+ Returns:
+ params(dict)
+ """
+ res = {}
+ for key in StaticConst._kafka_connection_parameter_list:
+ res[key] = params[key]
+ return res
+
+
+class ClientBase:
+ """
+ cec-kafka client base class, which provides some generic implementation
+ """
+
+ def __init__(self, url: CecUrl):
+ self._redis_version = None
+ self._special_params = StaticConst.parse_special_parameter(url.params)
+
+ def get_special_param(self, key: str, default=''):
+ """Get specialization parameter by key
+
+ Args:
+ key(str): specialization parameter key
+ default(Any): default value if key not exists
+
+ Returns:
+
+ """
+ return self._special_params.get(key, default)
diff --git a/environment/1_sdk/cec_kafka/kafka_admin.py b/environment/1_sdk/cec_kafka/kafka_admin.py
new file mode 100644
index 0000000000000000000000000000000000000000..06753bc5af58c8ddd3e84ff7bffc96fef17a0194
--- /dev/null
+++ b/environment/1_sdk/cec_kafka/kafka_admin.py
@@ -0,0 +1,502 @@
+# -*- coding: utf-8 -*- #
+"""
+Time 2023/12/11 20:20
+Author: mingfeng (SunnyQjm), zhangque (Wardenjohn)
+Email mfeng@linux.alibaba.com, ydzhang@linux.alibaba.com
+File kafka_admin.py
+Description: Kafka Admin. For Kafka manage object.
+"""
+import json
+import uuid
+
+from cec_base.admin import Admin, ConsumeStatusItem
+from cec_base.exceptions import TopicNotExistsException, TopicAlreadyExistsException
+from cec_base.exceptions import ConsumerGroupAlreadyExistsException, CecException
+from cec_base.event import Event
+from cec_base.url import CecUrl
+from cec_base.meta import TopicMeta, PartitionMeta, ConsumerGroupMeta, \
+ ConsumerGroupMemberMeta
+from clogger import logger
+from confluent_kafka.admin import AdminClient, NewTopic
+from confluent_kafka import Consumer as ConfluentKafkaConsumer
+from confluent_kafka import Consumer, TopicPartition
+import confluent_kafka
+from confluent_kafka.error import KafkaException, KafkaError
+from .utils import raise_if_not_ignore
+from .common import StaticConst, ClientBase
+class KafkaAdmin(Admin):
+ """This is a kafka-based execution module implement of Admin
+
+ KafkaAdmin contain the function of managing topic and group, etc.
+
+ https://github.com/confluentinc/confluent-kafka-python/blob/master/examples/list_offsets.py
+ """
+
+ _EVENT_KEY_KAFKA_CONSUMER_MESSAGE = "_EVENT_KEY_KAFKA_CONSUMER_MESSAGE"
+
+ """__init__ for object KafkaAdmin
+ Args:
+ url: CecUrl Object. CecUrl contains cec url format definition
+ """
+ def __init__(self, url: CecUrl) -> None:
+ super().__init__()
+ self._kafka_admin_client: AdminClient = None
+ self._kafka_consumer_client: ConfluentKafkaConsumer = None
+ self._current_url: str = ""
+ self._current_cec_url: CecUrl= url
+ url.params = StaticConst.parse_kafka_connection_params(url.params)
+ self.connect_by_cec_url(url)
+
+ @staticmethod
+ def static_create_topic(kafka_admin_client: AdminClient,
+ topic_name: str = "", num_partitions: int = 1,
+ replication_factor: int = 1,
+ ignore_exception: bool = False,
+ expire_time: int = 24 * 60 * 60 * 1000) -> bool:
+ try:
+ res = kafka_admin_client.create_topics(
+ [NewTopic(topic_name, num_partitions, replication_factor)])
+ res.get(topic_name).result()
+ except KafkaException as ke:
+ if ke.args[0].code() == KafkaError.TOPIC_ALREADY_EXISTS:
+ return raise_if_not_ignore(ignore_exception,
+ TopicAlreadyExistsException(
+ f"Topic {topic_name} already "
+ f"exists."
+ ))
+ else:
+ return raise_if_not_ignore(ignore_exception, ke)
+ except Exception as e:
+ return raise_if_not_ignore(ignore_exception, e)
+ return True
+
+ def create_topic(self, topic_name: str = "", num_partitions: int = 1,
+ replication_factor: int = 1,
+ ignore_exception: bool = False,
+ expire_time: int = 24 * 60 * 60 * 1000) -> bool:
+ """Create one topic to Kafka Server
+
+ Args:
+ topic_name: the unique identifier of the topic
+ num_partitions: the number of the partitions
+ 1. This parameter set how many partitions should be devided of the data from one topic.
+ This data will be store in different cluster blocker.
+ 2. If the underlying message middleware supports partitioning (such as Kafka),
+ partitioning can be done based on this configuration;
+ 3. If the underlying message middleware do not support partitioning (such as Redis),
+ ignore this parameter will be enough (one partition is enough). You can use Admin.is_support_partitions()
+ to judge if the underlying message midddleware is support this feature or not.
+
+ replication_factor: set how many copy of this topic data
+
+ 1. 该参数制定了在分布式集群部署的场景下,同一个主题的分区存在副本的数量,如果 replication_factor == 1
+ 则表示主题下的所有分区都只有一个副本,一旦丢失不可回复;
+ 2. 如果底层的消息中间件支持数据副本,则可以依据该配置进行对应的设置;
+ 3. 如果底层的消息中间件不支持数据副本,则忽略该参数即可(即认定只有一个副本即可),可以通过
+ Admin.is_support_replication() 方法判定当前使用的小心中间件实现是否支持该特性;
+
+ ignore_exception: 是否忽略可能会抛出的异常
+ expire_time: 事件超时时间(单位:ms,默认:1day)
+
+ 1. 该参数指定了目标 Topic 中每个事件的有效期;
+ 2. 一旦一个事件的加入到 Topic 的时间超过了 expire_time,则cec不保证该事件
+ 的持久性,cec应当在合适的时候删除超时的事件;
+ 3. 不强制要求超时的事件被立即删除,可以对超时的事件进行周期性的清理。
+
+ Returns:
+ bool: True if successful, False otherwise.
+
+ Raises:
+ TopicAlreadyExistsException: If topic already exists
+
+ Examples:
+ >>> admin = dispatch_admin("kafka://localhost:6379")
+ >>> admin.create_topic("test_topic")
+ True
+ """
+ return KafkaAdmin.static_create_topic(
+ self._kafka_admin_client,
+ topic_name, num_partitions, replication_factor, ignore_exception,
+ expire_time
+ )
+
+ @staticmethod
+ def static_del_topic(kafka_admin_client: AdminClient, topic_name: str,
+ ignore_exception: bool = False):
+ """static method of deleting one topic
+
+ this method of deleting one topic can be invoked by static method
+
+ Args:
+ kafka_admin_client (AdminClient): _description_
+ topic_name (str): _description_
+ ignore_exception (bool, optional): _description_. Defaults to False.
+
+ Returns:
+ _type_: _description_
+ """
+ try:
+ res = kafka_admin_client.delete_topics([topic_name])
+ res.get(topic_name).result()
+ except KafkaException as ke:
+ if ke.args[0].code() == KafkaError.UNKNOWN_TOPIC_OR_PART:
+ return raise_if_not_ignore(ignore_exception,
+ TopicNotExistsException(
+ f"Someone else is creating or deleting "
+ f"this topic."
+ ))
+ else:
+ return raise_if_not_ignore(ignore_exception, ke)
+ except Exception as e:
+ return raise_if_not_ignore(ignore_exception, e)
+ return True
+
+ def del_topic(self, topic_name: str,
+ ignore_exception: bool = False) -> bool:
+ """Delete one topic
+
+ 删除一个 Topic => 对应到 Kafka 应该是删除一个 Topic
+
+ Args:
+ topic_name: 主题名字(主题的唯一标识)
+ ignore_exception: 是否忽略可能会抛出的异常
+
+ Returns:
+ bool: True if successful, False otherwise.
+
+ Raises:
+ TopicNotExistsException: If topic not exists
+
+ Examples:
+ >>> admin = dispatch_admin("kafka://localhost:6379")
+ >>> admin.del_topic("test_topic")
+ True
+ """
+ return KafkaAdmin.static_del_topic(self._kafka_admin_client,
+ topic_name, ignore_exception)
+
+ @staticmethod
+ def static_is_topic_exist(kafka_admin_client: AdminClient,
+ topic_name: str) -> bool:
+ class_meta = kafka_admin_client.list_topics(topic_name)
+ return class_meta.topics.get(topic_name).error is None
+
+ def is_topic_exist(self, topic_name: str) -> bool:
+ """Judge whether one specific topic is exists
+
+ 判断 Topic 是否存在 => 对应到 Kafka 应该是判断是否存最对应topic
+ 1. 通过 list_topics 接口并指定 topic,判断返回的 Topic 是否有效进行判断
+
+ Args:
+ topic_name: 主题名字(主题的唯一标识)
+
+ Returns:
+ bool: True if topic exists, False otherwise.
+
+ Examples:
+ >>> admin = dispatch_admin("kafka://localhost:9092")
+ >>> admin.is_topic_exist("test_topic")
+ True
+ """
+ return KafkaAdmin.static_is_topic_exist(self._kafka_admin_client,
+ topic_name)
+
+ @staticmethod
+ def static_get_topic_list(kafka_admin_client: AdminClient) -> [TopicMeta]:
+ class_meta = kafka_admin_client.list_topics()
+ res = []
+ for topic in class_meta.topics.values():
+ new_topic = TopicMeta(topic.topic)
+ new_topic.error = topic.error
+ for p_key, p_value in topic.partitions.items():
+ new_topic.partitions[p_key] = PartitionMeta(p_value.id)
+ res.append(new_topic)
+ return res
+
+ def get_topic_list(self) -> [TopicMeta]:
+ """Get topic list
+
+ 获取 Topic 列表 => 对应到 Redis 应该是获取所有 Topic 的列表
+
+ Args:
+
+ Returns:
+ [str]: The topic name list
+
+ Examples:
+ >>> admin = dispatch_admin("kafka://localhost:6379")
+ >>> admin.get_topic_list()
+ [TopicMeta(faeec676-60db-4418-a775-c5f1121d5331, 1)]
+ """
+ return KafkaAdmin.static_get_topic_list(self._kafka_admin_client)
+
+ @staticmethod
+ def static_create_consumer_group(kafka_admin_client: AdminClient,
+ url: CecUrl, consumer_group_id: str,
+ ignore_exception: bool = False
+ ):
+
+ if KafkaAdmin.static_is_consumer_group_exist(kafka_admin_client,
+ consumer_group_id):
+ return raise_if_not_ignore(
+ ignore_exception, ConsumerGroupAlreadyExistsException(
+ f"Consumer group {consumer_group_id} already exists."))
+
+ _kafka_consumer_client = Consumer({
+ 'bootstrap.servers': url.netloc,
+ "request.timeout.ms": 600000,
+ 'group.id': consumer_group_id,
+ **url.params,
+ })
+ try:
+ _kafka_consumer_client.subscribe(['__consumer_offsets'])
+ _kafka_consumer_client.poll(0.1)
+ except Exception as e:
+ return raise_if_not_ignore(
+ ignore_exception, e)
+ return True
+
+ def create_consumer_group(self, consumer_group_id: str,
+ ignore_exception: bool = False) -> bool:
+ """Create one consumer group
+
+ 创建一个消费组
+ 1. __consumer_offsets 是 kafka 中用来传递消费者偏移量的特殊 Topic;
+ 2. 可以通过构建一个 Consumer,定语 __consumer_offsets 这个特殊主题,并且
+ 指定消费组 ID,则指定的消费组就会被正常创建。
+
+ Args:
+ consumer_group_id: 消费组ID,应当具有唯一性
+ ignore_exception: 是否忽略可能会抛出的异常
+
+ Returns:
+ bool: True if successful, False otherwise.
+
+ Raises:
+ ConsumerGroupAlreadyExistsException: If consumer group already
+ exists
+
+ Examples:
+ >>> admin = dispatch_admin("kafka://localhost:6379")
+ >>> admin.create_consumer_group("test_group")
+ True
+ """
+ res = KafkaAdmin.static_create_consumer_group(
+ self._kafka_admin_client, self._current_cec_url, consumer_group_id,
+ ignore_exception)
+ return res
+
+ def del_consumer_group(self, consumer_group_id: str,
+ ignore_exception: bool = False) -> bool:
+ raise CecException(
+ "Not implement del_consumer_group for current proto")
+
+ @staticmethod
+ def static_is_consumer_group_exist(
+ kafka_admin_client: AdminClient,
+ consumer_group_id: str) -> bool:
+ return len(kafka_admin_client.list_groups(consumer_group_id)) > 0
+
+ def is_consumer_group_exist(self, consumer_group_id: str) -> bool:
+ return KafkaAdmin.static_is_consumer_group_exist(
+ self._kafka_admin_client,
+ consumer_group_id
+ )
+
+ @staticmethod
+ def static_get_consumer_group_list(
+ kafka_admin_client: AdminClient
+ ) -> [ConsumerGroupMeta]:
+ groups = kafka_admin_client.list_groups()
+ res = []
+ for group in groups:
+ new_group = ConsumerGroupMeta(group.id)
+ new_group.error = group.error
+ for member in group.members:
+ new_group.members.append(
+ ConsumerGroupMemberMeta(member.client_id))
+ res.append(new_group)
+ return res
+
+ def get_consumer_group_list(self) -> [ConsumerGroupMeta]:
+ return KafkaAdmin.static_get_consumer_group_list(
+ self._kafka_admin_client
+ )
+
+ def get_consume_status(self, topic: str, consumer_group_id: str = "",
+ partition: int = 0) -> [ConsumeStatusItem]:
+ """Get consumption info for specific
+ { tableText } +
+
+ { detail.length >0 ? detail :