← Back to Pull requests

[karpenter] Collect and describe all the metrics of Karpenter v1.15 #26177

Open
unknown opened this pull request with 214 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 24, 2026 16:09 UTC
Author

What does this PR do?

  • Adds scripts/karpenter_metrics_v1, a Go tool that prints the metrics that Karpenter v1.15 registers, as tests/fixtures/karpenter_metrics_v1.txt.

  • Tests run the check on that file and on karpenter_metrics_v1_renamed.txt, a small file of metrics that older v1 releases named differently.

  • They ensure that the check submits every metric in them, and that every submitted metric has a row in metadata.csv of the right type.
    Once the tool is bumped to a newer Karpenter and the file is regenerated, the tests fail until each metric that Karpenter added is in the mapping and in metadata.csv.
  • Maps the 46 metrics of v1.15 that the check dropped and adds 82 rows to metadata.csv.

  • Maps names that older v1 releases used and the check dropped, and adds a missing row for karpenter_ignored_pod_count.

  • Fixes mappings that never matched: removes leader_election_slowpath, maps aws_sdk_go_request_retry_count, and replaces operator_node_event_count with operator_node_event.
  • Motivation

    Keep integration metrics up to date to the latest Karpenter release.
    Updates https://datadoghq.atlassian.net/browse/CASCL-2141

    Checklist before requesting review

  • I self-reviewed the full diff, and this description matches the final change

  • Tests cover the change, or this description explains why none are needed

  • Automated review comments, including Codex review, were addressed or answered

  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards
  • 🤖 Generated with Claude Code

    Diff: 214 lines (+160 / -54) across 2 files Reviewer: AlexanderYastrebov Review duration: 9545m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 214 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.321
    Real PR Conversation Timeline
    1 comments
    "Review active on #26177"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 36.6% (MEDIUM) · Higher = larger blast radius
    36.6%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.5% · Safe to merge
    19.5%