Skip to content

Commit

Permalink
Handle new ES production 90% CPU alarms in Airflow's alarm toggle (#5245
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dhruvkb authored Dec 4, 2024
1 parent 4a67722 commit 797dc5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions catalog/dags/common/cloudwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,7 @@ def enable_or_disable_alarms(enable):
resource_type="cloudwatch",
)
cw_wrapper = CloudWatchWrapper(cloudwatch.get_conn())
cw_wrapper.enable_alarm_actions("ES Production CPU utilization above 50%", enable)
cw_wrapper.enable_alarm_actions("ES Prod CPU utilization above 90%", enable)
for percentage in [50, 90]:
cw_wrapper.enable_alarm_actions(
f"ES Production CPU utilization above {percentage}%", enable
)

0 comments on commit 797dc5e

Please sign in to comment.