📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

๐Ÿ“š Interview question

Tell me about a time on-call was drowning in alerts. How did you work out which alerts mattered, cut the noise, and make every page actionable, and how did you prove it worked?

A real-world scenario about reducing alert fatigue: auditing alerts, measuring actionability, replacing cause-based alerts with symptom and SLO burn-rate alerts, deduplication and routing, runbooks, and tracking pages per shift.

Senior RealWorldScenario Advanced alert-fatigue alerting azure-monitor observability on-call slo

๐ŸŽฏ Key points

  • Measure first: pages per shift, out-of-hours pages, % actionable, duplicates, mean time to acknowledge
  • Audit every alert: owner, action taken last 30 days, keep / fix / downgrade / delete
  • Page only on user-facing symptoms (SLO burn rate on http.server.request.duration / App Insights requests, synthetic failures); causes go to tickets or dashboards
  • Multi-window burn-rate alerts (e.g. 14.4× over 1 h and 5 m) replace static thresholds
  • Deduplicate and group: Alertmanager group_by and inhibit_rules; Azure Monitor one rule split by cloud_RoleName, stateful alerts, alert processing rules
  • Route by ownership: Alertmanager routes on a team label; Azure Monitor action group per team, severity Sev0-1 pages, Sev2-4 tickets
  • Every page has a runbook link; weekly alert review; alerts as code
  • Prove it with numbers: pages per week, actionable %, MTTA, incidents still caught

โฑ 30-second answer

I'd describe it as an engineering problem with numbers. First I measured: pages per shift, how many were out of hours, and what percentage led to any action. Then I audited every alert with its owner: keep, fix, downgrade to a ticket, or delete.

The big change is to page on symptoms, not causes: SLO burn-rate alerts on each .NET service's request success and latency (from ASP.NET Core's http.server.request.duration or the Application Insights requests table) and synthetic failures page; CPU, memory and single exceptions become dashboards or tickets. Then deduplicate and group (Alertmanager group_by and inhibit_rules; in Azure Monitor one rule split by service with stateful auto-resolve and alert processing rules for maintenance), route by ownership (a team label in Alertmanager, an action group per team in Azure Monitor), and give every page a runbook.

I proved it with before/after numbers: pages per week, actionable percentage and whether real incidents were still caught. The trade-off is a little detection delay on some causes in exchange for an on-call rotation that trusts its pager.

๐Ÿ—ฃ Full answer (senior)

How I would answer this in an interview

"The first thing I did was stop arguing about individual alerts and get data. I exported every alert that had fired in the last [30 days] from [Azure Monitor and Alertmanager] into a spreadsheet: which rule, how often, what time, how long until someone acknowledged it, and whether anyone did anything. That showed the real picture: something like [600] notifications a week, [70%] of them out of hours, and only [about 10%] where anyone took an action. On-call had learned to mute the channel, which is exactly how a real outage gets missed.

For example, at [company] I ran an audit with each service owner. Every alert had to answer three questions: what is the user impact, what will the person paged do, and is there a runbook. Most of our noise was cause-based: CPU over 80%, a single exception, one failed health check, disk at 70%. We moved those to dashboards or daytime tickets and replaced them with a small set of symptom alerts: multi-window SLO burn-rate alerts on availability and latency for each service, plus synthetic journey failures. Then we fixed the plumbing: grouped related alerts so one database failover produced one page instead of forty, suppressed alerts during planned maintenance with alert processing rules, made log alerts stateful so they auto-resolved, and routed each alert to the owning team's rotation instead of one shared channel. Every page got a runbook link and a severity.

The result was [600 down to about 25] notifications a week, with [over 80%] leading to action, and in the following [quarter] we didn't miss a single customer-impacting incident. The mistake I see is treating alert fatigue as a people problem. If an alert doesn't need a human to act now, it shouldn't wake one up."


Step 1: measure

