Skip to content

Commit 08eae6f

Browse files
authored
Make demo work with collector binary (open-telemetry#32)
Address open-telemetry#24 though you should use census-instrumentation/opencensus-service for now
1 parent 8772c90 commit 08eae6f

File tree

3 files changed

+22
-16
lines changed

3 files changed

+22
-16
lines changed

demos/trace/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
# OpenCensus Agent/Collector Demo
1+
# OpenCensus Service Demo
22

3-
Typical flow of tracing data with OpenCensus service: tracing data initially received by OC Agent
3+
*IMPORTANT:* This is a pre-released version of the OpenTelemetry Service.
4+
For now, please use the [OpenCensus Service](https://github.com/open-telemetry/opentelemetry-service).
5+
6+
Typical flow of tracing data with OpenCensus Service: tracing data initially received by OC Agent
47
and then sent OC Collector using OC data format. The OC Collector then sends the data to the
58
tracing backend, in this demo Jaeger and Zipkin.
69

710
This demo uses `docker-compose` and runs against locally built docker images of OC service. In
811
order to build the docker images use the commands below from the root of the repo:
912

1013
```shell
11-
make docker-agent && make docker-collector
14+
make docker-collector
1215
```
1316

1417
To run the demo, switch to the `demos/trace` folder and run:

demos/trace/docker-compose.yaml

+10-11
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ services:
1515
- "9411:9411"
1616

1717
# Collector
18-
otelsvc-collector:
19-
image: otelsvc:latest
20-
command: ["--config=/etc/otelsvc-collector-config.yaml", "--http-pprof-port=1777"]
18+
oc-collector:
19+
image: collector:latest
20+
command: ["--config=/etc/oc-collector-config.yaml", "--http-pprof-port=1777"]
2121
volumes:
22-
- ./otelsvc-collector-config.yaml:/etc/otelsvc-collector-config.yaml
22+
- ./oc-collector-config.yaml:/etc/oc-collector-config.yaml
2323
ports:
2424
- "55678"
2525
- "55680:55679"
@@ -30,24 +30,23 @@ services:
3030
- zipkin-all-in-one
3131

3232
# Agent
33-
otelsvc-agent:
34-
image: otelsvc:latest
35-
command: ["--config=/etc/otelsvc-agent-config.yaml", "--http-pprof-port=1888"]
33+
oc-agent:
34+
image: collector:latest
35+
command: ["--config=/etc/oc-agent-config.yaml", "--http-pprof-port=1888"]
3636
volumes:
37-
- ./otelsvc-agent-config.yaml:/etc/otelsvc-agent-config.yaml
37+
- ./oc-agent-config.yaml:/etc/oc-agent-config.yaml
3838
ports:
39-
- "1888:1888"
4039
- "14268"
4140
- "55678"
4241
- "55679:55679"
4342
depends_on:
44-
- otelsvc-collector
43+
- oc-collector
4544

4645
# Synthetic load generator
4746
synthetic-load-generator:
4847
image: omnition/synthetic-load-generator:1.0.25
4948
environment:
5049
- JAEGER_COLLECTOR_URL=http://otelsvc-agent:14268
5150
depends_on:
52-
- otelsvc-agent
51+
- oc-agent
5352

demos/trace/oc-agent-config.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
receivers:
22
opencensus:
3-
address: ":55678"
3+
port: 55678
44
reconnection-delay: 2s
55
jaeger:
66
collector_http_port: 14268
77

8-
exporters:
8+
queued-exporters:
9+
collector:
10+
num-workers: 2
11+
queue-size: 10
12+
retry-on-failure: true
913
opencensus:
1014
endpoint: "oc-collector:55678"

0 commit comments

Comments
 (0)