← Back to Pull requests

[AAP-65791] Collect and expose dashboard collection performance telemetry #269

Closed
unknown closed this pull request without merging on Jun 25, 2026 12:35 UTC
View on GitHub
unknown unknown commented on Jun 15, 2026 13:22 UTC
Author

[AAP-65791] Collect and expose dashboard collection performance telemetry

Description


<!-- Mandatory: Provide a clear, concise description of the changes and their purpose -->
  • What is being changed?

  • Added a new DB model for storing dashboard collection telemetry and a new DB migration
    Add telemetry retrieval and storing into the new database model
    Add a new endpoint for listing the last 30 days of dashboard collection telemetry: GET /api/v1/dashboard_reports/collection_telemetry/
    Updated OpenAPI Schema
  • Why is this change needed?

  • - As a platform engineer, I want dashboard collection performance telemetry captured and exposed so that we can monitor the impact of dashboard data collection on the Controller database and support capacity planning.
  • How does this change address the issue?

  • - See above

    Type of Change


    <!-- Mandatory: Check one or more boxes that apply -->
  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

  • Documentation update

  • Test update

  • Refactoring (no functional changes)

  • Development environment change

  • Configuration change
  • Self-Review Checklist


    <!-- These items help ensure quality - they complement our automated CI checks -->
  • I have performed a self-review of my code

  • I have added relevant comments to complex code sections

  • I have updated documentation where needed

  • I have considered the security impact of these changes

  • I have considered performance implications

  • I have thought about error handling and edge cases

  • I have tested the changes in my local environment
  • Testing Instructions


    <!-- Optional for test-only changes. Mandatory for all other changes -->
    <!-- Must be detailed enough for reviewers to reproduce -->

    Prerequisites


    <!-- List any specific setup required -->

    Steps to Test


    1.
    2.
    3.

    Expected Results


    <!-- Describe what should happen after following the steps -->

    Additional Context


    <!-- Optional but helpful information -->

    Required Actions


    <!-- Check if changes require work in other areas -->
    <!-- Remove section if no external actions needed -->
  • Requires documentation updates

  • <!-- API docs, feature docs, deployment guides -->
  • Requires downstream repository changes

  • <!-- Specify repos: django-ansible-base, eda-server, etc. -->
  • Requires infrastructure/deployment changes

  • <!-- CI/CD, installer updates, new services -->
  • Requires coordination with other teams

  • <!-- UI team, platform services, infrastructure -->
  • Blocked by PR/MR: #XXX

  • <!-- Reference blocking PRs/MRs with brief context -->

    Screenshots/Logs


    <!-- Add if relevant to demonstrate the changes -->

    Diff: 373 lines (+279 / -94) across 4 files Reviewer: kcagran Review duration: 14352m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 373 lines diff across 4 files
    0.43
    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.354
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #269"
    general weight: 0.35
    Reviewers
    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.8% (MEDIUM) · Higher = larger blast radius
    42.8%
    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.9% · Safe to merge
    16.9%