Skip to content

Datadog

This section shows how to configure the chart to export telemetry to Datadog.

要件

A Kubernetes secret containing the Datadog API key must exist in the cluster (either by creating it directly or using an external secret provider, refer to the External Secrets for DataRobot Kubernetes Installation section in the installation guide). The secret name and key are configurable - they just need to match what is referenced in the secrets section of the chart configuration below.

To add the secret directly to the cluster, use the following command:

kubectl create secret -n <DR_CORE_NAMESPACE> generic datarobot-datadog \
  --from-literal=api-key="<DATADOG-API-KEY>" 

Full chart configuration

The following configuration is added to the datarobot-prime chart values. Replace the placeholder values with the actual values.

For additional exporter configuration options, refer to the upstream OpenTelemetry documentation for the datadog exporter.

global:
  observability:
    secrets:
      - envVar: DD_API_KEY
        secretName: datarobot-datadog
        secretKey: api-key

    exporters:
      datadog:
        api:
          site: <DATADOG_SITE>
          key: ${env:DD_API_KEY}

    signals:
      logs:
        exporters: [datadog]
      metrics:
        exporters: [datadog]
      traces:
        exporters: [datadog] 

各パラメーターについて説明します。

  • <DATADOG_SITE>: the Datadog site (e.g. datadoghq.com, us5.datadoghq.com, datadoghq.eu)

The secrets section injects the DD_API_KEY environment variable from the datarobot-datadog Kubernetes secret into all collector pods. The exporter references this value using the ${env:DD_API_KEY} syntax.

Datadog Agent

Additionally, you can install the Datadog agent to collect and export cluster-level metrics to Datadog's Infrastructure Monitoring, which has out-of-the-box dashboards for Kubernetes metrics. Note that this is a completely independent component from DataRobot and isn't distributed in the observability subcharts.

Refer to the Datadog docs; or perform a quick install with the following minimal values for its chart (note the reference of the datarobot-datadog secret mentioned above):

datadog:
  apiKeyExistingSecret: datarobot-datadog
  site: "<DATADOG_SITE>" 

And installing the chart:

helm repo add datadog https://helm.datadoghq.com
helm repo update
helm install datadog-agent datadog/datadog -f datadog-agent.yaml