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. 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 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 [...]

    For a complete list of parameters and values 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.