Selecting Dimensions for an Alarm Query
Limit the metric data that's returned by selecting dimensions for an alarm in Monitoring. A dimension is a qualifier provided in a metric definition. In MQL, the dimension selection component specifies name-value pairs for dimensions, surrounded by curly brackets.
For alarm troubleshooting, see Troubleshooting Alarms. See also Creating a Basic Alarm.
Considerations
Any text is accepted as a dimension name. If the dimension doesn't exist, then data isn't filtered.
To ensure that the dimension exists, list dimensions for the metric name or see Supported Services.
- For information about selecting dimensions from the Metrics Explorer page, see Selecting Dimensions for a Query. 
- Use the oci monitoring alarm update command and required parameters to update an alarm. Use the - --query-textparameter to select dimensions (part of the MQL expression).- oci monitoring alarm update --query-text <mql_expression> [...]- For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring. 
- Run the UpdateAlarm operation to update an alarm. Use the - queryattribute to select dimensions (part of the MQL expression).