Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
哇!新的 Relic 插件很棒!它们允许我通过编写一个简单的插件来获得各种新数据的警报。当我的路由器的吞吐量下降时,我试图获得警报,但我只能看到如何设置警报的上限。当我的路由器的吞吐量下降时如何收到警报?
目前,警报仅适用于数量增加超过阈值的情况。
在这种情况下,您可能想要监控反向吞吐量的下降,或者做一些数学计算来计算与预期吞吐量的差异。
例如:
if throughput-75 < 0 report metric abs(throughput-75) else report metric 0
这只是您可以实现预期结果的众多创造性方法中的一个示例。