Infrastructure
Azure Monitor: diagnose a silent metric alert after a new dimension appears
A runbook for separating time-series selection, aggregation, evaluation and notification before changing a multidimensional metric alert.
A team sees errors on a newly deployed storage API, yet its Azure Monitor alert stays silent. A chart showing failed transactions does not establish that the rule evaluates the same time series, over the same window, or that a notification was delivered.
In this fictional incident, a rule monitors a Storage account’s Transactions metric by ApiName and ResponseType. A new operation appears after deployment. The task is to isolate the failing layer before broadening dimensions or lowering the threshold.
Freeze the contract and preserve evidence
Record the account ID, region, rule and IaC version, first error time in UTC, exact dimension combination, user impact and decision owner. Preserve the effective configuration: scope, metric namespace and name, dimensions and operators, aggregation, window, frequency, threshold, automatic resolution setting and action groups. Protect exports containing identifiers or destinations.
Compare fired-alert history in the portal with notification history and service events. A missing notification does not necessarily mean no alert fired. A stateful rule may also have an existing fired alert for the same time series, so another firing is not expected. Keep an independent user-impact signal active during the investigation.
Reconstruct the evaluated series
In Metrics Explorer, select the same resource, namespace, metric and filters as the rule. Split by dimensions and explicitly set the same aggregation and time granularity as the rule; do not leave the chart on automatic. Compare the affected UTC window, including intervals with no data. A high account-wide sum can conceal individual series below threshold; missing data is not zero.
Check the effective dimension inclusions and exclusions. An explicit list may omit the new API. A * wildcard for a dimension includes future values, but each selected combination is evaluated as a separate time series. Expanding a filter can therefore increase coverage, alert volume and cost. Assess applicable limits and on-call impact before changing it. To monitor the aggregate without dimensions as well, use a separate rule: selecting dimensions does not automatically monitor that aggregate.
| Finding | Next check |
|---|---|
| No data for the expected combination | Check emission, resource, dimensions and availability delay; do not treat absence as success. |
| Data exists but the value is not selected | Compare the effective filter with the API inventory and IaC definition. |
| Series is selected but threshold is not crossed | Recalculate the aggregation over the window and check units and operator. |
| Alert fired but nothing was received | Inspect the action group, processing rules and destination, without changing the threshold. |
Examine the window and state
Frequency determines how often the rule evaluates; aggregation window determines which data each evaluation uses. A spike visible at a different chart granularity does not necessarily cross the rule’s threshold. For a new dimension combination, Microsoft notes that an aggregation window longer than the evaluation frequency reduces the chance of missing the first evaluation period. It does not guarantee detection of every short spike.
Distinguish static from dynamic thresholds. For a dynamic threshold, also inspect the learning history and required violations. Record the alert state for the exact combination and any additional conditions. Do not switch to stateless operation just to generate more notifications without assessing the noise and incident-management impact.
Repair with a bounded canary
Prepare one change: add an explicit value if the population is controlled, or use a wildcard if future values must be covered and the resulting volume is acceptable. Retain both the previous and proposed definitions in the change system. For an experiment, use a separate canary rule on a representative test resource or dimension, with a test action group and a removal deadline.
Agree in advance on an authorized, non-destructive signal, an observation period covering several evaluations, the recipient and stop conditions. Verify in order:
- The expected metric and dimensions appear with the correct aggregation.
- A controlled condition fires an alert for the intended series within the expected delay.
- The test recipient receives a notification that can be correlated with that alert.
- Returning to normal produces the expected resolution behavior, and a negative test outside scope does not fire the rule.
Do not induce production errors to test alerting. If the signal cannot be generated safely, use a representative test environment and maintain compensating production monitoring. That test alone does not prove coverage of every production series.
Decide and roll back
Promote the change through IaC after the service owner accepts the coverage, series count and notification behavior. Observe a normal cycle and, when possible, a representative new value. If noise rises, a critical series disappears or delivery fails, stop the rollout and restore the previously approved definition. Restoring a rule does not recreate missed alerts: maintain compensating monitoring, retest the signal and record the blind period until coverage is demonstrated.