Selecting a Stream as the Notification Destination for an Alarm

Select the stream to send alarm notifications to.

For an example of sending alarm messages to a stream, see Streaming Destination.

    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 Destination area under Define alarm notifications, provide the following values:
      • Destination service: Select Streaming.
      • Compartment: Select the compartment  that contains the stream that you want. This compartment can be a different compartment than the one specified for the alarm and metric. By default, the first accessible compartment is selected.
      • Stream: Select the stream that you want to use for alarm notifications.
    5. Update any other values for the alarm, as needed.
      For more information about the fields, see Creating a Basic Alarm.
    6. Click Save alarm.
  • Use the oci monitoring alarm update command and required parameters to update an alarm. Use the --destinations parameter to select a stream as the alarm's notifications destination.

    oci monitoring alarm update --destinations <stream_OCID> [...]

    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 destinations attribute to select a stream as the alarm's notifications destination.