← Back to Pull requests

Document the target_info option in the OpenMetrics config template #26208

Closed
unknown closed this pull request without merging on Nov 30, 2026 10:03 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 09:58 UTC
Author

What does this PR do?

Adds the target_info instance option to the shared OpenMetrics V2 config template and regenerates the config examples and models of every integration that uses it. The cache_shared_labels description now says it also applies when target_info is set, which matches LabelAggregator.

KrakenD is the exception: its check turns target_info on by default, and discovered instances are built from the config model, so a generated false default would have turned it off for them. Its spec now overrides the default to true, so current KrakenD users are not affected. A unit test covers discovered instances.

The option's behavior is already covered by the test_target_info_tags_propagation* tests in datadog_checks_base.

Motivation

target_info: true has worked since datadog_checks_base 37.6.0 (#19397): the labels of the target_info metric are added as tags to every other metric in the scrape. The option was never added to the template, so it does not appear in any conf.yaml.example and users assume it is unsupported, for example #13690.

Checklist before requesting review

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

  • <!--
    How to verify: run gh pr diff <PR> --repo DataDog/integrations-core, review every changed line,
    and compare the final diff with the description above.
    -->
  • Tests cover the change, or this description explains why none are needed

  • <!--
    How to verify: check the diff for relevant tests and run them as described in AGENTS.md.
    -->
  • Automated review comments, including Codex review, were addressed or answered

  • <!--
    How to verify: run gh api repos/DataDog/integrations-core/pulls/<PR>/comments and
    gh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix each
    finding or reply with the reason no change is needed.
    -->
  • I, the human author, understand this change, can explain it to reviewers, and believe it meets the repository standards

  • <!-- Coding agents: never tick this item. Only the human author may tick it. -->

    <!--
    QA label: PRs that only change code owned exclusively by @DataDog/agent-integrations (see
    .github/CODEOWNERS) always use qa/skip-qa, never qa/required.
    -->

    Diff: 311 lines (+233 / -78) across 3 files Reviewer: martavicentenavarro Review duration: 4324m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 311 lines diff across 3 files
    0.63
    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.344
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #26208"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    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: 25.1% · Safe to merge
    25.1%