Skip to content

Commit

Permalink
Add OTLP rec and remove qretry from example and default config (#1823)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <[email protected]>

Add OTLP receiver and qretry processor to example and default config.

**Link to tracking Issue:**
Updates #886 
Updates #1721 

**Testing:**
* `make run`
* build and run docker image
  • Loading branch information
pavolloffay authored Sep 22, 2020
1 parent a85c7a2 commit 64702fd
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endif
BUILD_X3=-X $(BUILD_INFO_IMPORT_PATH).BuildType=$(BUILD_TYPE)
BUILD_INFO=-ldflags "${BUILD_X1} ${BUILD_X2} ${BUILD_X3}"

RUN_CONFIG?=local/config.yaml
RUN_CONFIG?=examples/otel-local-config.yaml

CONTRIB_PATH=$(CURDIR)/../opentelemetry-collector-contrib

Expand Down
7 changes: 5 additions & 2 deletions cmd/otelcol/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ extensions:
endpoint: 0.0.0.0:55679

receivers:
otlp:
protocols:
grpc:
http:

opencensus:

Expand All @@ -29,7 +33,6 @@ receivers:

processors:
batch:
queued_retry:

exporters:
logging:
Expand All @@ -41,7 +44,7 @@ service:

traces:
receivers: [opencensus, jaeger, zipkin]
processors: [batch, queued_retry]
processors: [batch]
exporters: [logging]

metrics:
Expand Down
27 changes: 15 additions & 12 deletions examples/otel-local-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@ extensions:
endpoint: 0.0.0.0:55679

receivers:
otlp:
protocols:
grpc:
http:

opencensus:

# Collect own metrics
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ['0.0.0.0:8888']

jaeger:
protocols:
grpc:
Expand All @@ -27,9 +22,17 @@ receivers:

zipkin:

# Collect own metrics
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: [ '0.0.0.0:8888' ]

processors:
batch:
queued_retry:

exporters:
logging:
Expand All @@ -40,8 +43,8 @@ service:
pipelines:

traces:
receivers: [opencensus, jaeger, zipkin]
processors: [batch, queued_retry]
receivers: [otlp, opencensus, jaeger, zipkin]
processors: [batch]
exporters: [logging]

metrics:
Expand Down

0 comments on commit 64702fd

Please sign in to comment.