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
For alarm troubleshooting, see Troubleshooting Alarms.
- 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 - queryto an MQL expression that specifies a threshold trigger rule.