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.

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

    1. Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
    2. Click the name of the alarm that you want to update.
    3. On the alarm details page, click Actions and then select Edit alarm.
    4. In the Metric description area, verify that the metric namespace and the metric name for which you want to specify dimensions are selected.
    5. 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.
    6. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    7. Click 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.