Creating a Threshold Alarm

Create a threshold alarm in Monitoring to send notifications when a metric meets a specified threshold value.

Example:
The following metric query has a threshold alarm set to greater than 80%:
CpuUtilization[1m].mean() > 80
In the metric chart on the Create Alarm page, a dashed red line indicates the threshold. The following example shows the threshold at 80% and a single value that exceeds the threshold: 85% value at 1:30. That value triggers the alarm. See also Example Query and Metric Chart.
Threshold in a graph, Create Alarm page.

For alarm troubleshooting, see Troubleshooting Alarms.

    1. On the Alarm Definitions list page, select Create Alarm. If you need help finding the list page, see Listing Alarms.
    2. In the Trigger rule section in the Create Alarm page, configure the absence trigger:
      • Operator: The operator used in the condition threshold. For example: between.
      • Value: The value to use for the condition threshold. For example: 60 and 80 (the number of values depends on the operator).
      • Trigger delay minutes: The number of minutes that the condition must be maintained before the alarm is in the firing state.
    3. Provide values for the remaining fields.
      For reference, see Creating a Basic Alarm.
    4. Select Save alarm.
  • Use the oci monitoring alarm create command and required parameters to create a threshold alarm. For the required parameter --query-text, use an MQL expression that specifies a threshold trigger rule:

    oci monitoring alarm create --query-text <mql_expression_specifying_threshold_trigger_rule> [...]

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.

  • Run the CreateAlarm operation to create an absence alarm.

    When defining details for CreateAlarmDetails, set query to an MQL expression that specifies a threshold trigger rule.