-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into release-13.x (#877)
- Loading branch information
Showing
7 changed files
with
119 additions
and
13 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
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
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
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,15 @@ | ||
all: testDD | ||
|
||
.check-env: | ||
ifndef WF_SERVER | ||
$(error WF_SERVER is undefined) | ||
endif | ||
ifndef WF_TOKEN | ||
$(error WF_TOKEN is undefined) | ||
endif | ||
ifndef DD_API_KEY | ||
$(error DD_API_KEY is undefined) | ||
endif | ||
|
||
testDD: .check-env | ||
WF_SERVER=${WF_SERVER} WF_TOKEN=${WF_TOKEN} DD_API_KEY=${DD_API_KEY} docker compose up --build --attach wf-proxy |
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,25 @@ | ||
# "DataDog Agent -> WFProxy -> DataDog" Tests | ||
|
||
## Build Proxy | ||
|
||
On Proxy repo home run: | ||
|
||
``` | ||
MVN_ARGS="-DskipTests" make build-jar docker | ||
``` | ||
|
||
## Run test | ||
|
||
On `tests/datadog/` run: | ||
|
||
``` | ||
WF_SERVER=nimba \ | ||
WF_TOKEN=XXXXX \ | ||
DD_API_KEY=XXXX \ | ||
make | ||
``` | ||
|
||
## Test if is working | ||
|
||
1. Go to you WF server, and serach for a metric `docker.cpu.usage`, you shoul get some series with a `dd_agent_version=7` tag, and other with a `dd_agent_version=6` tag. | ||
2. Do the same on your Datadog acount (the `dd_agent_version` will not be available) |
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,42 @@ | ||
services: | ||
wf-proxy: | ||
hostname: wf-proxy | ||
build: ../../docker | ||
environment: | ||
WAVEFRONT_URL: https://${WF_SERVER}.wavefront.com/api/ | ||
WAVEFRONT_TOKEN: ${WF_TOKEN} | ||
WAVEFRONT_PROXY_ARGS: > | ||
--dataDogJsonPorts 2879,2880 | ||
--dataDogProcessSystemMetrics true | ||
--dataDogProcessServiceChecks true | ||
--dataDogRequestRelayTarget https://api.datadoghq.com | ||
--preprocessorConfigFile /tmp/preprocessor_rules.yaml | ||
volumes: | ||
- ${PWD}/preprocessor_rules.yaml:/tmp/preprocessor_rules.yaml | ||
|
||
ports: | ||
- "2878:2878" | ||
- "2879:2879" | ||
- "2880:2880" | ||
|
||
dd-agent-7: | ||
hostname: dd-agent-7 | ||
image: gcr.io/datadoghq/agent:7 | ||
environment: | ||
DD_DD_URL: http://host.docker.internal:2879 | ||
DD_API_KEY: ${DD_API_KEY} | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- /proc/:/host/proc/:ro | ||
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro | ||
|
||
dd-agent-6: | ||
hostname: dd-agent-6 | ||
image: gcr.io/datadoghq/agent:6 | ||
environment: | ||
DD_DD_URL: http://host.docker.internal:2880 | ||
DD_API_KEY: ${DD_API_KEY} | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- /proc/:/host/proc/:ro | ||
- /sys/fs/cgroup/:/host/sys/fs/cgroup:ro |
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,11 @@ | ||
'2879': | ||
- rule : ddv7 | ||
action : addTag | ||
tag : dd_agent_version | ||
value : "7" | ||
|
||
'2880': | ||
- rule : ddv6 | ||
action : addTag | ||
tag : dd_agent_version | ||
value : "6" |