
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
(本解决方案已弃用,建议使用UMA进行Docker监控)
CA APM Docker Monitor扩展用于监控Docker容器及其中运行服务的健康与性能,还可将Docker容器性能指标与CA Application Performance Management(CA APM)的其他性能指标关联,帮助判断容器性能不佳是否为应用性能问题的根源。
Docker Remote API v1.23
Docker Server版本 1.11.x
| 标签 | 日期 | 支持的APM版本 | 内部构建号 |
|---|---|---|---|
| latest | 2020-01-15 | 11.x, DX APM | Release 20.1.0.0_fixes (24) |
| 20200114 | 2020-01-15 | 11.x, DX APM | Release 20.1.0.0_fixes (24) |
| 2.0.2 | 2019-02-18 | APM SaaS (DxI), 10.7 SP2+ | Release 10.7.0.45 (990045) |
| 2.0.1 | 2018-10-26 | APM SaaS (DxI), 10.7 SP2+ | Release 10.6.0.179 (990179) |
| 2.0 | 2018-10-03 | APM SaaS (DxI), 10.7 SP2+ | Release 10.6.0.173 (990173) |
| 1.0 | 2018-04-14 | 10.7, SP1 | Release 10.7.0.0_sp (Build 22) |
标签内容
latest
20200114
2.0.2
2.0.1
2.0
1.0
Swarm/UCP
bashdocker stack deploy -c install.yml dockermonitor --with-registry-auth
独立部署
bashdocker-compose -f install.yml up -d
install.yml内容
yamlversion: "3.2" services: dockermonitor: image: docker.xuanyuan.run/caapm/dockermonitor:latest environment: - agentManager_url_1=[AGENT_MANAGER_URL] - agentManager_credential=[AGENTMANAGER_CREDENTIAL] - containerflow=enabled - interval=60 - type=Docker - image=caapm/dockermonitor:latest pid: host command: ["bash","install.sh","--memory=700m","--cpus=0.7"] deploy: mode: global resources: limits: cpus: '0.5' memory: 600M volumes: - type: bind source: /var/run/docker.sock target: /var/run/docker.sock read_only: true - type: bind source: /proc target: /host/proc read_only: true bind: propagation: rslave
替换以下变量为你的配置信息:
[AGENT_MANAGER_URL]:Agent/EM连接详情(与IntroscopeAgent.profile中的配置类似) [AGENTMANAGER_CREDENTIAL]:连接SaaS(DxI)实例所需的Agent Manager凭证,本地部署可移除该条目
Swarm/UCP
bashdocker stack deploy -c uninstall.yml uninstall-apm
独立部署
bashdocker-compose -f uninstall.yml up -d
uninstall.yml内容
yamlversion: "3" services: dockermonitor: image: docker.xuanyuan.run/caapm/dockermonitor:latest command: ["bash","uninstall.sh"] deploy: mode: global volumes: - /var/run/docker.sock:/var/run/docker.sock - /proc:/host/proc:ro
如果使用latest、20200114或rhel-20.1.0及以后的镜像,需在Deployment和DaemonSet Pod中添加以下环境变量以连接10.7 EM(连接SaaS或11.X EM无需此操作):
yaml- name: apmenv_introscope_agent_connection_compatibility_version value: "10.7"
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务