Skip to content

Not able to disable configSync in otel-agent #2133

@tr3mor

Description

@tr3mor

Hello Datadog team,
Currently, if you enable ddot in helm chart, it automatically configures configSync for you.

- name: DD_AGENT_IPC_PORT
value: "5009"
- name: DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL
value: "60"

While it is a great feature, I faced some cases where I would like to disable it.
In one of those cases, I want otel-agent to ingest metrics/spans directly to Datadog intake, while agent itself to send them to another otel collector for additional filtering/data masking before ingesting into Datadog via intake endpoints. To do it, I override DD_DD_URL and DD_APM_DD_URL in the agent container, but due to configSync, the otel-agent uses the same endpoints.
Based on the source code, to disable it, I should configure the port or interval to 0 - https://github.com/DataDog/datadog-agent/blob/fe3c3448775c167ca73548088526a7af36c3aaf7/comp/core/configsync/configsyncimpl/module.go#L69C1-L72
But they are hardcoded in the Helm chart.

I think the easiest solution will be to allow overriding of DD_AGENT_IPC_PORT, so you could set it to 0 for otel-agent container.
I can bring a PR if you are okay with adding this feature.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions