Selecting a Resource for an Alarm Query
Limit returned metric data to a resource by selecting a resource-specific dimension when querying metric data for an alarm in Monitoring.
Available dimensions vary by metric.
This page describes how to query metrics from a resource through resource-specific dimensions. You can also access resource-specific metric charts by going to the resource's details page in the Console and creating an alarm from a predefined service query. See Viewing Default Metric Charts for a Single Resource and Creating an Alarm from a Default Metric Chart.
For alarm troubleshooting, see Troubleshooting Alarms. See also Creating a Basic Alarm.
For information about selecting a resource from the Metrics Explorer page, see Selecting a Resource for a Query.
Use the oci monitoring alarm update command and required parameters to update an alarm. Use the
--query-textparameter to select resource-specific 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 resource-specific dimensions (part of the MQL expression).