An example of how to integrate Datadog with Jenkins using Docker Compose
Table of Contents
Jenkins, Datadog and Docker are three great products - but have you ever tried to use them all in one project?
Here's why:
- Your time should be focused on creating something amazing. This repository shows a basic setup to get you started quicker and faster!
- You shouldn't be re-inventing the wheel. Use your time to improve on what other people have already created!
- You can use this repository as a base to monitor other products with Datadog as well!
So I have created this repository to help those who need a helping-hand or get moving quicker!
This is an example of how you may start setting up your project locally. To get a local copy up and running follow these simple example steps.
- Install WSL2 if you're using Windows. Not required for Mac or Linux.
- Install Docker Desktop or the Linux equivalent. Keep in mind that this repository demonstrates the a working Windows example.
- Get a free trial API Key at https://www.datadoghq.com/
- Clone the repo
git clone https://github.com/trungisme/jenkins-and-datadog-with-docker.git
- Create a file with the API Key
echo "<REPLACE_WITH_DATADOG_API_KEY>" > .env
- Bring up your Docker network
docker compose up -d
- Wait for Jenkins and Datadog to come up.
- Navigate to Jenkins in the browser via http://localhost:8080
- In the Datadog app, navigate to Integrations and search for Jenkins and install it to Datadog.
- Now Jenkins and Datadog should be connected!
Now you can create a job and run it and the build results should appear within Datadog. You can navigate to Dashboards > Dashboard List > Jenkins - Overview for an example dashboard.
Happy Monitoring!
Distributed under the MIT License. See LICENSE
for more information.