Meet us at DataDog DASH  | June 25‑26, 2024  |  North Javits, NYC
Set up a meeting. Set Up a Meeting
Contact Us
Thought Leadership

Datadog Docker Container Monitoring in Lower Environments

By Irving Casillas, Cloud Engineer at IO Connect Services
November 11, 2021

The Datadog Mule Integration from IO Connect Services is an excellent tool for monitoring the health of your Mule® servers, applications, and other IT infrastructure. The instructions for the installation are simple and easy to follow. Due to the nature of the Docker Datadog® Agent, you may configure one agent or server for each of your Anypoint® Environments, which can increase your infrastructure costs. This article proposes a workaround where you can run the Datadog Mule Integration using Datadog Docker Container Monitoring for all your lower environments with only one server.


The following procedure is not an official method for the Datadog Mule Integration installation. We highly recommend that it be used only for testing purposes and /or in lower environments, never in production, because IO Connect Services does not support this approach.


One machine with Docker installed where the agent will be deployed, such as an AWS EC2 instance.

Datadog Docker Files Setup

To run the Datadog Mule Integration, you will need two files. The first one is the conf.yml which is the configuration file for the Datadog Mule Integration. This file must be previously edited with the configuration required for your environments, and you can find the instructions for how to edit this file under the following link: You can also download an example file here:

Once you have your con.yml file ready, you can create the second one, the Docker file.

The Docker file we test and that is proposed for this article is the following:

This snipped points to the datadog-mulesoft-anypoint v1.2.0, currently the latest stable version. To write this article, you are free to change the latest version if required.

Place the lines inside a file with the name “dockerfile”. This file will take the official Datadog Agent Docker image to configure and install all the requirements to run the Datadog Mule Integration. You must have both, conf.yml and dockerfile, in the same directory.

Run your Docker Datadog Agent

When the files are, you need to open a command-line tool and go into the files created before the directory.

First, you need to build the Docker image using the following command:

  • docker build . -t dd-mule-integration

Once the build command finishes, you need to execute the image using this command replacing <YOUR_API_KEY> by your DataDog API_KEY:

  • docker run -d --name dd-agent -v /var/run/docker.sock:/var/run/docker.sock:ro -v /proc/:/host/proc/:ro -v /sys/fs/cgroup/:/host/sys/fs/cgroup:ro -e DD_API_KEY=<YOUR_API_KEY> -e DD_SITE="" dd-mule-integration:latest

This will create a Docker container with the datadog-mulesoft-anypoint integration installed over the latest Docker Datadog Agent using the configuration provided inside the conf.yml file.

Run Multiple Datadog Docker Agents in One Instance

The only thing you need to do to run multiple agents in one instance is to reproduce the steps in “Run your agent” with the following changes:

  1.  Edit the conf.yml file with the corresponding parameters for the environment you want to monitor.
  2.  Change the tag in the build command. You can change the parameter after -t instruction to something related to monitoring the Anypoint Environment.

With these changes, it is sufficient to monitor your different Anypoint environments with Datadog before running the Docker container.

Datadog Docker Monitoring for Lower Infrastructure Costs

As mentioned before, this article describes an approach that IO Connect Services does not support. However, this method allows you to monitor all your environments using only one server, avoiding maintenance and configuration for different instances. Therefore, it is an easy and practical way to test the Datadog Mule Integration with a low infrastructure

Related Insights

We are results-driven with a focus on providing customer service excellence

IO Connect Services is here to help you by offering high-quality cloud technology solutions.
Connect with us
®2024 IO Connect Services
Privacy PolicyCookie Policy
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram