Skip to main content
Datadog Agent with Tero Edge
Deploy Tero Edge alongside your Datadog Agent to apply policies to logs, metrics, and traces before they leave your cluster.

How it works

Edge runs as a DaemonSet on each node. The Datadog Agent sends logs through Edge instead of directly to Datadog. Edge applies policies and forwards to Datadog. Edge only proxies telemetry (logs, metrics, traces). Other agent traffic (security monitoring, remote config, fleet management) bypasses Edge and goes to Datadog.

Prerequisites

  • Datadog Agent running on Kubernetes (via Helm or Datadog Operator)
  • kubectl access to your cluster
  • Tero account

Connect

1

Create the namespace and secret

Create the namespace and store your API key as a Kubernetes secret:
2

Create the Edge ConfigMap

Create a ConfigMap with your Edge configuration. Select your Datadog region:
tero-edge-config.yaml
If you prefer to manage policies locally instead of syncing from Tero, use a file provider. Add policies.json to your ConfigMap:
tero-edge-config.yaml
Update upstream_url and metrics_url for your Datadog region.
3

Deploy the Edge DaemonSet

Deploy Edge to run on each node:
tero-edge-daemonset.yaml
4

Configure the Datadog Agent

Point the Datadog Agent’s log output to Edge running on the same node.
Add to your DatadogAgent CR:
The HOST_IP variable points the agent at the Edge instance on the same node via the hostPort.
5

Verify

Check that Edge pods are running:
Check Edge logs for incoming traffic:

Policy providers

Edge supports multiple policy sources. Configure them in the policy_providers array in your ConfigMap.

File provider

Load policies from a local file. Use this for static policies bundled in the ConfigMap.

HTTP provider

Fetch policies from a remote endpoint. This fits dynamic policies managed via the Tero API.
The DaemonSet injects ${TERO_API_KEY} from the Kubernetes secret through its environment configuration.

Example policies

Add policies to the policies.json section of your ConfigMap:
See Policy Reference for all filtering options.

Troubleshooting

Agent can’t reach Edge Verify Edge is listening on the hostPort:
Ensure both the agent and Edge have matching tolerations so they run on the same nodes. Policies not applying Check that Edge loaded policies:
Traffic not reaching Datadog Verify upstream_url matches your Datadog region. Check Edge logs for upstream connection errors.