
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
当前的prometheus-pushgateway Docker镜像来自Canonical,基于Ubuntu构建。接收安全更新并滚动到更新的prometheus-pushgateway或Ubuntu版本。此仓库可免费使用,且不受每用户速率限制。
Prometheus Pushgateway允许临时和批处理作业向Prometheus暴露其指标。更多信息请参见https://github.com/prometheus/pushgateway%E3%80%82
!LTS LTS频道提供长达5年的免费安全维护。
!ESM 通过Canonical的受限仓库提供长达10年的客户安全维护。
| 频道标签 | 其他标签 | 支持至 | 当前版本 | 架构 |
|---|---|---|---|---|
1.11-24.04_stable | 1-24.04, 1-24.04_beta, 1-24.04_candidate, 1-24.04_edge, 1-24.04_stable, 1.11-24.04, 1.11-24.04_beta, 1.11-24.04_candidate, 1.11-24.04_edge | - | Ubuntu 24.04 LTS上的prometheus-pushgateway 1.11 | amd64 |
1.6-22.04_stable | 1.6-22.04, 1.6-22.04_beta, 1.6-22.04_candidate, 1.6-22.04_edge | - | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.6 | amd64 |
1.7-22.04_stable | 1.7-22.04, 1.7-22.04_beta, 1.7-22.04_candidate, 1.7-22.04_edge | - | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.7 | amd64 |
1.6.1-22.04_stable | 1.6.1-22.04, 1.6.1-22.04_beta, 1.6.1-22.04_candidate, 1.6.1-22.04_edge | 2025年5月 | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.6.1 | amd64 |
1.6.2-22.04_stable | 1.6.2-22.04, 1.6.2-22.04_beta, 1.6.2-22.04_candidate, 1.6.2-22.04_edge | 2025年5月 | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.6.2 | amd64 |
1.8.0-22.04_stable | 1-22.04, 1-22.04_beta, 1-22.04_candidate, 1-22.04_edge, 1-22.04_stable, 1.8-22.04, 1.8-22.04_beta, 1.8-22.04_candidate, 1.8-22.04_edge, 1.8-22.04_stable, 1.8.0-22.04, 1.8.0-22.04_beta, 1.8.0-22.04_candidate, 1.8.0-22.04_edge | 2025年5月 | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.8.0 | amd64 |
1.6.0-22.04_stable | 1.6.0-22.04, 1.6.0-22.04_beta, 1.6.0-22.04_candidate, 1.6.0-22.04_edge | 2025年5月 | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.6.0 | amd64 |
1.7.0-22.04_stable | 1.7.0-22.04, 1.7.0-22.04_beta, 1.7.0-22.04_candidate, 1.7.0-22.04_edge | 2025年5月 | Ubuntu 22.04 LTS上的prometheus-pushgateway 1.7.0 | amd64 |
track_risk |
频道标签按稳定性顺序列出该轨道的最稳定频道:stable、candidate、beta、edge。风险更高的频道始终隐含可用。因此,若列出beta,您也可以拉取edge;若列出candidate,您可以拉取beta和edge;若列出stable,则四个频道均可用。镜像确保按edge→beta→candidate→stable的顺序发布。
如果您的使用场景包括商业再分发,或需要ESM或未列出的频道/版本,请联系Canonical团队(或发送邮件至***)。
本地启动该镜像:
shdocker run -d --name prometheus-pushgateway-container -e TZ=UTC -p 9091:9091 ubuntu/prometheus-pushgateway:1.11-24.04_stable
通过http://localhost:9091访问您的Pushgateway实例。
参数说明
| 参数 | 描述 |
|---|---|
-e TZ=UTC | 时区设置。 |
-p 9091:9091 | 将Pushgateway暴露在localhost:9091。 |
测试/调试
调试容器:
shdocker logs -f prometheus-pushgateway-container
获取交互式shell:
shdocker exec -it prometheus-pushgateway-container /bin/bash
调试容器:
bashdocker logs -f pushgateway-container
获取交互式shell:
bashdocker exec -it pushgateway-container /bin/bash
如果您在镜像中发现错误或需要特定功能,请在此提交bug:
[***]
请将bug标题格式设为"prometheus-pushgateway: <问题摘要>"。确保包含您使用的镜像摘要,可通过以下命令获取:
shdocker images --no-trunc --quiet ubuntu/prometheus-pushgateway:<tag>
这些频道(标签)不再更新。请升级到更新的频道,如无法升级,请联系我们。
| 轨道 | 版本 | 生命周期结束 | 升级路径 |
|---|---|---|---|
track |
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务