Creating an Alarm That Splits Messages by Metric Stream

Create an alarm in Monitoring that sends a separate alarm message for each metric stream.

For a scenario with examples, see Scenario: Split Messages by Metric Stream.

For alarm troubleshooting, see Troubleshooting Alarms.

    1. Open the navigation menu and click Observability & Management. Under Monitoring, click Alarm Definitions.
    2. Click Create Alarm.
    3. In the Metric description section of the Create Alarm page, select a metric namespace and metric name.
    4. In the Message grouping section, select Split notifications per metric stream.
    5. Provide values for the remaining fields.
      For reference, see Creating a Basic Alarm.
    6. Click Save alarm.
  • Use the oci monitoring alarm create command and required parameters to create an alarm that sends a message for each metric stream. Set --is-notifications-per-metric-dimension-enabled to true.

    oci monitoring alarm create --is-notifications-per-metric-dimension-enabled true [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference for Monitoring.

  • Run the CreateAlarm operation to create an alarm that sends a message for each metric stream.

    When defining details for CreateAlarmDetails, set isNotificationsPerMetricDimensionEnabled to true.