8

I kinda struggle understanding what happens in our AWS CloudWatch alarms setup.

We're watching the number of available nodes in ElasticSearch. The goal is to raise an alarm when available nodes is less than three for more than 2 hours.

Here's the alarm definition: alarm definition

But still the alarm is triggered even when the available nodes number drops down for just a while:

alarm graph

When period is set to 1 hour the graph looks as follows:

alarm graph hourly period

According to the AWS documentation I'd expect the alarm to be triggered when the available nodes is <= 2 for two periods (2 hours).

Can anyone explain what is wrong here?

Ikar Pohorský
  • 4,617
  • 6
  • 39
  • 56

1 Answers1

2

I think the problem here is that the period is 1 hour. If it goes down to two nodes within one hour it will go on the alarm state.

If you want to evaluate every two hours, you can try to set your evaluation periods to 2 with period of 1 hour or to 1 with a period of 2 hours.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
KPAP
  • 21
  • 3