[I] [Question] 自定义prometheus指标监控的阈值规则对复杂PromQL支持有问题 [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:20250612" rel="nofollow">Thu, 12 Jun 2025 04:47:06 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre> zhengxin12345 opened a new issue, #3458: URL: <a rel="nofollow" href="https://github.com/apache/hertzbeat/issues/3458">https://github.com/apache/hertzbeat/issues/3458</a></pre><pre> ### Question ![Image](<a rel="nofollow" href="https://github.com/user-attachments/assets/4bb930d3-eca7-49ee-9775-6c0dbc746a28">https://github.com/user-attachments/assets/4bb930d3-eca7-49ee-9775-6c0dbc746a28</a>) 如上图,我对prometheus的2个指标进行阈值监控,其中第一个指标为count类型,所以我采用了increase函数(prometheuus的内置函数),结果发现告警不成功,修改源码打印一些日志,发现表达式在查询的时候,被截断了,只来到了increase这里,后面就没有了: ![Image](<a rel="nofollow" href="https://github.com/user-attachments/assets/0d90f6f6-b648-4576-9966-415f138040b2">https://github.com/user-attachments/assets/0d90f6f6-b648-4576-9966-415f138040b2</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.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="msg10834.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="thrd15.html#10838">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="mail15.html#10838">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg10835.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email tSliceCur"><span class="subject">[I] [Question] <title>自定义prometheus指标监控的阈值规则对复杂PromQL支持有问...</span> <span class="sender italic">via GitHub</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg10835.html">Re: [I] [Question] <title>自定义prometheus指标监控的阈值规则对复杂P...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg10836.html">Re: [I] [Question] <title>自定义prometheus指标监控的阈值规则对复杂P...</a></span> <span class="sender italic">via GitHub</span></li> <li class="icons-email"><span class="subject"><a href="msg10837.html">Re: [I] [Question] <title>自定义prometheus指标监控的阈值规则对复杂P...</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="[I] [Question] <title>自定义prometheus指标监控的阈值规则对复杂PromQL支持有问题 [hertzbeat]"> <input type="hidden" name="msgid" value="I_kwDOGyeqAs67FMnU@gitbox.apache.org"> <input type="hidden" name="relpath" value="notifications@hertzbeat.apache.org/msg10838.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:%22%5C%5BI%5C%5D+%5C%5BQuestion%5C%5D+%3Ctitle%3E%E8%87%AA%E5%AE%9A%E4%B9%89prometheus%E6%8C%87%E6%A0%87%E7%9B%91%E6%8E%A7%E7%9A%84%E9%98%88%E5%80%BC%E8%A7%84%E5%88%99%E5%AF%B9%E5%A4%8D%E6%9D%82PromQL%E6%94%AF%E6%8C%81%E6%9C%89%E9%97%AE%E9%A2%98+%5C%5Bhertzbeat%5C%5D%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg10834.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg10835.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_kwDOGyeqAs67FMnU@gitbox.apache.org</li> </ul> </div> </body> </html>