File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
examples/instrumentation-quickstart Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ services:
2121 - OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
2222 - OTEL_SERVICE_NAME=otel-quickstart-spring-boot
2323 - OTEL_METRIC_EXPORT_INTERVAL=5000
24+ - OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
2425 volumes :
2526 - logs:/var/log:rw
2627 ports :
2728 - 8080
2829 depends_on :
2930 - " otelcol"
3031 otelcol :
31- image : otel/opentelemetry-collector-contrib:0.107.0
32+ image : otel/opentelemetry-collector-contrib:0.115.1
3233 volumes :
3334 - ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
3435 - logs:/var/log:ro
Original file line number Diff line number Diff line change @@ -109,6 +109,14 @@ processors:
109109 detectors : ["env", "gcp"]
110110
111111service :
112+ telemetry :
113+ metrics :
114+ readers :
115+ - pull :
116+ exporter :
117+ prometheus :
118+ host : ' 0.0.0.0'
119+ port : 8888
112120 pipelines :
113121 traces :
114122 receivers : ["otlp"]
You can’t perform that action at this time.
0 commit comments