Technical qualification: Fleet error percentage requires relevant application metrics, not just standard Compute metrics.
Comprehensive and Detailed Explanation
OCI Monitoring Query Language supports metric aggregation across multiple metric streams through grouping and statistical operations.
When a transaction processing application runs across dynamically changing Compute instances, monitoring each instance independently can generate excessive alerts during autoscaling or transient failures.
A more suitable approach is to aggregate the relevant transaction metrics across the application fleet.
Option C describes this design. The MQL expression can group metrics by a shared application identifier rather than by individual Compute instance IDs.
For an accurate aggregate error percentage, the application must publish suitable transaction metrics. The monitoring calculation should divide the aggregate number of failed transactions by the aggregate number of total transactions, rather than simply average instance-specific error percentages.
Oracle MQL supports arithmetic operators, including division, as well as aggregation functions such as sum() and groupBy() .
The alarm can then evaluate the resulting fleet-level metric against the 5% threshold over the required evaluation interval.
Option A would generate resource-specific monitoring streams and increase notification volume. Options B and D introduce unnecessary external processing or excessive alarm definitions.
Important qualification: The necessary application transaction metrics must already exist in OCI Monitoring or be published by the application. OCI Compute metrics do not automatically supply business transaction error percentages.
Official Oracle References: OCI Monitoring — Monitoring Query Language Reference; Using groupBy(x) in a Query
Submit