Metric Why it matters Target I'd aim for
Pages per on-call shift Load on people Fewer than 2 per 12-hour shift
Out-of-hours pages Sleep and burnout Only real user impact
Actionable % Signal quality Above 80%
Duplicate pages per incident Grouping quality 1
Mean time to acknowledge Trust in the pager Minutes, and falling
Incidents detected by alerts vs by customers Coverage Customers should not be the alerting system

Step 2: audit every alert

Outcome When
Keep as page Clear user impact, a human must act now, runbook exists
Fix Right signal but bad threshold, no grouping, flaps
Downgrade to ticket Needs action but not now (disk at 70%, cert expires in 30 days)
Dashboard only Diagnostic cause (CPU, GC, queue length) used during investigation
Delete Nobody can say what they would do

Step 3: symptoms and burn rate

Replace static thresholds with multi-window, multi-burn-rate SLO alerts. For a 99.9% 30-day SLO, a 14.4ร— burn rate over 1 hour (confirmed over 5 minutes) spends 2% of the monthly budget in an hour: page. A 6ร— rate over 6 hours (confirmed over 30 minutes): page or urgent ticket. A 1ร— rate over 3 days: ticket.

Step 4: plumbing

Problem Fix
One failure, 40 alerts Alertmanager group_by: [service, alertname], inhibit_rules (database down inhibits API errors); Azure Monitor: one alert per service via dimensions, smart groups
Alerts during deploys and maintenance Alertmanager silences; Azure Monitor alert processing rules with a schedule
Alerts that never resolve Stateful log search alerts (auto-resolve) and for: durations
Wrong people paged Routing by service / team label to the owner's rotation (PagerDuty, Opsgenie or action groups)
No idea what to do Runbook URL annotation on every alert, tested in game days

Production example

On a platform of [25] .NET services, the shared on-call rotation received [around 600] notifications a week. After the audit we deleted [110] of [180] alert rules, downgraded [40] to tickets and replaced the rest with burn-rate alerts per service. Notifications fell to [about 25] a week, out-of-hours pages dropped [85%], mean time to acknowledge went from [22] to [4] minutes, and the next [two] real incidents were both caught by burn-rate alerts before customers reported them.

๐Ÿ” What the interviewer is checking

Checks the candidate has fixed alert fatigue systematically, with data, ownership and symptom-based alerting, rather than just muting things.

Green flags

  • Starts with measurement and gives before/after numbers
  • Distinguishes symptoms from causes and uses SLO burn-rate alerts
  • Uses concrete tooling: grouping, inhibition, alert processing rules, routing by owner, runbooks
  • Keeps it clean with a recurring review and alerts as code

Red flags

  • "We just raised all the thresholds" or muted the channel
  • No way to show real incidents are still caught
  • Thinks more alerts means better coverage

๐Ÿ“š Learn in depth

1. Why alert fatigue is dangerous

Every false or unactionable page trains people to ignore the pager. Signal detection theory applies: if 9 out of 10 pages are noise, the rational response is to respond slowly to all of them. Noise doesn't just cost sleep, it raises the time to detect real incidents.

noisy alerts โ”€โ–บ people mute/ignore โ”€โ–บ slow ack on the real one โ”€โ–บ longer outage
     โ–ฒ                                                               โ”‚
     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€ more alerts added "so we catch it next time" โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

The last arrow is the trap: after an incident, teams add another cause-based alert, making the noise worse.

2. Symptoms versus causes

Symptom (page) Cause (dashboard/ticket)
Checkout error ratio burning budget at 14ร— Pod CPU 90%
p99 latency SLO burning Gen2 GC count rising
Synthetic sign-in failing in 3 of 5 locations One health check failed once
Orders queue age > 10 min (users waiting) Queue length > 1,000

Causes can be high while users are fine (CPU at 90% may be perfectly normal), and users can be hurt while every cause metric looks fine. Symptoms map directly to user impact.

3. Burn-rate maths

