重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: alertmanager告警测试命令 [打印本页]

作者: mahan    时间: 5 天前
标题: alertmanager告警测试命令
curl -XPOST -d '[
  {
    "labels": {
      "alertname": "WeChatAlertTest",
      "severity": "critical",
      "instance": "test-server",
      "dev": "test"
    },
    "annotations": {
      "summary": "企业微信告警接收测试",
      "description": "这是一条由 API 触发的测试告警,用于验证用户 203487 是否能正常接收信息。"
    }
  }
]' http://177.16.144.136:9093/api/v1/alerts

用于验证企业微信中员工是否能接受到消息






欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2