Skip to content

Running the Datadog Agent as a docker container along with Prometheus and Consul

Notifications You must be signed in to change notification settings

awsprof/datadog-docker-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Datadog Agent as Docker Container

WHY this?

How to run Datadog agent to send metrics to datadog while running as a Docker container instead of on the host and how to hook all other services to the Datadog agent

Description

A simple docker-compose configuration that allows the following services to run as docker containers

  • prometheus
  • grafana
  • cadvisor
  • consul
  • node-exporter
  • alert-manager sending alerts to datadog instead of slack

All the configuration items are there. Alert Manager rules can be extended and when new serivces are registered with Consul, Prometheus auto discovers the services.

Installation

  • Search for <DD_API_KEY> and replace that with your Datadog API key
- DD_API_KEY=<DD_API_KEY>
url: https://app.datadoghq.com/intake/webhook/prometheus?api_key=<DD_API_KEY>
  • Run the following from the root folder
docker-compose up -d
  • Run the following from the root folder to look at the status of the datadog agent
docker exec -it datadog agent status

Removing the containers

  • Run the following from the root folder
docker-compose down --remove-orphans

URLs to access

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Running the Datadog Agent as a docker container along with Prometheus and Consul

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages