Datadog Helm Chart

How to send Traces from Datadog Helm chart to CodeSee

πŸ“˜

Service Maps is an Enterprise-only feature

Summary

This guide will help you send Traces data from your Datadog helm chart to CodeSee.

Please refer to example repo to see a working example: example code

Install Datadog Helm Chart with CodeSee Integration

Install the helm repo and create Secrets for Datadog API Key and CodeSee Ingestion Token.

Be sure to insert your CodeSee Ingestion Token (in quotes) before running this!

# add repo 
helm repo add datadog https://helm.datadoghq.com
helm repo update

# create secret for DD API Key
kubectl create secret generic datadog-secret --from-literal api-key=$DD_API_KEY

# create secret for CodeSee Ingestion Token: 
kubectl create secret generic codesee-secret --from-literal \
'DD_APM_ADDITIONAL_ENDPOINTS={"https://in-datadog.codesee.io": ["CodeSee_Ingestion_Token_Here"]}'

Create file: datadog-values.yaml with the following value:

datadog:
 apiKeyExistingSecret: datadog-secret

agents:
  containers:
    traceAgent:
      envFrom:
        - secretRef:
            name: codesee-secret

Install the Datadog helm chart:

helm install datadog-agent -f datadog-values.yaml datadog/datadog

Troubleshooting / Debug

To quickly validate the CodeSee integration is working as expected, you can pass the CodeSee Ingestion Token directly to the datadog-value.yaml file.

# datadog-value.yaml file 
agents:
  useConfigMap:  true
  customAgentConfig:
    apm_config:
      additional_endpoints:
        "https://in-datadog.codesee.io":
        - CODESEE_TOKEN_HERE

Check that your datadog-agent is working as expected:

# get your datadog-agent status
kubectl exec datadog-agent -- agent status

# get your datadog-agent loaded config. You want to look for any reference to CodeSee shows up
kubectl exec datadog-agent -- agent config

Resources:

Install the Datadog Agent on Kubernetes

Datadog Dual Shipping in Kubernetes