Listing Alarms

List alarms in Monitoring.

Before You Begin

IAM policies: To list alarms, you must be given the required type of access in a policy  written by an administrator. This requirement applies whether you're using the Console or the REST API with an SDK, CLI, or other tool. If you get a message that you don't have permission or are unauthorized, check with the administrator. You might not have the required type of access in the current compartment .

Administrators: For an example policy, see List Alarms and Alarm Status.

    1. Open the navigation menu  and select Observability & Management. Under Monitoring, select Alarm Definitions.
    2. To view the resources in a different compartment, use the Compartment filter to switch compartments.
      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
    3. (Optional) To filter the list by alarm status, select a status value from the Status list.
    4. (Optional) To filter the list by tag:
      1. Next to Tag filters, select add.
      2. In the Add a tag filter dialog, enter the following:
        • Tag namespace: Select the tag namespace.
        • Tag key: Select the key.
        • Tag value: Select from the following:
          • Match any value - returns all resources tagged with the selected namespace and key, regardless of the tag value.
          • Specify matching values - returns resources with the tag value you enter in the text box. Enter a single value in the text box. To specify multiple values for the same namespace and key, select + to display another text box. Enter one value per text box.
      3. Select Apply filter.
    5. To search for an alarm by name, enter the name in the search box on the upper right.
  • Use the oci monitoring alarm list command and required parameters to list alarms:

    oci monitoring alarm list --compartment-id <compartment_OCID>

    For a complete list of parameters and values for CLI commands, see the Command Line Reference for Monitoring.

  • Run the ListAlarms operation to list alarms.