fix: mofin_health LLM告警级别修正(WARNING→INFO)
This commit is contained in:
@@ -1053,13 +1053,13 @@ def build_report():
|
|||||||
import sys as _sys
|
import sys as _sys
|
||||||
if '/home/hmo/.hermes/profiles/position-analyst/scripts' not in _sys.path:
|
if '/home/hmo/.hermes/profiles/position-analyst/scripts' not in _sys.path:
|
||||||
_sys.path.insert(0, '/home/hmo/.hermes/profiles/position-analyst/scripts')
|
_sys.path.insert(0, '/home/hmo/.hermes/profiles/position-analyst/scripts')
|
||||||
from alert_helper import notify, WARNING
|
from alert_helper import notify, INFO
|
||||||
_first = llm_health["errors_recent"][0] if llm_health["errors_recent"] else {}
|
_first = llm_health["errors_recent"][0] if llm_health["errors_recent"] else {}
|
||||||
notify("LLM端点故障",
|
notify("LLM端点故障",
|
||||||
f"最近{llm_health['scan_window_min']}分钟{llm_health['error_count']}次调用失败"
|
f"最近{llm_health['scan_window_min']}分钟{llm_health['error_count']}次调用失败"
|
||||||
f"({_first.get('log','?')} {_first.get('time','?')}: {_first.get('msg','')[:80]})。"
|
f"({_first.get('log','?')} {_first.get('time','?')}: {_first.get('msg','')[:80]})。"
|
||||||
f"gateway进程可能正常但LLM服务不可用,请检查opencode.ai端点。",
|
f"gateway进程可能正常但LLM服务不可用,请检查opencode.ai端点。",
|
||||||
WARNING)
|
INFO)
|
||||||
except Exception as _ae:
|
except Exception as _ae:
|
||||||
print(f"[LLM_MON] 告警发送失败: {_ae}", file=sys.stderr)
|
print(f"[LLM_MON] 告警发送失败: {_ae}", file=sys.stderr)
|
||||||
feature_tree.setdefault("warn_detail", {})["llm"] = (
|
feature_tree.setdefault("warn_detail", {})["llm"] = (
|
||||||
|
|||||||
Reference in New Issue
Block a user