Skip to content

Commit

Permalink
update otel collector config
Browse files Browse the repository at this point in the history
  • Loading branch information
phongnguyend committed Jul 21, 2024
1 parent 8ff1f55 commit dc060cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
10 changes: 3 additions & 7 deletions tools/opentelemetry/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:

# Collector
otel-collector:
image: otel/opentelemetry-collector-contrib-dev:latest
image: otel/opentelemetry-collector-contrib:latest
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
Expand Down Expand Up @@ -59,12 +59,8 @@ services:
- "5601:5601"
- "9200:9200"
- "5044:5044"
ulimits:
nofile:
soft: 65536
hard: 65536

networks:
default:
external:
name: phongnguyend
name: phongnguyend
external: true
13 changes: 5 additions & 8 deletions tools/opentelemetry/otel-collector-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
receivers:
otlp:
protocols:
grpc: null
grpc:
endpoint: 0.0.0.0:4317
exporters:
prometheus:
endpoint: '0.0.0.0:8889'
const_labels:
label1: value1
logging: null
zipkin:
endpoint: 'http://zipkin:9411/api/v2/spans'
format: proto
jaeger:
endpoint: 'jaeger-all-in-one:14250'
otlp/jaeger:
endpoint: 'jaeger-all-in-one:4317'
tls:
insecure: true
elasticsearch:
Expand All @@ -38,22 +38,19 @@ service:
processors:
- batch
exporters:
- logging
- zipkin
- jaeger
- otlp/jaeger
metrics:
receivers:
- otlp
processors:
- batch
exporters:
- logging
- prometheus
logs:
receivers:
- otlp
processors:
- batch
exporters:
- logging
- elasticsearch

0 comments on commit dc060cf

Please sign in to comment.