Skip to content
agentgateway has joined the Agentic AI FoundationLearn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Datadog

Page as Markdown

Configure agentgateway to send traces to Datadog.

Datadog is a cloud-based observability platform. You can use the Datadog Agent to forward traces from agentgateway to Datadog.

Before you begin

  1. Set up an agentgateway proxy.
  2. Install the httpbin sample app.

Install the Datadog Agent

  1. Add the Datadog Helm repository.

    helm repo add datadog https://helm.datadoghq.com
    helm repo update
  2. Create a Datadog API key secret.

    kubectl create secret generic datadog-secret \
      --from-literal=api-key=<your-datadog-api-key>
  3. Install the Datadog Agent with OTLP ingestion enabled.

    helm install datadog-agent datadog/datadog \
      --namespace datadog \
      --create-namespace \
      --set datadog.apiKeyExistingSecret=datadog-secret \
      --set datadog.otlp.receiver.protocols.grpc.enabled=true \
      --set datadog.otlp.receiver.protocols.grpc.endpoint=0.0.0.0:4317

Configure tracing

Create an AgentgatewayPolicy that points the agentgateway proxy at the Datadog Agent.

kubectl apply -f- <<EOF
apiVersion: agentgateway.dev/v1alpha1
kind: AgentgatewayPolicy
metadata:
  name: tracing
  namespace: agentgateway-system
spec:
  targetRefs:
    - kind: Gateway
      name: agentgateway-proxy
      group: gateway.networking.k8s.io
  frontend:
    tracing:
      backendRef:
        name: datadog-agent
        namespace: datadog
        port: 4317
      protocol: GRPC
      randomSampling: "true"
EOF

Cleanup

You can remove the resources that you created in this guide.
  1. Delete the AgentgatewayPolicy resource.

    kubectl delete AgentgatewayPolicy tracing -n agentgateway-system
  2. Uninstall the Datadog Agent.

    helm uninstall datadog-agent -n datadog
    kubectl delete namespace datadog
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.