forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable support for publishing datadog metrics from a local environment (
airbytehq#18282) * local datadog docker-compose * add datadog docker-compose * update comments
- Loading branch information
1 parent
726ce59
commit f2c688d
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,6 @@ docs/SUMMARY.md | |
|
||
# Helm charts .tgz dependencies | ||
charts/**/charts | ||
|
||
# Datadog | ||
dd-java-agent.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Adds settings for allowing datadog metrics to be published from a local environment. | ||
# This exists _only_ for testing datadog integrations! | ||
# | ||
# Usage: | ||
# 1. create an API Key in datadog | ||
# 2. wget -O dd-java-agent.jar 'https://dtdg.co/latest-java-tracer' | ||
# 3. DD_API_KEY=[datadog api key] VERSION=dev docker-compose -f docker-compose.yaml -f docker-compose.datadog.yaml up -d | ||
version: "3.7" | ||
|
||
x-datadog: &datadogged | ||
volumes: | ||
- type: bind | ||
source: ./dd-java-agent.jar | ||
target: /dd-java-agent.jar | ||
environment: | ||
- DD_AGENT_HOST=airbyte-datadog | ||
- DD_TRACE_AGENT_URL=http://airbyte-datadog:8126 | ||
- JAVA_OPTS=-javaagent:/dd-java-agent.jar | ||
|
||
services: | ||
datadog: | ||
image: datadog/agent:7-rc | ||
container_name: airbyte-datadog | ||
environment: | ||
- DD_API_KEY | ||
- DD_ENV=${DD_ENV:-local} | ||
- DD_SITE=datadoghq.com | ||
- DD_DOGSTATSD_NON_LOCAL_TRAFFIC=true | ||
- DD_APM_ENABLED=true | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
- /proc/:/host/proc/:ro | ||
- /sys/fs/cgroup:/host/sys/fs/cgroup:ro | ||
networks: | ||
- airbyte_internal | ||
init: | ||
<<: *datadogged | ||
environment: | ||
- DD_SERVICE=airbyte-init | ||
bootloader: | ||
<<: *datadogged | ||
environment: | ||
- DD_SERVICE=airbyte-bootloader | ||
worker: | ||
<<: *datadogged | ||
environment: | ||
- DD_SERVICE=airbyte-worker | ||
server: | ||
<<: *datadogged | ||
environment: | ||
- DD_SERVICE=airbyte-server | ||
airbyte-cron: | ||
<<: *datadogged | ||
environment: | ||
- DD_SERVICE=airbyte-cron |