You're looking at the source code right now. We provide a number of pre-packaged binaries for your convenience.
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 firstname.lastname@example.org before submitting your pull request.
Setup your environment
python 2.6 or 2.7
# Clone the repository
git clone email@example.com:DataDog/dd-agent.git
# Create a virtual environment and install the dependencies:
# Activate the virtual environment
bundle exec rake lint
# Run a flavored test
bundle exec rake ci:run[apache]
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.
Datadog Agent http://docs.datadoghq.com/
Why Use a Proxy
Using the Agent as a Proxy
Using a Web Proxy as Proxy
# If you need a proxy to connect to the Internet, provide the settings here proxy_host: my-proxy.example.com proxy_port: 3128 proxy_user: my_user proxy_password: my_password
Using HAProxy as a Proxy
# Basic configuration global log 127.0.0.1 local0 maxconn 4096 stats socket /tmp/haproxy # Some sane defaults defaults log global option dontlognull retries 3 option redispatch timeout client 1s timeout server 5s timeout connect 5s # This declares a view into HAProxy statistics, on port 3835 # You do not need credentials to view this page and you can # turn it off once you are done with setup. listen stats :3835 mode http stats enable stats uri / # This declares the endpoint where your agents will connect. # In this example we use port 3834 but you can use any other # free port. frontend forwarder bind *:3834 # DTDG mode tcp default_backend datadog # This is the Datadog server. In effect any TCP request coming # to the forwarder frontend defined above will be proxied to # Datadog's public endpoints. backend datadog balance roundrobin mode tcp option tcplog server mothership haproxy-app.agent.datadoghq.com:443 check port 80
On GNU/Linux, Mac OS X, FreeBSD, SmartOS:
On Windows (Starting from agent 3.9.2):