Error budget for 99.9% over 30 days = 0.1% of requests. Burn rate = observed error ratio รท budgeted ratio. At 14.4ร—, the whole budget would last 30 / 14.4 โ‰ˆ 2.1 days; over one hour you've used 1/720 ร— 14.4 = 2% of it. The short window (5 minutes) confirms the problem is still happening, so the alert resets quickly once it's fixed.

long window (1h)  โ”€โ”€โ–บ is it big enough to matter?
short window (5m) โ”€โ”€โ–บ is it still happening?
page only if both exceed 14.4 ร— 0.001

4. Grouping and inhibition

Alertmanager groups alerts with the same group_by labels into one notification, waits group_wait for related alerts, and repeats only every repeat_interval. inhibit_rules mute dependent alerts when a source alert fires (e.g. DatabaseDown inhibits ApiHighErrorRate for the same environment). Azure Monitor offers dimension splitting, stateful alerts, alert processing rules (suppress, or add action groups at scale by scope and schedule), and action groups for routing.

5. Runbooks

A runbook answers: what this alert means, how to confirm impact (a linked dashboard and KQL/PromQL), the first three mitigation steps, who to escalate to, and how to tell it's resolved. An alert whose runbook says "investigate" is a sign the alert is a cause, not a symptom.

6. Keeping it clean

  • A weekly 20-minute alert review: every page from the last week, was it actionable, what changes.
  • Alerts as code (Bicep, Terraform, PrometheusRule CRDs) so changes are reviewed and owners are recorded.
  • An SLO for on-call itself: for example, no more than 2 pages per shift on average, reviewed monthly.

Try it yourself

  1. Export the last 30 days of fired alerts: in Azure Resource Graph, query alertsmanagementresources for alert instances; count by alert rule and hour of day.
  2. Tag each alert keep / fix / ticket / dashboard / delete and calculate your actionable percentage.
  3. Write a multi-window burn-rate rule in PromQL for one service and test it with a fault injected in staging.
  4. Configure an Alertmanager inhibit_rule so a database alert suppresses API error alerts, and fire both with amtool.
  5. Create an Azure Monitor alert processing rule that suppresses notifications during a weekly maintenance window.

๐Ÿ’ป Code

Symptom-based burn-rate alerts with grouping, inhibition and runbook links (Prometheus and Alertmanager), the Azure Monitor equivalent with per-team routing, and the KQL used for the alert audit.

# prometheus-rules.yaml: page on SLO burn, not on CPU
# Metric: ASP.NET Core's http.server.request.duration histogram exported via OpenTelemetry
groups:
  - name: orders-api-slo
    rules:
      - record: orders:error_ratio:rate5m
        expr: |
          sum(rate(http_server_request_duration_seconds_count{service="orders-api",http_response_status_code=~"5.."}[5m]))
          / sum(rate(http_server_request_duration_seconds_count{service="orders-api"}[5m]))
      - record: orders:error_ratio:rate1h
        expr: |
          sum(rate(http_server_request_duration_seconds_count{service="orders-api",http_response_status_code=~"5.."}[1h]))
          / sum(rate(http_server_request_duration_seconds_count{service="orders-api"}[1h]))
      - alert: OrdersApiErrorBudgetFastBurn
        expr: orders:error_ratio:rate1h > (14.4 * 0.001) and orders:error_ratio:rate5m > (14.4 * 0.001)
        labels:
          severity: page          # pages the orders team's on-call
          team: orders
          service: orders-api
        annotations:
          summary: "Orders API is burning its 99.9% error budget at >14x"
          runbook_url: "https://runbooks.example.internal/orders-api/error-budget-burn"
          dashboard: "https://grafana.example.internal/d/orders-api"
# alertmanager.yaml: one page per incident, to the owning team
route:
  receiver: tickets
  group_by: [service, alertname]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 4h
  routes:
    - matchers: [ severity="page", team="orders" ]
      receiver: orders-oncall
    - matchers: [ severity="ticket" ]
      receiver: tickets
