✨ 主要改进: - 修复ljwx-admin前端构建错误,完成Element Plus到Naive UI的迁移 - 修复监控系统Docker镜像构建问题 - 完善告警系统自动处理功能 - 新增健康建议和档案管理模块 🔧 技术修复: - 修复Vue组件中重复defineProps问题 - 修复无效的v-model绑定 - 修复缺失的组件导入和API函数 - 修复Docker镜像用户权限问题 📦 新增功能: - 告警自动处理模块 (alert/auto-process) - 告警监控面板 (alert/monitor) - 健康建议管理 (health/recommendation) - 档案模板管理系统 - 系统性能监控仪表板 🐛 Bug修复: - 修复NTextarea组件导入错误 - 修复图标组件导入问题 - 修复API参数格式不匹配 - 修复Docker用户权限配置 🚀 构建优化: - 所有Docker镜像构建成功 - 前端应用编译通过 - 监控栈完整部署就绪 🏗️ 灵境万象系统 - 本地多架构构建 v1.2.6 🎉 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
47 lines
1.3 KiB
Docker
47 lines
1.3 KiB
Docker
# LJWX Prometheus 定制化镜像
|
|
# 基于官方Prometheus镜像,集成LJWX监控配置
|
|
|
|
ARG PROMETHEUS_VERSION=v2.40.0
|
|
FROM prom/prometheus:${PROMETHEUS_VERSION}
|
|
|
|
# 设置维护者信息
|
|
LABEL maintainer="LJWX Team <[email protected]>"
|
|
LABEL description="LJWX Customized Prometheus with pre-configured rules"
|
|
LABEL version="${LJWX_PROMETHEUS_VERSION:-1.2.6}"
|
|
|
|
# 切换到root用户进行配置
|
|
USER root
|
|
|
|
# 设置环境变量
|
|
ENV TZ=Asia/Shanghai
|
|
|
|
# 创建必要目录
|
|
RUN mkdir -p /etc/prometheus/rules /etc/prometheus/conf.d
|
|
|
|
# 复制配置文件
|
|
COPY docker/prometheus/prometheus.yml /etc/prometheus/prometheus.yml
|
|
COPY docker/prometheus/rules/ /etc/prometheus/rules/
|
|
|
|
# 检查并设置权限
|
|
RUN id && ls -la /etc && \
|
|
chown -R nobody:nobody /etc/prometheus \
|
|
&& chmod -R 755 /etc/prometheus
|
|
|
|
# 切换回nobody用户 (Prometheus镜像默认用户)
|
|
USER nobody
|
|
|
|
# 健康检查
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
|
CMD promtool query instant 'up' || exit 1
|
|
|
|
# 暴露端口
|
|
EXPOSE 9090
|
|
|
|
# 启动命令
|
|
ENTRYPOINT ["/bin/prometheus"]
|
|
CMD ["--config.file=/etc/prometheus/prometheus.yml", \
|
|
"--storage.tsdb.path=/prometheus", \
|
|
"--web.console.libraries=/etc/prometheus/console_libraries", \
|
|
"--web.console.templates=/etc/prometheus/consoles", \
|
|
"--web.enable-lifecycle", \
|
|
"--web.enable-admin-api"] |