简体   繁体   English

如何提醒通常每天发生一次的事件?

[英]How to alert on an event that normally happens once a day?

I have a batch job that runs once per day. 我有一个批处理工作,每天运行一次。

At the end of the job I submit a meter metric with a count of the items processed. 在工作结束时,我提交了一个meter指标,其中包含已处理项目的计数。

I want to alert if one day this metric is not updated. 我想提醒是否有一天该指标未更新。

On http://metrics.librato.com the maximum time I can check "not reported for" when creating an alert is 60 minutes. http://metrics.librato.com上,创建警报时,我可以检查“未报告”的最长时间为60分钟。

I thought maybe I can create a composite metric and take the avg rate of change over the past 24 hours, and alert if that reaches zero. 我以为也许我可以创建一个综合指标,并获取过去24小时内的平均变化率,并提醒它达到零。

I've been trying: 我一直在尝试:

derive(s("my.metric", "%", {function:"sum", period:"86400"}))

However it seems that, because I log only a single event, above quite small values of period (~250s) my rate of change simply drops to zero ...I guess the low frequency means my single value is completely lost by the sampling. 但是似乎因为我只记录了一个事件,在period很小值(约250s)以上,我的变化率就下降到了零……我想低频意味着采样使我的单个值完全丢失了。

Maybe I am using the wrong tool for the job... 也许我在工作中使用了错误的工具...

Is there a way to achieve this in Librato? 在Librato中有没有办法实现这一目标?

There currently is not a way to achieve this as composite metrics are subject to the 60 minute limitation of alerts as well (as of 5/15/2015). 当前还没有一种方法可以实现此目标,因为综合指标也受到60分钟警报的限制(截至2015年5月15日)。 You may need to look into configuring the metric (or a similar metric) to report within the 60m time range if possible. 如果可能,您可能需要考虑配置指标(或类似指标)以在60m时间范围内报告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM