← Back to Pull requests

ARO-26192: Add Access the Cluster SLO alert rules and tests #5777

Closed
unknown closed this pull request without merging on Jul 01, 2026 20:08 UTC
View on GitHub
unknown unknown commented on Jun 24, 2026 18:29 UTC
Author

Summary

  • Adds Prometheus recording rules and MWMBR alert rules for the Access the Cluster user journey (credential operations: requestcredential, revokecredentials)

  • 3 recording rules: errors:backend_credential_operation:{succeeded_total,terminal_total,error_rate}

  • 7 alert rules following ADR naming convention (userJourney prefix per #5765):

  • - 4 error burn-rate alerts: userJourneyAccessClusterErrors{1h5m,6h30m,3d} + userJourneyAccessClusterErrorsDegradation
    - 1 stuck operation alert: userJourneyAccessClusterStuckOperation (>1h threshold — credential ops are faster than node pool ops, so 1h vs 2h)
    - 2 saturation alerts: userJourneyAccessClusterSaturation{QueueDepth,RetryHotLoop} for credential controllers
  • 12 promtool tests covering normal operation, fast/medium burn, degradation, stuck ops (both requestcredential and revokecredentials), queue depth, retry ratio, mixed operation types

  • Recording rules in separate file (observability/recording-rules/access-cluster-slo-recordingRule.yaml) with own test file

  • Registered in alerts-rp-services.yaml (fleet-aggregate lane) and recording-rules-services.yaml

  • Generated Bicep (generatedRPPrometheusAlertingRules.bicep, generatedRecordingRules.bicep) committed
  • Metrics used

    | Metric | Filters |
    | --- | --- |
    | backend_resource_operation_phase_info | operation_type=requestcredential\|revokecredentials, resource_type=microsoft.redhatopenshift/hcpopenshiftclusters |
    | backend_resource_operation_start_time_seconds | same as above |
    | workqueue_depth | namespace=aro-hcp, name=~.(RequestCredential\|RevokeCredentials). |
    | workqueue_retries_total / workqueue_adds_total | same as above |

    SLO Design

  • SLO target: 95% of credential operations succeed (5% error budget)

  • Burn rate tiers: Fast (14.4x, >72%, 5m), Medium (6x, >30%, 30m), Slow (1x, >5%, 6h)

  • Stuck threshold: 1 hour (vs 2h for node pools — credential ops don't involve VM provisioning)

  • Follows ARO HCP Alerting Recommendation ADR
  • Jira

  • ARO-26192 — Alerting

  • Parent epic: ARO-26180 — Refactor UJ Runbook: Access the cluster
  • Checklist

  • MWMBR alerts for Errors SLI (4 tiers)

  • Alert names follow userJourney{Subject}{Metric}{BurnRateTier} convention per #5765

  • promtool test file with 12 passing test cases

  • Each alert links to runbook via runbook_url

  • Recording rules in separate file with own tests

  • Registered in correct lane configs (alerts-rp-services.yaml, recording-rules-services.yaml)

  • Generated Bicep committed
  • Diff: 342 lines (+256 / -86) across 4 files Reviewer: shubhadapaithankar Review duration: 10179m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 342 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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.349
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5777"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.3% (MEDIUM) · Higher = larger blast radius
    42.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.7% · Safe to merge
    16.7%
    Repository