如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
alertmanager-cycloid-events-receiver是一个基于Alertmanager webhook通知在Cycloid平台([***] API信息创建对应的平台事件。
适用于需要将Prometheus/Alertmanager监控系统的告警事件同步到Cycloid平台的场景,实现监控告警与Cycloid事件系统的集成,便于统一事件管理和处理。
接收器使用Cycloid API用户访问权限发送事件,需通过配置文件定义不同UUID对应的Cycloid访问信息。接收器会从告警的UUID标签读取信息以匹配相应配置。
配置文件格式(YAML):
yaml--- uuids: 12-34-56-78: # UUID标识,需与告警标签中的UUID对应 api_url: "https://http-api.cycloid.io" # Cycloid API地址 organization: "..." # Cycloid组织名称 api_key: ".." # Cycloid API访问密钥
需在Prometheus告警规则中添加UUID标签,确保告警携带与配置文件匹配的UUID。
Prometheus告警规则示例:
alert: NodeCPUUsage expr: (100 - (avg by(instance) (irate(node_cpu_seconds_total{mode="idle",name="node-exporter"}[5m])) * 100)) > 90 for: 5m labels: UUID: 12-34 # 与配置文件中的UUID匹配 severity: critical annotations: description: '{{$labels.instance}}: CPU usage is above 90% (current value is: {{ $value }})' summary: '{{$labels.instance}}: High CPU usage detected'
在Alertmanager配置中添加webhook接收器,指向cycloid-events-receiver服务地址。
Alertmanager配置示例:
- name: 'cycloid-events-receiver' webhook_configs: - url: 'http://localhost:5000' # 接收器服务地址,根据实际部署调整 send_resolved: true # 是否发送已解决状态的告警
启动接收器容器
本地启动接收器服务:
bashdocker run -p 5000:5000 -it cycloid/alertmanager-cycloid-events-receiver:latest
发送测试通知
使用curl发送测试告警数据:
bashmsg='{ "version": "4", "groupKey": "fakegroupkey", "status": "firing", "receiver": "cycloid_alert", "groupLabels":{ "alertname":"FooBar", "customer":"cycloid", "env":"infra", "project":"monitoring" }, "externalURL": "http://localhost:9093", "alerts": [ { "status":"firing", "labels":{ "Name":"prometheus", "alertname":"OpsgenieHeartbeat", "branch":"HEAD", "client":"cycloid", "customer":"cycloid", "env":"infra", "goversion":"go1.10.3", "instance":"localhost:9090", "job":"prometheus", "project":"monitoring", "receiver":"alert_cycloid", "revision":"71af5e29e815795e9dd***ee7725682fa14b7b", "role":"prometheus", "severity":"critical", "version":"2.3.2" }, "annotations":{ "description":"Test if prometheus and alert manager still working", "summary":"Prometheus and alertmanager service working" }, "startsAt":"2018-11-30T09:13:59.926854139Z", "endsAt":"0001-01-01T00:00:00Z", "generatorURL":"[***]" } ], "commonLabels" : { "UUID" : "12-34" # 需与配置文件中的UUID匹配 } }' curl -X POST --header "Content-Type: application/json" --data "${msg}" http://localhost:5000/
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。


来自真实用户的反馈,见证轩辕镜像的优质服务