feat(observability): detect new HCP alerts after upgrades (WIP) #7946
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.47) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 484 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #7946"
general
weight: 0.35
geoberle
Detect newly firing alerts on recently upgraded HCPs to help identify
possible upgrade regressions. Exposing this signal through monitoring
supports investigation across regions and the fleet. It also lays the
groundwork for rollout automation to count affected clusters as failed
and react to unhealthy upgrades.
Summary
An alert is new when it fires after the upgrade completed, it started at or after
the upgrade started, and its namespace + alert name did not fire in the 24h before the
upgrade started. Detection runs from completion until 24h after.
HCPUpgradeNewAlertnames the triggering alert innew_alertnameand only goes toKusto, so per-HCP detail is kept without flooding IcM.
HCPUpgradeVersionNewAlertsis the rollout signal. Its correlation IDHCPUpgradeVersionNewAlerts/<region>/<version>omits the cluster, so IcM merges themanagement clusters of a region. Its description carries a KQL query listing the
affected HCPs and alerts.
Design and limits:
docs/alerts/hcp-upgrade-new-alert/.Evidence
HCPUpgradeNewAlertper upgradeattempt, with no way to tell which alert triggered it. It then timed out waiting for a
deleted rule group's alert to resolve (Azure keeps those Fired).
After: personal-dev E2E, real upgrade 4.21 → 4.22.23, passed (2026-11-17):
HCPUpgradeNewAlert(including two newalerts → two instances, and same-version retries → one instance) and HCP counting
per region, version and management cluster for
HCPUpgradeVersionNewAlerts.Not verified: IcM incident creation and merging across management clusters
(personal-dev has no IcM connection), Kusto rows (personal-dev does not feed the shared
Kusto cluster), AMA collection of the KSM history metrics, and fleet-scale query cost.
Merge Danger
Door: two-way
New Prometheus rule groups only; reverting removes them. Incremental deployment does not
delete rule groups, so a revert also needs the two groups removed by hand.
Blast Radius: RP IcM queue
Once deployed to int/stg/prod, every completed upgrade that is followed by a new alert
opens a SEV 4 incident in the RP queue, merged per region and version. A long rollout
can open more than one incident per version.
Rollout prerequisites: Event Hub alerting must be enabled so
HCPUpgradeNewAlertreaches Kusto, and the recording rules should run for 24 hours before the alerts are
enabled, since
hcp:alertshas no history before its first deployment.🤖 Generated with Claude Code