zhengxin12345 commented on issue #3458: URL: https://github.com/apache/hertzbeat/issues/3458#issuecomment-2964971994
> ### Question >  > > 如上图,我对prometheus的2个指标进行阈值监控,其中第一个指标为count类型,所以我采用了increase函数(prometheuus的内置函数),结果发现告警不成功,修改源码打印一些日志,发现表达式在查询的时候,被截断了,只来到了increase这里,后面就没有了: > >  如果把图中的两个条件顺序调换,那么会打印2个查询条件,第一个正常,第二个也是到increase这里被截断 ``` go_memory_classes_heap_stacks_bytes{instance="520099151619840"} > 3 and (increase(go_gc_duration_seconds_count{instance="520099151619840"}[5m]) <5) ``` 打印:  -- 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
