Create Metric Alarm
A 3-step recipe with Oracle Cloud Infrastructure. We can help you get access.
Recipe · 3 steps
Create Metric Alarm
Discover a metric, create an alarm on it, then confirm the alarm.
- List the metrics available in the compartment and namespace to confirm the target metric exists.
- Create an alarm in the compartment that evaluates the threshold query against the metric namespace.
- Read the alarm back to confirm it was created and is enabled.
What you'll need to have ready
- compartmentId: The OCID of the compartment for the metrics and alarm.
- namespace: The metric namespace (e.g. oci_computeagent).
- metricName: Optional metric name filter for the metric listing.
- alarmDisplayName: A user-friendly name for the alarm.
- query: The Monitoring Query Language threshold expression for the alarm.
- severity: The alarm severity (CRITICAL, ERROR, WARNING, or INFO).
- destinations: The notification destination OCIDs for the alarm.
For your developer
Arazzo workflow oracle-cloud:create-metric-alarm, 3 operations: listMetrics → createAlarm → getAlarm. Specs on APIs.io.