MCPcopy Index your code
hub / github.com/DataDog/dd-agent

github.com/DataDog/dd-agent @5.99.571

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.99.571 ↗ · + Follow
2,689 symbols 10,971 edges 289 files 727 documented · 27%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status

The Datadog Agent faithfully collects events and metrics and brings them to Datadog on your behalf so that you can do something useful with your monitoring and performance data.

You're looking at the source code right now. We provide a number of pre-packaged binaries for your convenience.

Change log

How to contribute code

First of all and most importantly, thank you for sharing.

If you want to submit code, please fork this repository and submit pull requests against the master branch. For more information, please read our contributing guidelines.

Please note that the Agent is licensed for simplicity's sake under a simplified BSD license, as indicated in the LICENSE file. Exceptions are marked with LICENSE-xxx where xxx is the component name. If you do not agree with the licensing terms and wish to contribute code nonetheless, please email us at info@datadoghq.com before submitting your pull request.

Setup your environment

Required: - python 2.6 or 2.7 - bundler

# Clone the repository
git clone git@github.com:DataDog/dd-agent.git

# Create a virtual environment and install the dependencies:
cd dd-agent
bundle install
rake setup_env

# Activate the virtual environment
source venv/bin/activate

# Lint
bundle exec rake lint

# Run a flavored test
bundle exec rake ci:run[apache]

Test suite

More about how to write tests and run them here

How to configure the Agent

If you are using packages on linux, the main configuration file lives in /etc/dd-agent/datadog.conf. Per-check configuration files are in /etc/dd-agent/conf.d. We provide an example in the same directory that you can use as a template.

How to write your own checks

Writing your own checks is easy using our checks.d interface. Read more about how to use it on our Guide to Agent Checks.

Contributors

git log --all | gawk '/Author/ {print}' | sort | uniq

Core symbols most depended-on inside this repo

get
called by 916
checks/libs/thread_pool.py
append
called by 363
resources/__init__.py
get
called by 299
ddagent.py
join
called by 262
checks/libs/thread_pool.py
assertMetric
called by 229
tests/checks/common.py
submit_packets
called by 219
aggregator.py
gauge
called by 189
checks/__init__.py
warning
called by 177
checks/__init__.py

Shape

Method 1,954
Class 412
Function 291
Route 32

Languages

Python96%
Ruby4%
Go1%

Modules by API surface

aggregator.py74 symbols
checks/__init__.py65 symbols
checks/libs/thread_pool.py60 symbols
checks/check_status.py56 symbols
win32/gui.py55 symbols
checks.d/openstack.py54 symbols
tests/core/test_wmi.py52 symbols
ddagent.py48 symbols
util.py42 symbols
tests/core/test_dogstatsd.py41 symbols
tests/core/test_bucket_aggregator.py40 symbols
config.py40 symbols

Datastores touched

(mongodb)Database · 1 repos
adminDatabase · 1 repos
dbDatabase · 1 repos
moviesDatabase · 1 repos

For agents

$ claude mcp add dd-agent \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact