From 5dbbbfd9edea9aad415272e58b9da14ec44fd6fa Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Tue, 14 Jan 2025 02:02:37 +0000 Subject: [PATCH 1/2] update collector image to v1.115.1 --- examples/instrumentation-quickstart/docker-compose.yaml | 2 +- .../instrumentation-quickstart/otel-collector-config.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/instrumentation-quickstart/docker-compose.yaml b/examples/instrumentation-quickstart/docker-compose.yaml index 77d8e6ce..a0ba271e 100644 --- a/examples/instrumentation-quickstart/docker-compose.yaml +++ b/examples/instrumentation-quickstart/docker-compose.yaml @@ -28,7 +28,7 @@ services: depends_on: - "otelcol" otelcol: - image: otel/opentelemetry-collector-contrib:0.107.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/examples/instrumentation-quickstart/otel-collector-config.yaml b/examples/instrumentation-quickstart/otel-collector-config.yaml index 777bf1cb..1f44944b 100644 --- a/examples/instrumentation-quickstart/otel-collector-config.yaml +++ b/examples/instrumentation-quickstart/otel-collector-config.yaml @@ -109,6 +109,14 @@ processors: detectors: ["env", "gcp"] service: + telemetry: + metrics: + readers: + - pull: + exporter: + prometheus: + host: '0.0.0.0' + port: 8888 pipelines: traces: receivers: ["otlp"] From 1c2b262ff9fa43b42c23a6f14a61d3c8fea39266 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Tue, 14 Jan 2025 02:30:06 +0000 Subject: [PATCH 2/2] use exponential histograms in the quickstart-sample --- examples/instrumentation-quickstart/docker-compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/instrumentation-quickstart/docker-compose.yaml b/examples/instrumentation-quickstart/docker-compose.yaml index a0ba271e..d4dbebaf 100644 --- a/examples/instrumentation-quickstart/docker-compose.yaml +++ b/examples/instrumentation-quickstart/docker-compose.yaml @@ -21,6 +21,7 @@ services: - OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317 - OTEL_SERVICE_NAME=otel-quickstart-spring-boot - OTEL_METRIC_EXPORT_INTERVAL=5000 + - OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM volumes: - logs:/var/log:rw ports: