11 Star 1 Fork 16

src-openEuler/sysSentry

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
enrich-alert-info-about-kernel-stack.patch 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
贺有志 提交于 2024-10-16 12:20 . enrich alert info about kernel stack
From 41bf507ca6cbbdf5e646a405de6b8d5b9be4bd28 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B4=BA=E6=9C=89=E5=BF=97?= <1037617413@qq.com>
Date: Wed, 16 Oct 2024 17:20:01 +0800
Subject: [PATCH] enrich alert info about kernel stack
---
src/python/sentryPlugins/ai_block_io/detector.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/python/sentryPlugins/ai_block_io/detector.py b/src/python/sentryPlugins/ai_block_io/detector.py
index ed8b64a..8536f7a 100644
--- a/src/python/sentryPlugins/ai_block_io/detector.py
+++ b/src/python/sentryPlugins/ai_block_io/detector.py
@@ -103,8 +103,10 @@ class DiskDetector:
elif len(diagnosis_info["rq_driver"]) != 0:
root_cause = "[Root Cause: disk slow]"
elif len(diagnosis_info["io_stage"]) != 0:
- stage = diagnosis_info["io_stage"][0][1].stage_name
- root_cause = f"[Root Cause: io stage slow, stage: {stage}]"
+ stage_list = []
+ for io_stage in diagnosis_info["io_stage"]:
+ stage_list.append(io_stage[0].stage_name)
+ root_cause = f"[Root Cause: io stage slow, stage: {stage_list}]"
if root_cause is None:
root_cause = "[Root Cause: high io pressure]"
return True, diagnosis_info["bio"][0][0], diagnosis_info["bio"][0][1], root_cause
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/sysSentry.git
git@gitee.com:src-openeuler/sysSentry.git
src-openeuler
sysSentry
sysSentry
master

搜索帮助