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

add advance conf for otel-collector #212

Merged
merged 13 commits into from
Aug 4, 2022
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ services:
jaeger:
image: jaegertracing/all-in-one
container_name: jaeger
volumes:
- ./src/jaeger/jaeger-ui.json:/etc/jaeger/jaeger-ui.json
command: --query.ui-config /etc/jaeger/jaeger-ui.json
ports:
- "5775:5775"
- "5778:5778"
Expand All @@ -17,10 +20,12 @@ services:
- "14269:14269"
environment:
- COLLECTOR_ZIPKIN_HOST_PORT
- METRICS_STORAGE_TYPE=prometheus
- PROMETHEUS_SERVER_URL=http://prometheus:9090

# Collector
otelcol:
image: otel/opentelemetry-collector:0.52.0
image: otel/opentelemetry-collector-contrib:0.52.0
Frapschen marked this conversation as resolved.
Show resolved Hide resolved
container_name: otel-col
command: [ "--config=/etc/otelcol-config.yml" ]
volumes:
Expand Down
8 changes: 8 additions & 0 deletions src/jaeger/jaeger-ui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"monitor": {
"menuEnabled": true
},
"dependencies": {
"menuEnabled": true
}
}
11 changes: 10 additions & 1 deletion src/otelcollector/otelcol-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ receivers:
protocols:
grpc:
http:
otlp/spanmetrics:
protocols:
grpc:
endpoint: "localhost:65535"

exporters:
jaeger:
Expand All @@ -16,14 +20,19 @@ exporters:

processors:
batch:
spanmetrics:
metrics_exporter: prometheus

service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
processors: [spanmetrics,batch]
Frapschen marked this conversation as resolved.
Show resolved Hide resolved
exporters: [logging, jaeger]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [prometheus, logging]
metrics/spanmetrics:
receivers: [ otlp/spanmetrics ]
exporters: [ prometheus ]
Frapschen marked this conversation as resolved.
Show resolved Hide resolved