Tagging an Alarm at Creation

Add metadata to an alarm in Monitoring when you create it.

    1. Open the Create alarm page:
      1. Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
      2. Click Create alarm.
    2. Under Tags (optional), configure tags:
      • Tag namespace: The container of the tag that you want (for defined tags).
      • Tag key: The name of the tag that you want.
      • Value: The value that you want to assign to the selected tag.
      • + Additional tag: Add a tag name-value pair.
      • X: Remove a tag name-value pair.
    3. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    4. Click Save alarm.
  • Use the oci monitoring alarm create command and required parameters to tag an alarm when you create it:

    oci monitoring alarm create [--defined-tags | --freeform-tags] <tags> [...]

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

  • Run the CreateAlarm operation to tag an alarm when you create it. Include the definedTags and freeformTags attributes and their values.