add tracing
This commit is contained in:
@@ -10,6 +10,7 @@ services:
|
||||
volumes:
|
||||
- ./prometheus:/etc/prometheus
|
||||
- prom_data:/prometheus
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana
|
||||
container_name: grafana
|
||||
@@ -21,5 +22,28 @@ services:
|
||||
- GF_SECURITY_ADMIN_PASSWORD=grafana
|
||||
volumes:
|
||||
- ./grafana:/etc/grafana/provisioning/datasources
|
||||
|
||||
otel-collector:
|
||||
image: otel/opentelemetry-collector:latest
|
||||
container_name: otel-collector
|
||||
command: ["--config=/etc/otel-collector-config.yaml"]
|
||||
volumes:
|
||||
- ./otel/otel-collector-config.yaml:/etc/otel-collector-config.yaml
|
||||
ports:
|
||||
- "4317:4317" # OTLP gRPC receiver
|
||||
depends_on:
|
||||
- jaeger
|
||||
|
||||
jaeger:
|
||||
image: jaegertracing/all-in-one:latest
|
||||
container_name: jaeger
|
||||
environment:
|
||||
- COLLECTOR_OTLP_ENABLED=true
|
||||
- COLLECTOR_OTLP_GRPC_HOST-PORT=:4317
|
||||
- COLLECTOR_OTLP_GRPC_HOST_PORT=:4317
|
||||
ports:
|
||||
- "16686:16686"
|
||||
# - "4317:4317"
|
||||
|
||||
volumes:
|
||||
prom_data:
|
||||
@@ -6,4 +6,7 @@ datasources:
|
||||
url: http://prometheus:9090
|
||||
isDefault: true
|
||||
access: proxy
|
||||
editable: true
|
||||
editable: true
|
||||
- name: Jaeger
|
||||
type: jaeger
|
||||
url: http://jaeger:16686
|
||||
19
deployment/otel/otel-collector-config.yaml
Normal file
19
deployment/otel/otel-collector-config.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
processors:
|
||||
exporters:
|
||||
otlp:
|
||||
endpoint: "http://jaeger:4317"
|
||||
tls:
|
||||
insecure: true
|
||||
debug:
|
||||
verbosity: detailed
|
||||
service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: []
|
||||
exporters: [otlp]
|
||||
Reference in New Issue
Block a user