告警记录存储

告警通知服务可以将告警记录存储到百度智能云天工提供的时序数据库(TSDB)中,步骤如下:

  1. 选择通知方式为物接入主题,如填写一个物接入主题alarmTopic,系统会在触发告警时发送一个确定的告警信息到该主题,消息格式请参见

  2. 规则引擎对该主题配置一条到时序数据库的规则。

  3. 参考规则:
    Select *, 'startTime' AS _TSDB_META_v3.ts, 'ALARM_METRIC' AS metric, 'metric' AS _TSDB_META_v3.metric, 'name' AS _TSDB_META_v3.fields.field1, 'startTime' AS _TSDB_META_v3.fields.field2, 'refreshTime' AS _TSDB_META_v3.fields.field3, 'recoverTime' AS _TSDB_META_v3.fields.field4, 'uuid' AS _TSDB_META_v3.tags.tag1, 'severity' AS _TSDB_META_v3.tags.tag2, 'endpointName' AS _TSDB_META_v3.tags.tag3, 'topic' AS _TSDB_META_v3.tags.tag4,'name' AS _TSDB_META_v3.tags.tag5,