diff --git a/opentelemetry/instrumentation/docker-compose.yaml b/opentelemetry/instrumentation/docker-compose.yaml index bc7c526ab9..c7a81e6ad7 100644 --- a/opentelemetry/instrumentation/docker-compose.yaml +++ b/opentelemetry/instrumentation/docker-compose.yaml @@ -7,12 +7,13 @@ services: - OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4318 - OTEL_SERVICE_NAME=otel-quickstart-go - OTEL_GO_X_EXEMPLAR=true + - OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM volumes: - logs:/var/log:rw depends_on: - "otelcol" otelcol: - image: otel/opentelemetry-collector-contrib:0.105.0 + image: otel/opentelemetry-collector-contrib:0.115.1 volumes: - ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro - logs:/var/log:ro diff --git a/opentelemetry/instrumentation/otel-collector-config.yaml b/opentelemetry/instrumentation/otel-collector-config.yaml index 75e8fe328b..f2d891adfb 100644 --- a/opentelemetry/instrumentation/otel-collector-config.yaml +++ b/opentelemetry/instrumentation/otel-collector-config.yaml @@ -90,6 +90,14 @@ processors: detectors: ["env", "gcp"] service: + telemetry: + metrics: + readers: + - pull: + exporter: + prometheus: + host: '0.0.0.0' + port: 8888 pipelines: traces: receivers: ["otlp"]