Define an alert
After enabling autoscaling, define a metric-based or time-based alert.
Define a metric-based alert
Perform the following steps to create a time-based alert.
Steps
- In the Alert Configuration section, select the Time Based alert type.
- Provide the following information:
Parameter Description Enter alert name. Enter a unique name for the alert. Select timezone. Select your timezone. Enter cron expression Enter a cron expression that defines the frequency of the alert. Refer to Cron expression generator. - Click + to save the alert.
Once you have defined an alert, create a scaling policy that this metric should trigger.
Define a time-based alert
Perform the following steps to create a metric-based alert.
Steps
- In the Alert Configuration section, select Metric Based alert type.
- Provide the following information:
Parameter Description Enter alert name Enter a unique name for the alert. Choose metric type Select the Ambari metric that should trigger the alert. Alert status Select the alert status that should trigger an alert for the selected metric. One of: OK, CRITICAL, WARNING. Alert duration Select the alert duration that should trigger an alert. - Click + to save the alert.
Once you have defined an alert, create a scaling policy that this metric should trigger.
Note | |
---|---|
If you would like to change default thresholds for an Ambari metric, refer to Ambari documentation. If you would like to create a custom Ambari alert, refer to How to create a custom Ambari alert and use it for Cloudbreak autoscaling policies. |