
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/badge/Join%20our%20SLACK%20Community-621773?style=for-the-badge&logo=slack&logoColor=white]([***] https://img.shields.io/badge/File%20a%20Bug%20on%20GitHub-E94600?style=for-the-badge&logo=github&logoColor=white](https://github.com/VictoriaMetrics/VictoriaMetrics/issues) https://img.shields.io/badge/Source%20Code-323232?style=for-the-badge&logo=github&logoColor=white](https://github.com/VictoriaMetrics/VictoriaMetrics/)
https://docs.victoriametrics.com/vmagent/%E6%98%AF%E4%B8%80%E6%AC%BE%E7%94%A8%E4%BA%8E%E4%BB%8E%E5%90%84%E7%A7%8D%E6%9D%A5%E6%BA%90%E6%94%B6%E9%9B%86%E6%8C%87%E6%A0%87%E7%9A%84%E4%BB%A3%E7%90%86%EF%BC%8C%E6%94%AF%E6%8C%81https://docs.victoriametrics.com/vmagent/#relabeling%EF%BC%8C%E5%B9%B6%E5%8F%AF%E9%80%9A%E8%BF%87Prometheus remote_write协议或https://docs.victoriametrics.com/vmagent/#victoriametrics-remote-write-protocol%E5%B0%86%E6%8C%87%E6%A0%87%E5%AD%98%E5%82%A8%E5%88%B0https://docs.victoriametrics.com/%E6%88%96%E5%85%B6%E4%BB%96%E4%BB%BB%E4%BD%95%E5%AD%98%E5%82%A8%E7%B3%BB%E7%BB%9F%E3%80%82
我们建议指定镜像的确切标签:
docker pull docker.xuanyuan.run/victoriametrics/vmagent:{TAG}
有关详细信息,请参见https://docs.victoriametrics.com/vmagent/#quick-start%E3%80%82
以下是使用docker run启动vmagent的基本示例,配置从文件收集指标并发送到VictoriaMetrics:
docker run -d --name vmagent \ -v /path/to/prometheus.yml:/etc/vmagent/prometheus.yml \ docker.xuanyuan.run/victoriametrics/vmagent:{TAG} \ -promscrape.config=/etc/vmagent/prometheus.yml \ -remoteWrite.url=http://victoriametrics:8428/api/v1/write
其中:
/path/to/prometheus.yml为本地指标采集配置文件路径{TAG}替换为具体版本标签-remoteWrite.url指定VictoriaMetrics的写入地址有关与VictoriaMetrics集成进行指标收集的完整示例,请参见https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/deployment/docker#docker-compose-environment-for-victoriametrics%E3%80%82
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 victoriametrics/vmagent 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: