设置自定义监控告警规则
<p class="shortdesc">您可以针对上传的自定义监控项来设置和管理相应的告警规则。</p>
<section class="section" id="setting__section_ccl_mdz_njb"><h2 class="doc-tairway">前提条件</h2>
<p class="p">已经通过API上报监控数据,请参见<a class="xref" href="/ssr/help/manage/argus/cfg.Custom_monitoring.repot" target="_blank">上传监控数据</a>。</p>
</section>
<section class="section" id="setting__section_wf1_ldz_njb"><h2 class="doc-tairway">创建告警规则</h2>
<ol class="ol" id="setting__ol_nf2_lfz_njb">
<li class="li">登录<a class="xref" href="/console/argus/overview" target="_blank">云监控Argus控制台</a>。</li>
<li class="li">在左侧导航栏中,单击<span class="ph uicontrol">自定义监控</span>。</li>
<li class="li">在<span class="keyword wintitle">自定义监控</span>页面下方的<span class="ph uicontrol">监控项</span>栏,找到目标监控项,单击<span class="ph uicontrol">操作</span>列中的<span class="ph uicontrol">新增告警规则</span>。</li>
<li class="li">在<span class="keyword wintitle">告警规则</span>页面中,配置如下信息。<table class="table"><caption></caption><colgroup><col style="width:31.948881789137378%"><col style="width:68.05111821086261%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="setting__ol_nf2_lfz_njb__entry__1">配置项</th>
<th class="entry" id="setting__ol_nf2_lfz_njb__entry__2">说明</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">监控项</span></p>
</td>
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__2 ">
<p class="p">已选择的监控项,不可修改。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">取点数</span></p>
</td>
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__2 " rowspan="2">
<p class="p">根据实际的监控项,设置告警具体策略。例如,如果监控项是统计CPU使用率,设置取点数为3,统计函数为平均值>80%,即CPU的使用率如果连续三个统计周期探测数值的平均值大于80%,则发送报警通知。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">统计函数</span></p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">告警级别</span></p>
</td>
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__2 ">
<p class="p">告警级别由高到低分为P1~P6,共六个级别。</p>
<ul class="ul" id="setting__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>
<div class="note note note_note"><span class="note__title">说明:</span> P1~P2级别的告警会以电话、短信、邮件的方式进行通知,P3~P6级别的告警会以短信和邮件的方式进行通知。</div>
</td>
</tr>
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">告警次数</span></p>
</td>
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__2 ">
<p class="p">告警通知发送的次数。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__1 ">
<p class="p"><span class="ph uicontrol">联系人组</span></p>
</td>
<td class="entry" headers="setting__ol_nf2_lfz_njb__entry__2 ">
<p class="p">选择告警通知的联系人组。</p>
</td>
</tr>
</tbody></table></li>
<li class="li">完成后,单击<span class="ph uicontrol">保存告警规则</span>。<p class="p">您可以在<span class="ph uicontrol">告警规则</span>页签中查看已创建的告警规则。</p></li>
</ol>
</section>
<section class="section" id="setting__section_ljc_ldz_njb"><h2 class="doc-tairway">修改告警规则</h2>
<ol class="ol" id="setting__ol_ty3_hgz_njb">
<li class="li">登录<a class="xref" href="/console/argus/overview" target="_blank">云监控Argus控制台</a>。</li>
<li class="li">在左侧导航栏中,单击<span class="ph uicontrol">自定义监控</span>。</li>
<li class="li">选择<span class="ph uicontrol">告警规则</span>页签。</li>
<li class="li">找到待修改信息的告警规则,单击<span class="ph uicontrol">操作</span>列中的<span class="ph uicontrol">编辑</span>。</li>
<li class="li">完成后,单击<span class="ph uicontrol">保存告警规则</span>。</li>
</ol>
</section>
<section class="section" id="setting__section_pft_ldz_njb"><h2 class="doc-tairway">删除告警规则</h2>
<ol class="ol" id="setting__ol_vjb_ngz_njb">
<li class="li">登录<a class="xref" href="/console/argus/overview" target="_blank">云监控Argus控制台</a>。</li>
<li class="li">在左侧导航栏中,单击<span class="ph uicontrol">自定义监控</span>。</li>
<li class="li">选择<span class="ph uicontrol">告警规则</span>页签。</li>
<li class="li">找到待删除的告警规则,单击<span class="ph uicontrol">操作</span>列中的<span class="ph uicontrol">删除</span>。</li>
<li class="li">在弹出的对话框中,单击<span class="ph uicontrol">确认</span>。</li>
</ol>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!