Selecting a Resource Group in an Alarm Query

Limit returned metric data by matching a resource group when querying custom metric data for an alarm in Monitoring.

Resource groups are available with custom metrics.

Note

A blank or null value for Resource group returns only metric data that doesn't have a resource group.

For alarm troubleshooting, see Troubleshooting Alarms. See also Creating a Basic Alarm.

  • For information about selecting a resource group from the Metrics Explorer page, see Selecting a Resource Group in a Query.

    1. On the Alarm Definitions list page, select the alarm that you want to work with. If you need help finding the list page or the alarm, see Listing Alarms.
    2. Go to Actions and then select Edit alarm.
    3. In the Metric description area, verify that the metric namespace and the metric name for which you want to specify dimensions are selected.
    4. Select the Resource group that you want.
      Note

      A blank or null value for Resource group returns only metric data that doesn't have a resource group.
    5. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    6. Select Save alarm.
  • Use the oci monitoring alarm update command and required parameters to update an alarm. Use the --resource-group parameter to select a resource group for the alarm query.

    oci monitoring alarm update --resource-group <resource_group_name> [...]

    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 resourceGroup attribute to select a resource group for the alarm query.