Editing the MQL Expression When Creating an Alarm
Directly edit an alarm's MQL expression when you create the alarm in Monitoring.
For an example MQL expression, see Example Query and Metric Chart. For information about all query elements, including compartment and metric namespace, see Creating a Query.
For alarm troubleshooting, see Troubleshooting Alarms.
On the Create Alarm page in the Console, the MQL expression is available in Advanced mode only.
Use the oci monitoring alarm create command and required parameters to create an alarm. Use the
--query-text
parameter to specify the MQL expression.oci monitoring alarm create --query-text <mql_expression> [...]
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 alarm. Use the
query
attribute to specify the MQL expression.