Re: [I] [Question] 为什么钉钉通知会一直重复发送报错的信息 [hertzbeat]</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=notifications@hertzbeat.apache.org&q=from:%22via+GitHub%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">via GitHub</span></span></a></span> <span class="date"><a href="/search?l=notifications@hertzbeat.apache.org&q=date:20250825" rel="nofollow">Mon, 25 Aug 2025 00:28:34 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> xiaoer2021 commented on issue #3697: URL: <a rel="nofollow" href="https://github.com/apache/hertzbeat/issues/3697#issuecomment-3219141231">https://github.com/apache/hertzbeat/issues/3697#issuecomment-3219141231</a></pre><pre> #[回顾:配置完成监控规则后,模拟设备异常,钉钉一直重复发送告警,为什么不能设置成单次异常通知?否则钉钉报个错,群里消息一直响同一条错误。] @Duansg 好的,目前我们自行创建了一个通知模板: `## HertzBeat 告警通知 ### 告警信息 - 状态:${status} <#if commonLabels??> <#if commonLabels.severity??> - 告警级别:${commonLabels.severity?switch("critical","严重","warning","警告","info","提示","未知")} </#if> <#if commonLabels.alertname??> - 告警原因:${commonLabels.alertname} </#if> </#if> --- ### 详细信息 | 字段 | 值 | |------|-----| | 实例名称 | ${alert.labels.instancename!'-'} | | 服务/组件 | ${alert.labels.service!alert.labels.job!'-'} | | 触发IP | ${alert.labels.ip!'-'}<#if alert.labels.port??>:${alert.labels.port?number?int}</#if> | <#if alert.content?? && alert.content?trim != ""> | 告警详情 | ${alert.content} | </#if> --- ### 时间 | 字段 | 时间 | |------|------| | 首次触发 | ${(alert.startAt?number_to_datetime)?string("yyyy-MM-dd HH:mm:ss")} | <#if alert.activeAt??> | 最近触发 | ${(alert.activeAt?number_to_datetime)?string("yyyy-MM-dd HH:mm:ss")} | </#if> <#if alert.endAt??> | 恢复时间 | ${(alert.endAt?number_to_datetime)?string("yyyy-MM-dd HH:mm:ss")} | </#if> --- HertzBeat监控告警中心 ` 静默为空: <img width="1335" height="549" alt="Image" src="<a rel="nofollow" href="https://github.com/user-attachments/assets/7e976c3c-0fa4-43cd-b1c8-7b59a05723c7"">https://github.com/user-attachments/assets/7e976c3c-0fa4-43cd-b1c8-7b59a05723c7"</a>; /> 抑制为空: <img width="1205" height="407" alt="Image" src="<a rel="nofollow" href="https://github.com/user-attachments/assets/d0c28c2f-060d-4eff-9af6-c5f175e16787"">https://github.com/user-attachments/assets/d0c28c2f-060d-4eff-9af6-c5f175e16787"</a>; /> 分组设置了这几个标签:alertname、host、service、severity、instance、job进行分组, <img width="973" height="631" alt="Image" src="<a rel="nofollow" href="https://github.com/user-attachments/assets/812a5ef4-d567-49e9-9e61-6d7b90309efb"">https://github.com/user-attachments/assets/812a5ef4-d567-49e9-9e61-6d7b90309efb"</a>; /> 阈值规则为标准的,并没有什么额外的配置: <img width="1713" height="721" alt="Image" src="<a rel="nofollow" href="https://github.com/user-attachments/assets/50b6c101-3539-42cc-862f-b3fad1198ba8"">https://github.com/user-attachments/assets/50b6c101-3539-42cc-862f-b3fad1198ba8"</a>; /> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@hertzbeat.apache.org For additional commands, e-mail: notifications-h...@hertzbeat.apache.org </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg12642.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#12656">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#12656">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg12678.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg12548.html">[I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertzbeat]</a></span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg12642.html">Re: [I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertz...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email tSliceCur"><span class="subject">Re: [I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertz...</span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg12678.html">Re: [I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertz...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg12704.html">Re: [I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertz...</a></span> <span class="sender italic">via GitHub</span></li> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: [I] [Question] <title>为什么钉钉通知会一直重复发送报错的信息 [hertzbeat]"> <input type="hidden" name="msgid" value="I_kwDOGyeqAs7HVMXx-8f880c2d-e9f4-4330-ace6-b79f458862fa@gitbox.apache.org"> <input type="hidden" name="relpath" value="notifications@hertzbeat.apache.org/msg12656.html"> <input type="submit" value=" via GitHub "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="notifications@hertzbeat.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search notifications"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/notifications@hertzbeat.apache.org/">notifications - all messages</a></li> <li class="icons-about"><a href="/notifications@hertzbeat.apache.org/info.html">notifications - about the list</a></li> <li class="icons-expand"><a href="/search?l=notifications@hertzbeat.apache.org&q=subject:%22Re%5C%3A+%5C%5BI%5C%5D+%5C%5BQuestion%5C%5D+%3Ctitle%3E%E4%B8%BA%E4%BB%80%E4%B9%88%E9%92%89%E9%92%89%E9%80%9A%E7%9F%A5%E4%BC%9A%E4%B8%80%E7%9B%B4%E9%87%8D%E5%A4%8D%E5%8F%91%E9%80%81%E6%8A%A5%E9%94%99%E7%9A%84%E4%BF%A1%E6%81%AF+%5C%5Bhertzbeat%5C%5D%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg12642.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg12678.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">I_kwDOGyeqAs7HVMXx-8f880c2d-e9f4-4330-ace6-b79f458862fa@gitbox.apache.org</li> </ul> </div> </body> </html>