Skip to content

In the notification message for alert using SQL queries, how to use non-tag alias columns #3018

@a43412340-bit

Description

@a43412340-bit

背景是用sql查询去做告警,比如我的sql是select count(1) as cnt,message from log, 使用cnt作为阈值判断同时告警消息展示message字段,遇到的问题是:

message不能作为告警事件的tag(不作为去重属性),但现在的配置如果不添加为tag模版变量和注解中都拿不到就无法在消息卡片中展示,有解决方案吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions