Creating a Threshold Alarm

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

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. Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
    2. Click Create Alarm.
    3. 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.
    4. Provide values for the remaining fields.
      For reference, see Creating a Basic Alarm.
    5. Click 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> [OPTIONS]

    For a complete list of flags and variable options 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.