41
loading...
This website collects cookies to deliver better user experience
helm repo add datadog https://helm.datadoghq.com
helm repo update
helm install <RELEASE_NAME> --set datadog.apiKey=<DATADOG_API_KEY> datadog/datadog
kubectl describe node <NODE_NAME>
agents:
tolerations:
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
DD_AGENT_HOST
for your application code to consume.DD_AGENT_HOST
as an environment variable into all your containers so you don't have to make additional configuration to export custom metrics. Ensuring that the agent is running on every single node of your cluster is essential to make this work, because the IP address of the pod's host node will be injected.clusterAgent:
admissionController:
enabled: true
mutateUnlabelled: false
admission.datadoghq.com/enabled: "true"
. If you'd rather inject the environment variables to all pods running on your cluster, you can also just set the admissionController.mutateUnlabelled
value to true
.kubectl exec -it <POD_NAME> -- printenv | grep "DD_AGENT_HOST"
kubectl describe pod <POD_NAME>
Node
field should match the IP address printed above.DD_AGENT_HOST
defined on the pod, that value will override what's automatically set by the Datadog agent. Make sure to remove both DD_AGENT_HOST
and DD_ENTITY_ID
from your pod configuration for the agent to work as expected.dogstatsd:
port: 8125
useHostPort: true
nonLocalTraffic: true
datadog:
apm:
enabled: true
agents:
containers:
agent:
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
values.yaml
file that you can use as reference:agents:
containers:
agent:
resources:
limits: # <-- set limits on the agent as necessary
requests:
tolerations:
- key: node-role.kubernetes.io/master # <-- Add if nodes have taints
operator: Exists
effect: NoSchedule
clusterAgent:
admissionController:
enabled: true
mutateUnlabelled: false # <-- `true` if you want to inject env vars to all pods
datadog:
apiKey: <API_KEY> # <-- Your api key, can be found in Datadog Dashboard
apm:
enabled: true
logs:
enabled: true
containerCollectAll: false # <-- `true` if you want to collect logs from all containers
dogstatsd:
port: 8125
useHostPort: true
nonLocalTraffic: true