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.
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
totrue
.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
totrue
.