datadog-operator icon indicating copy to clipboard operation
datadog-operator copied to clipboard

Agent: OTLP Logs Support ?

Open drazzib opened this issue 2 years ago • 3 comments

Describe what happened:

With current release of datadog-operator, it seems datadog-agent pod is started with default DD_OTLP_CONFIG_LOGS_ENABLED: "false"

AFAIK, there is no way to change this default value from datadog-operator (I've checked Configuration)

Describe what you expected:

As described in Ingest OpenTelemetry logs with the Datadog Agent blog post and from OTLP Ingestion by the Datadog Agent reference documentation we should be able to enable this feature

FTR, this feature has already been added into DataDog/helm-charts v3.53 release

Add otlp.logs.enabled option to datadog agent to set the DD_OTLP_CONFIG_LOGS_ENABLED env variable.

drazzib avatar Sep 30 '24 15:09 drazzib

Hi @drazzib, apologies about that! As a workaround, you can enable OTLP logs using spec.override:

spec:
  override:
    nodeAgent:
      env:
      - name: DD_OTLP_CONFIG_LOGS_ENABLED
        value: true

I've added a card to our backlog to add configurable otlp logs support.

fanny-jiang avatar Oct 01 '24 14:10 fanny-jiang

Hey gang,

Just wanted to add that this got me too - I would've thought the features here would've enabled this:

  • features.otlp.receiver.protocols.grpc.enabled - Enable the OTLP/gRPC endpoint. Host port is enabled by default and can be disabled.

scottgerring avatar Nov 04 '24 09:11 scottgerring

This issue has been automatically marked as stale because it has not had activity in the past 15 days.

It will be closed in 30 days if no further activity occurs. If this issue is still relevant, adding a comment will keep it open. Also, you can always reopen the issue if you missed the window.

Thank you for your contributions!

dd-octo-sts avatar Oct 15 '25 10:10 dd-octo-sts