I have a single EC2 machine which is used between 7 - 8 AM every day by a single service.
As the service on this machine runs automatically every day between that time frame, I would like to setup an alert which is sending me a hint if the process is not running between 7 and 8 AM.
Or in other words: I need an alert if the process or the CPU is idle between 7 and 8 AM.
Anybody has an idea how to configure such alerts?
I thought that maybe the anomaly detection will do this job, but that wasn't detected somehow.
I am open for all ideas 🙂
Solved! Go to Solution.
Narrowing down process availability monitoring to a specific time frame isn't extremely straightforward, however, we may be able to achieve this functionality by creating a maintenance window for the process in question. Essentially we would create a maintenance window only impacting that process to "Disable problem detection during maintenance" so that the other 23 hours of the day when the EC2 isn't running we wouldn't alert.
After that maintenance window is created you'll also have to enable "Process Availability Monitoring" within the Process Group settings for the process in question. This toggle will alert when monitoring is down and because we've configured the maintenance window, it won't alert us that monitoring is down during the time of the day that the EC2 is not running.
As @jon_kowalski referenced, process group availability monitoring is the way to go. I have been doing with several similar use-cases. Just also leaving the documentation URL for quick reference: