创建告警模板

<p class="shortdesc">告警模板是一组告警规则的集合,您可以根据自身业务监控需求来灵活创建告警模板。</p> <section class="section context" id="Create_alarm_template__context_rmq_qqt_ljb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div> <p class="p" id="Create_alarm_template__p_fdk_xqn_xjb">当用户在云平台创建了大量的云资源并且需要对其运行状态进行监控时,可以通过设置告警模板的功能来省去对各云资源逐一设置报警规则的重复操作。告警模板支持将一个或者多个报警规则设置在一个告警模板中。告警模板创建完成后,就可以关联待监控的云实例,最大程度地简化报警规则的创建和维护过程。</p> <p class="p" id="Create_alarm_template__p_pq2_gc3_1kb">目前支持两种方式配置告警规则:</p> <ul class="ul" id="Create_alarm_template__ul_dg1_bb3_1kb"> <li class="li"><span class="ph uicontrol">静态规则</span>:通过配置指定的统计函数来定义告警系统如何检测监控数据,并在监控数据满足告警规则时发送告警通知。</li> <li class="li"><span class="ph uicontrol">动态阈值</span>:高度利用智能算法模型进行异常筛选,模型会根据异常发生情况自动学习及更新,保证告警的准确性和准时性,极大减少企业对运维大量机器而投入的人力。</li> </ul> <p class="p" id="Create_alarm_template__p_dyk_brn_xjb">此外,云监控会为一些云资源提供一个初始化报警模板,方便您快速开始使用模板。</p> </section> <section id="Create_alarm_template__steps_ijf_b3k_3jb"><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps" id="Create_alarm_template__steps_ijf_b3k_3jb"><li class="li step stepexpand"> <span class="ph cmd">登录<a class="xref" href="/console/argus/overview" target="_blank" rel="external noopener">云监控Argus控制台</a>。</span> </li><li class="li step stepexpand" id="Create_alarm_template__step_kbq_5wj_mlb"> <span class="ph cmd">在左侧导航栏中,单击<span class="ph menucascade"><span class="ph uicontrol">告警配置</span><abbr> > </abbr><span class="ph uicontrol">告警模板</span></span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="keyword wintitle">告警模板</span>页面,单击<span class="ph uicontrol">产品类型</span>后方的下拉按钮选择将在哪个产品下创建告警模板。</span> <div class="itemgroup info"> <img class="image" id="Create_alarm_template__image_od1_whh_4jb" src="https://obs-cn-shanghai.fincloud.pinganyun.com/pacloud/20221011151650-10cb18889232.png"> </div> </li><li class="li step stepexpand"> <span class="ph cmd">单击右上角的<span class="ph uicontrol">创建</span>。</span> </li><li class="li step stepexpand"> <span class="ph cmd">在<span class="keyword wintitle">创建告警模板</span>页面中,配置如下信息。</span> <div class="itemgroup info"> <ol class="ol" type="a" id="Create_alarm_template__ol_v1w_fyy_3jb"> <li class="li">配置告警模板的<span class="ph uicontrol">基本信息</span>。<table class="table frame-all" id="Create_alarm_template__table_xnd_fmk_3jb"><caption></caption><colgroup><col style="width:22.98850574712644%"><col style="width:77.01149425287358%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Create_alarm_template__table_xnd_fmk_3jb__entry__1">配置项</th> <th class="entry" id="Create_alarm_template__table_xnd_fmk_3jb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_xnd_fmk_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">模板名称</span></p> </td> <td class="entry" headers="Create_alarm_template__table_xnd_fmk_3jb__entry__2 "> <p class="p">配置的告警模板的名称。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_xnd_fmk_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">联系人组</span></p> </td> <td class="entry" headers="Create_alarm_template__table_xnd_fmk_3jb__entry__2 "> <p class="p">告警发生时,所知会的联系人组。</p> <p class="p">单击<span class="ph uicontrol">选择联系人组</span>,勾选联系人组,然后单击<span class="ph uicontrol">完成</span>。</p> </td> </tr> </tbody></table></li> <li class="li">单击页面下方的<span class="ph uicontrol">新增告警规则</span>,在出现的<span class="ph uicontrol">告警规则</span>栏中,选择<span class="ph uicontrol">监测类型</span>,包括<span class="ph uicontrol">静态规则</span>和<span class="ph uicontrol">动态阈值</span>两种(相关配置说明请您分别参下表)。<div class="note note note_note"><span class="note__title">说明:</span> 您可以根据实际监控需求在一个告警模板中添加一个或者多个告警规则。</div><table class="table frame-all" id="Create_alarm_template__table_y2p_myy_3jb"><caption><span class="table--title-label">表1 </span><span class="title">静态规则配置项说明</span></caption><colgroup><col style="width:23.809523809523807%"><col style="width:76.19047619047619%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Create_alarm_template__table_y2p_myy_3jb__entry__1">配置项</th> <th class="entry" id="Create_alarm_template__table_y2p_myy_3jb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">监控类型</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">选择<span class="ph uicontrol">静态规则</span>,通过配置指定的统计函数来定义告警系统如何检测监控数据,并在监控数据满足告警规则时发送告警通知。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">监控项</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">配置该告警模板中所使用的监控项。</p> <p class="p">单击<span class="ph uicontrol">选择监控项</span>,勾选监控项,然后单击<span class="ph uicontrol">完成</span>。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">Tag</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">该告警规则标记。对监控项 (Metric) 进行补充用的,例如, df.bytes.used(磁盘使用量)需要携带两个Tag,分别是 mount: 挂载点和 fstype: 文件系统类型。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">取点数</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 " rowspan="2"> <p class="p">根据实际的监控项,设置告警具体策略。例如,如果监控项是统计CPU使用率,设置取点数为3,统计函数为平均值>80%,即CPU的使用率如果连续三个统计周期探测数值的平均值大于80%,则发送告警通知。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">统计函数</span></p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">告警级别</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">告警级别由高到低分为P1~P6,共六个级别。</p> <ul class="ul" id="Create_alarm_template__ul_ytg_dsz_3jb"> <li class="li">P1:致命</li> <li class="li">P2:较致命</li> <li class="li">P3:严重</li> <li class="li">P4:较严重</li> <li class="li">P5:警告</li> <li class="li">P6:提示</li> </ul> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">告警次数</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">告警通知发送的次数。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__1 "> <p class="p"><span class="ph uicontrol">备注</span></p> </td> <td class="entry" headers="Create_alarm_template__table_y2p_myy_3jb__entry__2 "> <p class="p">关于该告警规则的相关描述及备注等。</p> </td> </tr> </tbody></table><table class="table frame-all" id="Create_alarm_template__table_tm2_hd3_1kb"><caption><span class="table--title-label">表2 </span><span class="title">动态阈值配置项说明</span></caption><colgroup><col style="width:22.522522522522525%"><col style="width:77.47747747747749%"></colgroup><thead class="thead"> <tr class="row"> <th class="entry" id="Create_alarm_template__table_tm2_hd3_1kb__entry__1">配置项</th> <th class="entry" id="Create_alarm_template__table_tm2_hd3_1kb__entry__2">说明</th> </tr> </thead><tbody class="tbody"> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">监控类型</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">选择<span class="ph uicontrol">动态阈值</span>,高度利用智能算法模型进行异常筛选,模型会根据异常发生情况自动学习及更新,保证告警的准确性和准时性,极大减少企业对运维大量机器而投入的人力。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">模型类别</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">平台默认使用<span class="ph uicontrol">专业版</span>模型,此AI模型会根据异常发生情况自动学习及更新。此外,用户可通过<span class="ph menucascade"><span class="ph uicontrol">告警中心</span><abbr> > </abbr><span class="ph uicontrol"> 查看详情 </span><abbr> > </abbr><span class="ph uicontrol">服务反馈</span></span>,对目标异常进行反馈,系统将自动收集反馈、学习异常及优化模型。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">监控项</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">配置该告警模板中所使用的监控项。</p> <p class="p">单击<span class="ph uicontrol">选择监控项</span>,勾选监控项,然后单击<span class="ph uicontrol">完成</span>。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">Tag</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">该告警规则标记。对监控项 (Metric) 进行补充用的,例如, df.bytes.used(磁盘使用量)需要携带两个Tag,分别是 mount: 挂载点和 fstype: 文件系统类型。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">告警级别</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">告警级别由高到低分为P1~P6,共六个级别:</p> <ul class="ul" id="Create_alarm_template__ul_um2_hd3_1kb"> <li class="li">P1:致命</li> <li class="li">P2:较致命</li> <li class="li">P3:严重</li> <li class="li">P4:较严重</li> <li class="li">P5:警告</li> <li class="li">P6:提示</li> </ul> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">启用区间</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">您可以采用<span class="ph uicontrol">默认阈值</span>,也可以单击开关,<span class="ph uicontrol">输入阈值</span>。</p> <p class="p">监控的数值范围,左侧输入框为最低启用值,右侧为最高启用值。例如,针对mem.memused监控项设置阈值为30M - 50M,即监控范围为30M至50M之间,其他范围不启动监控器。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">敏感度</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">分为<span class="ph uicontrol">低</span>、<span class="ph uicontrol">中</span>、<span class="ph uicontrol">高</span>三个等级。敏感度越高,监控器捕抓异常的精细度越高,反之亦然。建议使用中等敏感度。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">触发条件</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">设置异常连续出现多少次后触发告警。</p> </td> </tr> <tr class="row"> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__1 "> <p class="p"><span class="ph uicontrol">备注</span></p> </td> <td class="entry" headers="Create_alarm_template__table_tm2_hd3_1kb__entry__2 "> <p class="p">关于该告警规则的相关描述及备注等。</p> </td> </tr> </tbody></table></li> </ol> </div> </li><li class="li step stepexpand"> <span class="ph cmd">完成后,单击<span class="ph uicontrol">保存告警模板</span>。</span> </li></ol></section> <section class="section result" id="Create_alarm_template__result_qnb_4mz_3jb"><div class="tasklabel"><h2 class="doc-tairway">执行结果</h2></div> <p class="p">配置完成后,您可以在告警模板列表中查看到刚刚创建的告警模板。</p> </section>
以上内容是否解决了您的问题?
请补全提交信息!
联系我们

电话咨询

400-151-8800

邮件咨询

fincloud@ocft.com

在线客服

工单支持

解决云产品相关技术问题