inhibit_rules:
  - source_matchers: [ alertname="SqlDatabaseUnavailable" ]
    target_matchers: [ severity="page" ]
    equal: [ environment ]   # database down: one page, not one per API
// Azure Monitor: one stateful log alert split by service (cloud_RoleName), routed to the owning team's action group.
// The KQL computes the 1h and 5m error ratios from Application Insights requests for each .NET service.
resource fastBurn 'Microsoft.Insights/scheduledQueryRules@2023-12-01' = {
  name: 'slo-fast-burn-orders'
  location: 'australiaeast'
  properties: {
    severity: 1                       // Sev0-1 page; Sev2-4 create tickets via a different action group
    enabled: true
    scopes: [ appInsights.id ]
    evaluationFrequency: 'PT5M'
    windowSize: 'PT1H'
    autoMitigate: true                // stateful: resolves itself when the burn stops
    criteria: {
      allOf: [
        {
          query: '''
            requests
            | where timestamp > ago(1h) and cloud_RoleName == "orders-api"
            | summarize long_ratio = 1.0 * countif(success == false) / count(),
                        short_ratio = 1.0 * countif(success == false and timestamp > ago(5m)) / countif(timestamp > ago(5m))
              by cloud_RoleName
            | where long_ratio > 0.0144 and short_ratio > 0.0144
          '''
          timeAggregation: 'Count'
          operator: 'GreaterThan'
          threshold: 0
          dimensions: [ { name: 'cloud_RoleName', operator: 'Include', values: [ '*' ] } ]
          failingPeriods: { numberOfEvaluationPeriods: 1, minFailingPeriodsToAlert: 1 }
        }
      ]
    }
    actions: {
      actionGroups: [ ordersOnCallActionGroup.id ]   // one action group per team: PagerDuty/Opsgenie webhook + SMS
      customProperties: { runbook: 'https://runbooks.example.internal/orders-api/error-budget-burn' }
    }
  }
}
// Alert audit: which Azure Monitor alerts fire most, and how many out of hours (AEST/AEDT)
alertsmanagementresources
| where type == "microsoft.alertsmanagement/alerts"
| where todatetime(properties.essentials.startDateTime) > ago(30d)
| extend rule = tostring(properties.essentials.alertRule),
         fired = todatetime(properties.essentials.startDateTime),
         severity = tostring(properties.essentials.severity)
| extend localHour = datetime_part("hour", datetime_utc_to_local(fired, "Australia/Sydney"))
| summarize fires = count(), outOfHours = countif(localHour < 8 or localHour >= 18) by rule, severity
| order by fires desc

โš  Common mistakes

  • Mistake: Treating alert fatigue as a discipline problem ("just respond faster"). Why it is wrong: people rationally ignore a noisy pager; the system design is at fault. Instead: measure actionability and fix or delete alerts.
  • Mistake: Paging on causes such as CPU, memory, GC counts or a single exception in a .NET service. Why it is wrong: causes are often harmless (a busy pod at 85% CPU is fine) and miss real user impact. Instead: page on SLO burn and synthetic failures; keep causes on dashboards.
  • Mistake: Adding a new cause alert after every incident. Why it is wrong: the noise keeps growing and the next incident has a different cause. Instead: ask whether a symptom alert would have caught it, and improve that.
  • Mistake: Static thresholds like "error rate > 1% for 5 minutes". Why it is wrong: they page on short harmless blips and miss slow burns. Instead: multi-window burn-rate alerts tied to the SLO.
  • Mistake: One shared channel for every team's alerts. Why it is wrong: nobody owns anything, so everyone ignores it. Instead: route by service ownership with severities.
  • Mistake: In Azure Monitor, one action group that emails and texts everyone, attached to every rule. Why it is wrong: every alert reaches every person, so nobody owns it. Instead: an action group per team, attached by rule or at scale with alert processing rules scoped to that team's resource groups.
  • Mistake: Creating a separate Azure Monitor rule per instance or per service by copy-paste. Why it is wrong: dozens of near-identical rules drift and fire together during one incident. Instead: one rule with dimensions (e.g. split by cloud_RoleName), so each service gets its own alert instance from one definition.
  • Mistake: Stateless log alerts (autoMitigate off). Why it is wrong: alerts fire again every evaluation and never resolve, so the incident list fills with stale entries. Instead: stateful alerts that auto-resolve, plus alert processing rules to suppress during planned maintenance.
  • Mistake: No grouping or inhibition. Why it is wrong: one database failover produces dozens of pages. Instead: group_by, inhibit_rules, alert processing rules, one alert per service using dimensions.
  • Mistake: Alerts without runbooks, or deleting alerts without checking coverage. Why it is wrong: the person paged at 3 am has to work out what the alert means, and you might remove the only signal for a real failure mode. Instead: runbook URL on every page alert; replay past incidents against the new alert set before deleting.

