Integration Check Precedence Conflict Between datadog.yaml and conf.d/<check>.yaml in Datadog Agent 7.x
0 reputation · 13 Oct 2024, 03:58 UTC
0 reputation · 13 Oct 2024, 03:58 UTC
When configuring a Datadog integration check, administrators may define the same parameter in both the main datadog.yaml file and the check‑specific file under conf.d/.yaml. The goal is to determine which value the Agent actually applies at runtime in Agent 7.x, especially when the dual‑stack migration mode is enabled and the autopilot feature may be managing certain settings automatically.
Constraints include the Agent’s documented precedence rules, which are not explicitly stated for overlapping keys, and the possibility that autopilot overrides manual entries during version transitions. The uncertainty lies in whether the behavior is consistent across all built‑in checks, custom checks, and future Agent releases.
Specific questions:
33275 reputation · 13 Oct 2024, 15:56 UTC
When the same parameter appears in both datadog.yaml and conf.d/.yaml, the value from the check‑specific file (conf.d/.yaml) is the one the Agent applies at runtime for that integration.
datadog.yaml holds agent‑wide settings (e.g., api_key, logs_config, process_config).conf.d/.yaml holds the integration’s init_config and instances blocks.datadog.yaml first, then overlays each conf.d file, so later values win for overlapping keys.Because the loader merges configurations in this order, any key that exists in both files will be overridden by the conf.d value. This behavior is the same for built‑in core checks and user‑defined custom checks, as both are processed by the same config merger. Autopilot/auto‑configuration does not silently replace manual entries in conf.d during a 6→7 upgrade; manual values remain authoritative unless explicitly managed by an external automation tool.
datadog-agent config dump
Look for the section of the check and note the value of the parameter in question.datadog-agent check or the Agent logs).If you need absolute certainty for a particular key (e.g., min_collection_interval or a custom option), please provide the exact parameter name so I can confirm which file’s value is being used in your environment.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.