Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support exporting tracing data to oc_agent, then to datadog agent #3398

Merged
merged 3 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions ocagent/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
version: "3.5"
services:
alpha1:
image: dgraph/dgraph:latest
container_name: alpha1
working_dir: /data/alpha1
labels:
cluster: test
ports:
- 8180:8180
- 9180:9180
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph alpha -o 100 --my=alpha1:7180 --lru_mb=1024 --zero=zero1:5080 --logtostderr -v=2 --jaeger.collector=http://ocagent:14268
zero1:
image: dgraph/dgraph:latest
container_name: zero1
working_dir: /data/zero1
labels:
cluster: test
ports:
- 5080:5080
- 6080:6080
volumes:
- type: bind
source: $GOPATH/bin
target: /gobin
read_only: true
command: /gobin/dgraph zero -o 0 --idx=1 --my=zero1:5080 --replicas=3 --logtostderr --jaeger.collector=http://ocagent:14268 -v=2 --bindall
ocagent:
image: omnition/opencensus-agent:0.1.6
container_name: ocagent
labels:
cluster: test
ports:
- 14268
- 55678
- 55679:55679
volumes:
- type: bind
source: $GOPATH/src/github.com/dgraph-io/dgraph/ocagent/ocagent-config.yaml
target: /conf/ocagent-config.yaml
read_only: true
command: --config /conf/ocagent-config.yaml
datadog:
image: datadog/agent:latest
container_name: datadog
working_dir: /working/datadog
volumes:
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
read_only: true
- type: bind
source: /proc/
target: /proc/
read_only: true
- type: bind
source: /sys/fs/cgroup/
target: /host/sys/fs/cgroup
read_only: true
environment:
- DD_API_KEY
- DD_APM_ENABLED=true
- DD_APM_NON_LOCAL_TRAFFIC=true
ports:
- 8126:8126
volumes: {}
9 changes: 9 additions & 0 deletions ocagent/ocagent-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
receivers:
jaeger:
collector_http_port: 14268

exporters:
datadog:
namespace: "oc_pool"
trace_addr: "datadog:8126"
enable_tracing: true