Document the target_info option in the OpenMetrics config template #26208
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
martavicentenavarro
What does this PR do?
Adds the
target_infoinstance option to the shared OpenMetrics V2 config template and regenerates the config examples and models of every integration that uses it. Thecache_shared_labelsdescription now says it also applies whentarget_infois set, which matchesLabelAggregator.KrakenD is the exception: its check turns
target_infoon by default, and discovered instances are built from the config model, so a generatedfalsedefault would have turned it off for them. Its spec now overrides the default totrue, 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 indatadog_checks_base.Motivation
target_info: truehas worked sincedatadog_checks_base37.6.0 (#19397): the labels of thetarget_infometric 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 anyconf.yaml.exampleand users assume it is unsupported, for example #13690.Checklist before requesting review
<!--
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.
-->
<!--
How to verify: check the diff for relevant tests and run them as described in
AGENTS.md.-->
<!--
How to verify: run
gh api repos/DataDog/integrations-core/pulls/<PR>/commentsandgh pr view <PR> --repo DataDog/integrations-core --json reviews,comments, then fix eachfinding or reply with the reason no change is needed.
-->
<!-- 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 useqa/skip-qa, neverqa/required.-->