AWS/RDS alert based on databaseclass and dbinstanceidentifier labels

Context:

Currently we have alerts for available free memory when it is less than 1000MB we are getting alerts. this alerts is configured for all databases by using dbinstanceidentifier : *

But now there are some different types of RDS instance is present for that we want the alert when the available free memory is less than 500MB then we should get alert for all the RDS instances which have t3.small instance type. and this alert should not overlap with earlier alert

basically In short

  1. When the RDS instance type is other than t3.small and available memory is less than 1000MB then we should get alert

  2. when RDS instance type is t3.small and available memory is less than 500 MB then we will get alert and this should not overlap with first alert because in first alert as well alert threshold is less than 1000MB