arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.59k stars 593 forks source link

How to create a check to alert over last 60 minutes summarized data #643

Open newtechfellas opened 5 years ago

newtechfellas commented 5 years ago

I want to alert if there is no event received for an hour. I tried combinations of timeShift or summarize to use 60 minutes to grab 1 hour data. But cabot is always using only 10 minutes.

I tried summarize(production.in.event, "50min") or sum(timeShift(production.in.event, "-50min"))

or other combinations but did not get the desired sum of graphite metric for an hour. I configured the check to run every 5 minutes with a threhold "less than or equal to 0"