๐Ÿ› Senior insight: trade-offs

The senior framing is that a page is a request for a human to act now, and every page has a cost in attention and trust. I treat the alert set like a product with users (on-call engineers) and measure it: pages per shift, actionable percentage and incidents caught versus reported by customers. Deleting alerts feels risky, so I make it safe by replaying the last few incidents against the new rules and showing they would still have paged.

For .NET services on Azure, the practical shape is: the SLIs come from what the platform already emits (ASP.NET Core's http.server.request.duration histogram through OpenTelemetry, or the Application Insights requests table with cloud_RoleName per service), one burn-rate rule template is deployed per service as code, and routing follows ownership through one action group per team. Runtime signals such as dotnet.thread_pool.queue.length, GC pause time and the ADO.NET connection pool stay on the service dashboard, linked from the runbook, because they explain a page rather than justify one.

Alert type When it fits Cost When not to
SLO burn-rate page User-facing services with enough traffic Needs SLIs and recording rules or log queries Very low traffic: use synthetic tests
Synthetic failure page Critical journeys, low-traffic services Test maintenance As the only signal for complex internals
Cause-based ticket Capacity, cert expiry, disk growth Daytime work Never as an out-of-hours page unless imminent
Dashboard only Diagnostics (CPU, GC, thread pool, pool sizes) None When nobody looks at it: delete

I also watch for the opposite failure: after cleaning up, check that customers aren't the ones detecting incidents. If they are, you cut too far.

๐Ÿ”— Follow-ups the interviewer may ask

  1. When: Candidate mentions alerting on symptoms or SLO burn rate. Why: Checks they can design the alerting model itself: burn-rate windows, routing and runbooks.
    How to answer

    Alert on symptoms users feel, such as the request error-rate or latency SLI, failed synthetic journeys or orders per minute dropping, because causes like CPU at 80% often hurt nobody and miss failures with no resource signal at all. The best symptom alert is SLO burn rate: how fast you are spending the error budget. With a 99.9% SLO, a 14.4ร— burn over 1 hour (confirmed over 5 minutes) spends 2% of a 30-day budget and pages; 6ร— over 6 hours pages; slower burns raise a ticket.

    Every alert needs who gets paged (the owning team's rotation), the threshold and window, a severity that decides page versus ticket, a dashboard link and a runbook with the first mitigation steps. Cause metrics stay on dashboards for diagnosis. The trade-off: fewer pages means a slightly later warning for slow-building problems, which tickets cover.

  2. When: Candidate mentions error budgets. Why: Checks they can define the SLIs and SLOs the burn-rate alerts depend on.
    How to answer

    An SLI is a measurement of user experience expressed as a ratio of good events to valid events, for example requests to /api/orders answered in under 300 ms with a non-5xx status รท all requests. An SLO is the internal target for that SLI over a rolling window, such as 99% over 28 days. An SLA is the external contract with financial penalties, deliberately looser than the SLO (say 99.5% vs 99.9%) so you breach the SLO first.

    To turn a latency percentile into an SLO, rephrase it as a threshold ratio: "99% of requests complete in under 300 ms", computed from the ASP.NET Core http.server.request.duration histogram buckets, not by averaging p99s. The error budget is 1 โˆ’ SLO: at 99.9% over 30 days that is about 43 minutes or 0.1% of requests. When the budget is spent, risky releases pause and reliability work takes priority. The trade-off: each extra nine costs far more engineering and infrastructure.

  3. When: Candidate mentions moving cause alerts to dashboards. Why: Checks they can build dashboards that on-call actually uses during an incident.
    How to answer

    An incident dashboard must answer three questions in the first screen: are users hurting, since when, and where. So the top row is SLO status and error budget, then RED for the service (rate, 5xx ratio, p50/p95/p99) with the SLO threshold drawn on the panels. The next row is RED for each dependency (database, downstream APIs, queues) so you can see where the fault starts. Below that, USE panels for the runtime, pods and database, collapsed by default.

    Every time series carries deploy and feature-flag annotations, because most incidents follow a change, and panels link to traces and logs filtered to the same service and time window. One template as code with service and region variables serves every service.

    The trade-off: fewer panels make it faster to read, but you need drill-down paths for the detail you removed.

๐Ÿ›  Real-world problems: how you handle them

Cutting 600 weekly notifications to 25 with SLO burn-rate alerts
Situation
A platform of [25] .NET 10 services on AKS with [Azure Monitor and Prometheus] alerts, and one shared on-call rotation of [six] engineers. Alerts had grown over [three years], mostly added after incidents.
Signals
[~600] notifications a week, [70%] out of hours; mean time to acknowledge [22 minutes]; on-call survey scores falling; a [payment outage] was first reported by customers because its alert was buried in a noisy channel.
Investigation
Exported 30 days of fired alerts with Azure Resource Graph (`alertsmanagementresources`) and Alertmanager's API; grouped by rule, hour and acknowledgement time. Met each team to classify every rule as keep, fix, ticket, dashboard or delete, and checked which past incidents each rule had actually detected. Found [40%] of notifications came from five CPU/memory rules and duplicate alerts during database failovers.
Resolution
Immediate: silenced the five noisiest cause alerts and moved them to dashboards. Long term: defined availability and latency SLOs per service, added multi-window burn-rate alerts, grouped and inhibited alerts in Alertmanager, used alert processing rules for maintenance windows, split routing by team, and added a runbook link to every page.
Prevention
Alerts as code in Bicep and PrometheusRule CRDs with a required `runbook_url` and `team` label (checked in CI); a weekly 20-minute alert review; a monthly report of pages per shift and actionable percentage; replay of new incidents against the alert set.

How to tell it (STAR)

**S:** At [company], our shared on-call rotation for [25] services was getting [about 600] alert notifications a week, most out of hours, and a [payment outage] had recently been reported by customers before anyone noticed the alert. **T:** I [volunteered / was asked] to make the pager trustworthy again without losing coverage. **A:** I exported a month of fired alerts and showed only [about 10%] led to action. With each team I classified every rule, moved CPU and memory alerts to dashboards, and replaced static thresholds with SLO burn-rate alerts per service. I added grouping and inhibition so a database failover produced one page, routed alerts to owning teams, and required a runbook on every page, enforced in CI. **R:** Notifications fell to [about 25] a week, actionable pages rose to [over 80%], acknowledgement time dropped from [22] to [4] minutes, and the next [two] real incidents were caught by burn-rate alerts before customers noticed.

โ†ฉ Usually asked after

More in Health and Alerts

Last updated 23 Nov 2026.

๐ŸŒ Sangam's Webring

โช Previous ๐Ÿ  Main Next โฉ
๐Ÿ’ฌ Chat with me