diff --git a/config/otel_dev/collector-gateway.yaml b/config/otel_dev/collector-gateway.yaml index 2c70fb4f..6cc85a04 100644 --- a/config/otel_dev/collector-gateway.yaml +++ b/config/otel_dev/collector-gateway.yaml @@ -1,38 +1,38 @@ receivers: - otlp: - protocols: - http: - endpoint: 0.0.0.0:4318 - cors: - allowed_origins: - - "http://*" - allowed_headers: - - "*" + otlp: + protocols: + http: + endpoint: 0.0.0.0:4318 + cors: + allowed_origins: + - "http://*" + allowed_headers: + - "*" processors: - batch: - timeout: 1s - resource: - attributes: - - key: test.key - value: "test-value" - action: insert + batch: + timeout: 1s + resource: + attributes: + - key: test.key + value: "test-value" + action: insert exporters: - logging: - loglevel: info - jaeger: - endpoint: jaeger-all-in-one:14250 - tls: - insecure: true + logging: + loglevel: info + jaeger: + endpoint: jaeger-all-in-one:14250 + tls: + insecure: true extensions: - health_check: - pprof: - endpoint: :1888 - zpages: - endpoint: :55679 + health_check: + pprof: + endpoint: :1888 + zpages: + endpoint: :55679 service: - extensions: [pprof, zpages, health_check] - pipelines: - traces: - receivers: [otlp] - processors: [batch, resource] - exporters: [logging, jaeger] + extensions: [pprof, zpages, health_check] + pipelines: + traces: + receivers: [otlp] + processors: [batch, resource] + exporters: [logging, jaeger] diff --git a/config/otel_dev/docker-compose.yaml b/config/otel_dev/docker-compose.yaml index 478f80ab..40de4a52 100644 --- a/config/otel_dev/docker-compose.yaml +++ b/config/otel_dev/docker-compose.yaml @@ -1,23 +1,23 @@ version: "2" services: - # Jaeger - jaeger-all-in-one: - image: jaegertracing/all-in-one:latest - ports: - - "16686:16686" - - "14268" - - "14250" - # Collector - collector-gateway: - image: otel/opentelemetry-collector:latest - volumes: - - ./collector-gateway.yaml:/etc/collector-gateway.yaml - command: [ "--config=/etc/collector-gateway.yaml" ] - ports: - - "1888:1888" # pprof extension - - "13133:13133" # health_check extension - - "4317:4317" # OTLP gRPC receiver - - "4318:4318" # OTLP HTTP receiver - - "55670:55679" # zpages extension - depends_on: - - jaeger-all-in-one + # Jaeger + jaeger-all-in-one: + image: jaegertracing/all-in-one:latest + ports: + - "16686:16686" + - "14268" + - "14250" + # Collector + collector-gateway: + image: otel/opentelemetry-collector:latest + volumes: + - ./collector-gateway.yaml:/etc/collector-gateway.yaml + command: ["--config=/etc/collector-gateway.yaml"] + ports: + - "1888:1888" # pprof extension + - "13133:13133" # health_check extension + - "4317:4317" # OTLP gRPC receiver + - "4318:4318" # OTLP HTTP receiver + - "55670:55679" # zpages extension + depends_on: + - jaeger-all-in-one