Switch branches/tags
Clone or download
truthbk [kerberos] adding support with libkrb5 (#2655)
* [reno] adding release note

* [omnibus] libkrb5 (kerberos) needed by some integrations

[omnibus] fixing intergrations build build_env on linux

[omnibus] fix bad condition for libkrb5

[gitlab] dogstatsd builds should respect release version
Latest commit 1a085f0 Nov 14, 2018
Permalink
Failed to load latest commit information.
.circleci Use Codecov for code coverage reporting (#2489) Oct 25, 2018
.github add stakeholders to review `datadog-agent integration` (#2507) Oct 30, 2018
Dockerfiles Add s6 volume & squash daemonset (#2658) Nov 14, 2018
cmd [windows] properly compute programdata rather than hard-code to c: (#… Nov 7, 2018
dev/dist Dev Dist Folder (#413) Jul 28, 2017
docs Add doc and improve the status page (#2185) Nov 6, 2018
google-marketplace move GCL test files in right dir (#2074) Jul 27, 2018
omnibus [kerberos] adding support with libkrb5 (#2655) Nov 14, 2018
pkg-config [Windows] Create user `secretuser`; write the password to the registry ( Aug 10, 2018
pkg Adding fix for edge case in external metrics (#2552) Nov 14, 2018
releasenotes-dca Adding Changelog for the Datadog Cluster Agent 1.0.0 (#2508) Oct 30, 2018
releasenotes [kerberos] adding support with libkrb5 (#2655) Nov 14, 2018
tasks clusterchecks: simple dispatching logic (#2392) Nov 5, 2018
test repair test kitchen tests (#2483) Oct 26, 2018
.codecov.yml Use Codecov for code coverage reporting (#2489) Oct 25, 2018
.editorconfig Add .editorconfig file (#966) Dec 19, 2017
.gitignore [proc] Adding the network tracer, for eBPF-based network collection (#… Oct 30, 2018
.gitlab-ci.yml [kerberos] adding support with libkrb5 (#2655) Nov 14, 2018
CHANGELOG-DCA.rst Adding Changelog for the Datadog Cluster Agent 1.0.0 (#2508) Oct 30, 2018
CHANGELOG.rst Update integrations-core changelog links (#2526) Oct 26, 2018
CONTRIBUTING.md More github template files (#652) Sep 28, 2017
Gopkg.lock Synchronize lockfile (#2466) Oct 16, 2018
Gopkg.toml Add a CRI Core Check (#2309) Oct 10, 2018
LICENSE Switch copyright to 2018 (#1008) Jan 4, 2018
LICENSE-3rdparty.csv Add a CRI Core Check (#2309) Oct 10, 2018
NOTICE Switch copyright to 2018 (#1008) Jan 4, 2018
README.md Use Codecov for code coverage reporting (#2489) Oct 25, 2018
SUPPORT.md More github template files (#652) Sep 28, 2017
appveyor.yml Use Codecov for code coverage reporting (#2489) Oct 25, 2018
bootstrap.json [dep] bump to 0.5.0 (#2148) Aug 27, 2018
release.json bump jmxfetch to 0.22.1 (#2656) Nov 13, 2018
requirements.txt [dev] Bump `requests` to latest (#2536) Oct 30, 2018

README.md

Datadog Agent

CircleCI Build status Coverage status GoDoc Go Report Card

The present repository contains the source code of the Datadog Agent version 6. Please refer to the Agent user documentation for information about differences between Agent 5 and Agent 6. Additionally, we provide a list of prepackaged binaries for an easy install process here

Note: the source code of Datadog Agent 5 is located in the dd-agent repository.

Documentation

The general documentation of the project, including instructions for installation and development, is located under the docs directory of the present repo.

Getting started

To build the Agent you need:

  • Go 1.10.2 or later.
  • Python 2.7 along with development libraries.
  • Python dependencies. You may install these with pip install -r requirements.txt This will also pull in Invoke if not yet installed.

Note: you may want to use a python virtual environment to avoid polluting your system-wide python environment with the agent build/dev dependencies.

Note: You may have previously installed invoke via brew on MacOS, or pip in any other platform. We recommend you use the version pinned in the requirements file for a smooth development/build experience.

Builds and tests are orchestrated with invoke, type invoke --list on a shell to see the available tasks.

To start working on the Agent, you can build the master branch:

  1. checkout the repo: git clone https://github.com/DataDog/datadog-agent.git $GOPATH/src/github.com/DataDog/datadog-agent.
  2. cd into the project folder: cd $GOPATH/src/github.com/DataDog/datadog-agent.
  3. install project's dependencies: invoke deps. Make sure that $GOPATH/bin is in your $PATH otherwise this step might fail.
  4. build the whole project with invoke agent.build --build-exclude=snmp,systemd

Please refer to the Agent Developer Guide for more details.

Run

To start the agent type agent run from the bin/agent folder, it will take care of adjusting paths and run the binary in foreground.

You need to provide a valid API key. You can either use the config file or overwrite it with the environment variable like:

DD_API_KEY=12345678990 ./bin/agent/agent run -c bin/agent/dist/datadog.yaml

Contributing code

You'll find information and help on how to contribute code to this project under the docs/dev directory of the present repo.