How to write annotations in Kubernetes with JSON for Datadog Autodiscovery | Datadog Tips & Tricks

Feb 19, 2026

Pod annotations in Kubernetes with invalid JSON syntax can prevent Datadog Autodiscovery from detecting integrations, resulting in missing metrics and gaps in monitoring.

Watch this video for a step-by-step process to write annotations:

  • Start by writing integration check configurations in YAML
  • Convert the YAML to JSON, then validate the JSON
  • Run commands to confirm the Datadog Agent picked up the annotations

Note: This video focuses on Datadog Autodiscovery v2 syntax.

Other useful resources
👉 Basic Agent Autodiscovery
https://docs.datadoghq.com/getting_started/containers/autodiscovery/
👉 Autodiscovery: Scenarios & Examples
https://docs.datadoghq.com/containers/guide/autodiscovery-examples/