← Back to Pull requests

ARO-26057: reconcile Grafana ADX integration fabrics #4878

Closed
unknown closed this pull request without merging on Sep 23, 2026 09:38 UTC
View on GitHub
unknown unknown commented on Apr 14, 2026 21:56 UTC
Author

ARO-26057

What

Replaces the regional direct Grafana datasource approach with optional Managed Grafana integration-fabric reconciliation under the existing single global GrafanaManage owner.

This change:

  • Adds disabled-by-default gates for Kusto access and integration-fabric reconciliation.

  • Tags Kusto clusters for environment and geography-scoped discovery.

  • Grants the global Grafana identity database-level Viewer access to ServiceLogs only.

  • Passes typed ADX integration settings through the global Grafana pipelines and templatize runner.

  • Requires an explicit complete geography set before reconciliation can run.

  • Documents nonproduction validation, dry-run review, rollout order, and rollback behavior.
  • Why

    The Managed Grafana resource provider owns datasource lifecycle and may remove datasources created directly through Grafana's HTTP API. The global integration-fabric design avoids competing regional reconcilers and keeps ownership with the resource provider.

    Safety and rollout

    Both gates default to false. Rollout is staged:

    1. Deploy discovery tags.
    2. Enable Kusto Viewer access and deploy every target geography.
    3. Validate the integration-fabric scenario, target semantics, datasource behavior, and ownership behavior in nonproduction.
    4. Run grafanactl manage reconcile --dry-run and confirm there are no unexpected delete operations.
    5. Enable integration-fabric reconciliation in the global pipeline.

    The configuration schema prevents integration reconciliation unless Kusto access is enabled and the geography set is non-empty.

    Dependencies

  • Azure/ARO-Tools#228 contains the required pipeline and grafanactl API.

  • This draft temporarily uses root go.work replacements to the reviewed #228 fork commit so CI can test the coordinated changes before #228 merges.

  • After #228 merges, remove the replacements and update the ARO-Tools versions in test, tooling/grafanactl, tooling/helmtest, tooling/pipeline-documentation, and tooling/templatize.

  • Azure/ARO-HCP#6294 should merge first. Resolve the expected overlap where both changes add Kusto discovery tags.

  • The previous sdp-pipelines PR 15393796 is abandoned because it packages the superseded design. A fresh downstream PR will be generated after both GitHub changes merge.
  • The standard sdp-pipelines EV2 check currently stops at the expected stale ARO-Tools schema. Rebuilding the generator with the #228 commit passes the full Global entrypoint in resolve mode.

    Testing

  • Full make lint

  • make validate-config-pipelines

  • go test ./tooling/templatize/pkg/pipeline/... ./tooling/helmtest/... -count=1

  • make verify

  • Kusto Bicep compilation

  • Coordinated sdp-pipelines Global EV2 manifest generation in resolve mode

  • Coordinated multi-pass pre-push review with no remaining blockers
  • Diff: 361 lines (+270 / -91) across 4 files Reviewer: mmazur Review duration: 232541m
    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 · 361 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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4878"
    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.6% (MEDIUM) · Higher = larger blast radius
    42.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: 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.8% · Safe to merge
    16.8%
    Repository