#952 alloy traces 配置 bake Dockerfile + 计划 (20260810-154537)
新增 alloy/Dockerfile + config.alloy + build.sh + README + docs/observability/alloy-bake-plan.md. 当前 bind mount /tmp/alloy 仍稳定,本会话仅交付可执行件,实际 build 待低峰期执行.
This commit is contained in:
1 parent
7e002ac2b5
commit
e50d006ef4
5 files changed
+157
No files matched your search
@@ -0,0 +1,20 @@
|
||||
# Grafana Alloy with baked-in config
|
||||
# Purpose: 替代 bind-mount /tmp/alloy → /etc/alloy,让 alloy 容器自包含配置,
|
||||
# 防止 /tmp 临时目录被清空导致 alloy 启动失败。
|
||||
# 构建: cd /www/wwwroot/qihuaiflow/alloy && ./build.sh
|
||||
# 切换: 修改 docker-compose.yml,alloy 服务的 image: 改为 qihuaiflow-alloy:verified-{TS}
|
||||
#
|
||||
# ⚠️ 注意:此 Dockerfile 假定 config.alloy 已存在于 ./config.alloy(同目录)
|
||||
|
||||
FROM grafana/alloy:latest
|
||||
|
||||
# 自定义配置:覆盖默认空配置
|
||||
COPY config.alloy /etc/alloy/config.alloy
|
||||
|
||||
# alloy 镜像默认 ENTRYPOINT 是 /bin/alloy,run 是默认参数
|
||||
# 无需覆盖 CMD
|
||||
|
||||
# 健康检查(可选):用 alloy 自身 /-/ready 端点
|
||||
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
||||
CMD wget --quiet --tries=1 --spider http://localhost:12345/-/ready || exit 1
|
||||
|
||||
Reference in new issue
Block a user