跳到主要内容

日志和监控

日志查看

统一日志查看器

实时查看所有服务的日志:

cd /home/kopens/plantpulse-ai/bin
./log-viewer.sh

单个服务日志

每个模块都提供单独的日志查看器:

# AI Chat Web
/home/kopens/plantpulse-ai/web/bin/log-viewer.sh

# TimeSeries
/home/kopens/plantpulse-ai/timeseries/bin/log-viewer.sh

# LightRAG (RAG)
docker logs -f lightrag

日志文件位置

服务日志文件
系统(全部)logs/application.log
系统(全部)logs/system.log
安装日志logs/setup.log
AI Chat Webweb/logs/system.log
TimeSeriestimeseries/logs/system.log
LightRAG (RAG)docker logs lightrag

AI 代理观察——任务视图

信息

2026-07 版本改进中,Arize Phoenix 已从技术栈中移除。代理执行流程在 AI Chat Web 的任务视图AgentTraceStore)中查看。

内置代理在内存中保存上一轮的工具调用过程(输入 → 工具调用 → 输出),可在聊天界面的"任务视图"中追踪调用了哪些工具、使用了哪些参数以及返回了哪些结果。


服务状态监控

status.sh

cd /home/kopens/plantpulse-ai/bin
./status.sh

基于端口检查所有服务的运行状态。[OK] 表示正常,[DOWN] 表示异常。

健康检查端点

服务健康检查 URL
AI Chat Webhttp://127.0.0.1/actuator/health
LightRAG (RAG)http://127.0.0.1:7114/health
TimeSerieshttp://127.0.0.1:8970/health
LiteLLMhttp://127.0.0.1:4000/health
Qdranthttp://127.0.0.1:6333/healthz
信息

统一 MCP 由 PlantPulse Platform server-web 提供,因此健康检查也要查看平台端。


日志清理

磁盘空间不足时:

cd /home/kopens/plantpulse-ai/bin
./clean.sh

清理对象:

  • 所有 logs/ 目录中的日志文件
  • 各服务的临时缓存
  • 构建产物
注意

运行 clean.sh 前,必须备份所有必要的日志。