datadog-agent

Configure Databog Agent deployments and custom checks on Linux via Ansible and Python.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill datadog-agent
Or copy as Structured Prompt for Agentā–¼
Please help me install this Agent Skill.
Skill: datadog-agent
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/datadog-agent
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill datadog-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you install, configure, and troubleshoot the Datadog Agent while avoiding common pitfalls that cause misconfiguration, missing metrics, or stuck checks.

Core Features & Use Cases

  • Safe Datadog Agent deployment: Establish correct configuration and operational practices, especially via Ansible roles.
  • Custom check development: Build reliable Python checks for metrics and OpenMetrics endpoints without deadlocks or silent config errors.
  • Log integration guidance: Correctly structure log collection configuration under the proper YAML keys.

Quick Start

Tell your AI to provide a Datadog Agent deployment and custom OpenMetrics check plan for a Linux host using Ansible, including correct logs.yml structure and verification commands.

Frequently Asked Questions about datadog-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy the Datadog Agent on Linux using Ansible?ā–¼

Deploy the Datadog Agent on Linux by applying the datadog.dd.agent Ansible role to establish correct configuration and operational practices, ensuring proper API key hygiene and reliable setup.

How do I write a custom Python check for Datadog Agent?ā–¼

Write a custom Python check by extending the AgentCheck or OpenMetricsBaseCheckV2 classes, ensuring Python 3 compatibility and safe subprocess handling to prevent deadlocks or silent configuration errors.

Why are my Datadog Agent custom checks missing metrics?ā–¼

Missing metrics often stem from silent config errors or deadlocks; verify your custom checks using the datadog-agent check command to ensure reliable discovery and correct YAML hierarchy.

How do I configure log collection in Datadog Agent?ā–¼

Configure log collection by structuring your configuration under the correct YAML keys in logs.yml to ensure the Datadog Agent properly collects and forwards logs without misconfiguration.

Can I use OpenMetrics checks with the Datadog Agent?ā–¼

Yes, you can use OpenMetrics checks by developing checks with OpenMetricsBaseCheckV2, maintaining correct YAML hierarchy and Python 3 compatibility for reliable endpoint scraping.

What is the best way to verify a Datadog Agent check is working?ā–¼

The best way to verify a Datadog Agent check is working is to run the datadog-agent check command, which validates check discovery and confirms metrics are being collected properly.