← Back to Pull requests

docs: document the logs, events, and metrics of Resources #1023

Closed
unknown closed this pull request without merging on Dec 03, 2026 09:43 UTC
View on GitHub
unknown unknown commented on Dec 03, 2026 04:02 UTC
Author

Purpose


Briefly describe what this pull request does.

Documents the logs, Kubernetes events, and CPU and memory metrics of Resources, which the Observer, the observability modules, the Backstage portal, and the Observability Plane MCP server now support.

  • Developer guide:

  • - The Logs, Events, and Metrics tabs of a Resource.
    - What to check when a Resource's tabs show no data.
    - The MCP tools that return the same data.
  • Authoring ResourceTypes: a new "Logs, Events, and Metrics" section on the platform labels a ResourceType must put on its pod template. The Valkey example now merges ${metadata.labels} into its pod labels.

  • Building a Module and the adapter API pages:

  • - The optional resources/logs/query, resources/events/query, and resources/metrics/query operations.
    - The 501 contract for adapters without Resource support.
    - The three-UID label match.
    - Module support tables.
  • Authorization and Observer external IdP: resource:view on the observer-resource-reader role.

  • v1.3 to v1.4 upgrade guide:

  • - The new resource:view action.
    - The module versions Resources need.
    - The OpenSearch event index update.
  • MCP reference:

  • - query_resource_logs and query_resource_events.
    - The resource argument of query_resource_metrics.

    Related Issues


    Include any related issues that are resolved by this PR.

    Docs for openchoreo/openchoreo#5450, part of openchoreo/openchoreo#4427. The code changes are in:

  • openchoreo/openchoreo#5665 and openchoreo/openchoreo#5732

  • openchoreo/community-modules#958 and openchoreo/community-modules#999

  • openchoreo/backstage-plugins#954
  • Checklist


  • Updated sidebars.ts if adding a new documentation page (no new pages)

  • Run npm run start to preview the changes locally

  • Run npm run build to ensure the build passes without errors

  • Verified all links are working (no broken links)
  • Remarks

    The module versions with Resource support aren't released yet. The latest are observability-logs-opensearch 0.8.3 and observability-metrics-prometheus 0.9.4.

  • The Building a Module tables say "Supported (0.9.0+, not released yet)" for OpenSearch, the version its README names, and "Supported (not released yet)" for Prometheus.

  • The upgrade guide says both modules support Resources from their next releases, not from the versions it lists.
  • Once community-modules releases them, these places should name the released versions.

    Diff: 311 lines (+233 / -78) across 3 files Reviewer: akila-i Review duration: 341m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 311 lines diff across 3 files
    0.40
    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%
    56%
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1023"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 40.3% (MEDIUM) · Higher = larger blast radius
    40.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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 17.4% · Safe to merge
    17.4%