Skip to content

Commit 7b1f662

Browse files
committed
chore: add delta temporality into local otel setup
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
1 parent bdd0ecf commit 7b1f662

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.docker/docker-compose-monitoring.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
- "5778:5778" # HTTP
5858

5959
otel-collector:
60-
image: otel/opentelemetry-collector-contrib:0.100.0
60+
image: otel/opentelemetry-collector-contrib:0.146.1
6161
ports:
6262
- "4317:4317" # OTLP gRPC receiver
6363
- "4318:4318" # OTLP Http receiver

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4317
155155
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4317
156156
OTEL_METRICS_EXPORT_INTERVAL_MS=5000
157157
OTEL_METRICS_ENABLED=true
158-
PROMETHEUS_METRICS_ENABLED=true
159-
158+
OTEL_METRICS_TEMPORALITY=DELTA
159+
PROMETHEUS_METRICS_ENABLED=false
160160

161161
LOGFLARE_ENABLED=false
162162
LOGFLARE_API_KEY=api_key

monitoring/grafana/dashboards/storage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5576,7 +5576,7 @@
55765576
},
55775577
"timepicker": {},
55785578
"timezone": "browser",
5579-
"title": "Storage API - OTel Metrics",
5580-
"uid": "storage-otel-metrics",
5579+
"title": "Storage API - OTel Metrics - Pull",
5580+
"uid": "storage-otel-pull-metrics",
55815581
"version": 1
55825582
}

monitoring/otel/config/otel-collector-config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ processors:
99
check_interval: 1s
1010
limit_percentage: 70
1111
spike_limit_percentage: 20
12+
deltatocumulative:
13+
max_stale: 2m # how long to keep inactive streams
14+
max_streams: 50000 # how many streams to keep
1215
batch/traces:
1316
send_batch_size: 10000
1417
timeout: 10s
@@ -169,7 +172,13 @@ service:
169172
metrics/otel:
170173
receivers: [otlp]
171174
processors:
172-
[memory_limiter, transform/add_resource_attributes, metricstransform/host, batch/metrics]
175+
[
176+
memory_limiter,
177+
deltatocumulative,
178+
transform/add_resource_attributes,
179+
metricstransform/host,
180+
batch/metrics,
181+
]
173182
exporters: [prometheusremotewrite]
174183
metrics/prometheus:
175184
receivers: [otlp]

0 commit comments

Comments
 (0)