Build OCI Monitoring alarm configurations with MQL queries and notification topics.
Last verified: May 2026
Output will appear here...OCI Monitoring alarms evaluate metric conditions and trigger notifications when thresholds are breached. Configuring alarms requires specifying the target metric, statistic (mean, max, min, sum, rate, count), aggregation interval, comparison operator, threshold value, and the notification destination. Alarms support composite conditions with grouping dimensions and suppression windows for maintenance periods. This builder helps you assemble alarm definitions with correct MQL (Monitoring Query Language) queries, evaluation periods, and notification topic references, outputting configurations for Terraform, the OCI CLI, or the Monitoring API.
Your team is rolling out a new web service across 30 instances. The naive alarm 'any CPU > 80% for 1 minute' fires 50+ times per day during normal autoscaling. The builder helps you rebuild: composite alarm with 'p95 latency > 1000ms FOR 3 OF 5 evaluation periods AND error rate > 1%'. Daily alarm count drops from 50 to ~2, and both real alarms map to actual incidents. On-call team burnout reduced; real signal becomes visible again.
M-of-N evaluation is OCI's equivalent of CloudWatch's 'datapoints to alarm'. Setting evaluation periods to 5 with 3 datapoints required dramatically reduces noise from transient spikes. A pure 'CPU > 80% for 1 minute' alarm fires constantly during normal autoscaling activity.
Composite alarms (combining metric conditions with AND/OR logic) cut alert fatigue dramatically. Instead of paging on 'CPU > 80%' which constantly false-alarms, page on 'CPU > 80% AND p95 latency > 500ms' — much higher signal-to-noise.
Suppression windows are the under-used feature for maintenance. When you're doing planned ops (kernel upgrade, fleet redeploy) that will trigger CPU/disk metrics, set a suppression for the maintenance window so the on-call team isn't paged unnecessarily.
The builder constructs OCI alarm definitions with: target metric (compartmentId, namespace, metricName), MQL query (with statistic and grouping), threshold + comparison operator, evaluation periods, severity level, notification topic (OCI Notifications topic OCID), suppression windows, and message format. Output is generated as oci CLI commands and Terraform oci_monitoring_alarm resources.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.