Create a file, datadog-agent.yaml, that contains the following configuration:
kind:DatadogAgentapiVersion:datadoghq.com/v2alpha1metadata:name:datadogspec:features:apm:enabled:truehostPortConfig:enabled:truehostPort:8126admissionController:enabled:truemutateUnlabelled:false# (Optional) Uncomment the next three lines to enable logs collection# logCollection:# enabled: true# containerCollectAll: trueglobal:site:<DATADOG_SITE>credentials:apiSecret:secretName:datadog-secretkeyName:api-keyappSecret:secretName:datadog-secretkeyName:app-keyoverride:nodeAgent:image:tag:<DATADOG_AGENT_VERSION>
Replace <DATADOG_SITE> with your Datadog site. Your site is datadoghq.com. (Ensure the correct SITE is selected on the right).
Replace <DATADOG_AGENT_VERSION> with version 7.55.0 or later.
Optional: Uncomment the logCollection section to start collecting application logs which will be correlated to Spark job run traces. Once enabled, logs are collected from all discovered containers by default. See the Kubernetes log collection documentation for more details on the setup process.
Deploy the Datadog Agent with the above configuration file:
Create a file, datadog-values.yaml, that contains the following configuration:
datadog:apiKeyExistingSecret:datadog-secretappKeyExistingSecret:datadog-secretsite:<DATADOG_SITE>apm:portEnabled:trueport:8126# (Optional) Uncomment the next three lines to enable logs collection# logs:# enabled: true# containerCollectAll: trueagents:image:tag:<DATADOG_AGENT_VERSION>clusterAgent:admissionController:enabled:truemuteUnlabelled:false
Replace <DATADOG_SITE> with your Datadog site. Your site is datadoghq.com. (Ensure the correct SITE is selected on the right).
Replace <DATADOG_AGENT_VERSION> with version 7.55.0 or later.
Optional: Uncomment the logs section to start collecting application logs which will be correlated to Spark job run traces. Once enabled, logs are collected from all discovered containers by default. See the Kubernetes log collection documentation for more details on the setup process.