File tree Expand file tree Collapse file tree 3 files changed +22
-13
lines changed
samples/instrumentation-quickstart Expand file tree Collapse file tree 3 files changed +22
-13
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,15 @@ services:
21
21
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4318
22
22
- OTEL_SERVICE_NAME=otel-quickstart-python
23
23
- OTEL_METRIC_EXPORT_INTERVAL=5000
24
+ - OTEL_EXPORTER_OTLP_METRICS_DEFAULT_HISTOGRAM_AGGREGATION=base2_exponential_bucket_histogram
24
25
volumes :
25
26
- logs:/var/log:rw
26
27
depends_on :
27
28
- " otelcol"
28
29
ports :
29
30
- 8080
30
31
otelcol :
31
- image : otel/opentelemetry-collector-contrib:0.92.0
32
+ image : otel/opentelemetry-collector-contrib:0.115.1
32
33
volumes :
33
34
- ./otel-collector-config.yaml:/etc/otelcol-contrib/config.yaml:ro
34
35
- logs:/var/log:ro
Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ receivers:
85
85
exporters :
86
86
# Export logs and traces using the standard googelcloud exporter
87
87
googlecloud :
88
- project : $GOOGLE_CLOUD_PROJECT
88
+ project : ${ GOOGLE_CLOUD_PROJECT}
89
89
log :
90
90
default_log_name : " opentelemetry.io/collector-exported-log"
91
91
# Export metrics to Google Managed service for Prometheus
92
92
googlemanagedprometheus :
93
- project : $GOOGLE_CLOUD_PROJECT
93
+ project : ${ GOOGLE_CLOUD_PROJECT}
94
94
95
95
processors :
96
96
# Batch telemetry together to more efficiently send to GCP
@@ -111,6 +111,14 @@ processors:
111
111
detectors : ["env", "gcp"]
112
112
113
113
service :
114
+ telemetry :
115
+ metrics :
116
+ readers :
117
+ - pull :
118
+ exporter :
119
+ prometheus :
120
+ host : ' 0.0.0.0'
121
+ port : 8888
114
122
pipelines :
115
123
traces :
116
124
receivers : ["otlp"]
Original file line number Diff line number Diff line change 1
1
# Dependencies require for the instrumentation sample
2
- flask == 3.0.2
3
- requests == 2.31.0
4
- opentelemetry-api == 1.24 .0
5
- opentelemetry-sdk == 1.24 .0
6
- opentelemetry-exporter-otlp-proto-http == 1.24 .0
7
- opentelemetry-instrumentation-flask == 0.45b0
8
- opentelemetry-instrumentation-requests == 0.45b0
9
- opentelemetry-instrumentation-logging == 0.45b0
10
- python-json-logger == 2.0.7
11
- gunicorn == 22 .0.0
2
+ flask == 3.1.0
3
+ requests == 2.32.3
4
+ opentelemetry-api == 1.29 .0
5
+ opentelemetry-sdk == 1.29 .0
6
+ opentelemetry-exporter-otlp-proto-http == 1.29 .0
7
+ opentelemetry-instrumentation-flask == 0.50b0
8
+ opentelemetry-instrumentation-requests == 0.50b0
9
+ opentelemetry-instrumentation-logging == 0.50b0
10
+ python-json-logger == 3. 2.0
11
+ gunicorn == 23 .0.0
You can’t perform that action at this time.
0 commit comments