帮助手册

Opsgenie 日志

Opsgenie 是一款事件管理平台,帮助您在单一控制台中管理告警。当 Opsgenie 中从任何来源创建告警时,您可以将这些告警转发至 Site24x7 AppLogs,从而在单一控制台中创建、监控和分析仪表板。

请继续阅读以将 Site24x7 AppLogs 与 Opsgenie 集成。

前提条件

要将 Opsgenie 与 Site24x7 AppLogs 集成,您需要付费版本,因为免费版本不允许创建 Webhook。

创建日志类型

  1. 登录您的 Site24x7 账户 > 管理 > AppLogs > 添加日志类型
  2. 输入显示名称
  3. 日志类型下拉菜单中选择 Opsgenie

  4. 输入保留期最大上传限制
  5. 默认情况下,这是 Site24x7 AppLogs 为 Opsgenie 日志识别的日志模式。
    日志模式:
    jjson $alert.source as Source$ $alert.message as Message$ $alert.userId as UserId$ $alert.createdAt as Time:date:unixm$ $alert.tinyId as TinyId$ $alert.alias as Alias$ $alert.alertId as AlertId$ $alert.entity as Entity$ $alert.username as Username$ $integrationName as IntegrationName$ $action as Action$ $integrationId as IntegrationId$ $source.name as SourceName$ $source.type as SourceType$ $alert.tags as Tag:string-array$ $alert.teams as Teams:string-array$ $alert.recipients as Recipients:string-array$ $escalationName as EscalationName$ $escalationTime as EscalationTime:number$ $escalationNotify.name as EscalationNotifyName$ $priority as Priority$

    示例日志:
    {"source":{"name":"web","type":"API"},"alert":{"updatedAt":1420452193166002000,"tags":["tag1","tag2"],"teams":["team1","team2"],"recipients":["recipient1","recipient2"],"message":" test alert","username":"fili@ifountain.com","alertId":"052652ac-5d1c-464a-812a-7dd18bbfba8c","source":"fili@ifountain.com","alias":"aliastest","tinyId":"23","createdAt":1420452191104,"userId":"daed1180-0ce8-438b-8f8e-57e1a5920a2d","entity":""},"action":"Create","integrationId":"37c8f316-17c6-49d7-899b-9c7e540c048d","integrationName":"Integration1", "escalationName":"test_esc", "escalationTime":0, "escalationNotify": {"name":"test@ifountain.com"}, "priority": "P3"}
  6. 复制如截图所示的 API 端点 URL

  7. 点击保存

将 Opsgenie 与 Site24x7 AppLogs 集成

请参阅此文档,将您的 Opsgenie 账户与 Site24x7 AppLogs 集成。

查看数据

  1. 登录您的 Site24x7 账户 > AppLogs
  2. 将日志类型输入为 Opsgenie 日志

相关日志类型

本文档对您有帮助吗?

您愿意帮助我们改进文档吗?请告诉我们哪些方面可以做得更好。


很抱歉本文档未能让您满意。我们希望了解可以从哪些方面改进您的体验。


感谢您抽出时间分享反馈。我们将利用您的反馈来改进在线帮助资源。

短链接已复制!