Skip to content

Commit 038be52

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 786a5d9 + d0d9154 commit 038be52

File tree

6 files changed

+36
-15
lines changed

6 files changed

+36
-15
lines changed

services/jaeger/docker-compose.yml.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
memory: 64M
3434
cpus: "0.1"
3535
otel-collector:
36-
image: otel/opentelemetry-collector-contrib:0.123.0
36+
image: otel/opentelemetry-collector-contrib:0.135.0
3737
configs:
3838
- source: opentelemetry-collector-config
3939
target: /etc/otel/config.yaml

services/jaeger/opentelemetry-collector-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ processors:
3131
error_mode: ignore
3232
traces:
3333
span:
34+
- attributes["http.route"] == "/health"
35+
- attributes["http.target"] == "/socket.io/"
36+
- attributes["url.path"] == "/socket.io/"
37+
- IsMatch(attributes["server.address"], "^monitoring..*")
38+
- attributes["net.peer.name"] == "/var/run/docker.sock"
3439
- attributes["http.route"] == "healthcheck_readiness_probe"
3540
- attributes["http.route"] == "healthcheck_liveness_probe"
3641
- attributes["http.target"] == "/metrics" and IsMatch(attributes["http.user_agent"], ".*Prometheus.*") == true

services/logging/docker-compose.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ services:
138138
start_period: 40s
139139

140140
loki:
141-
image: grafana/loki:3.5.0
141+
image: grafana/loki:3.5.4
142142
configs:
143143
- source: loki_config
144144
target: /etc/loki/loki.yaml
@@ -160,8 +160,8 @@ services:
160160
delay: 5s
161161
resources:
162162
limits:
163-
cpus: '1.0'
164-
memory: 2G
163+
cpus: '2.0'
164+
memory: 4G
165165
reservations:
166166
cpus: '0.5'
167167
memory: 1G

services/logging/loki.yaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
auth_enabled: false
22

33
server:
4+
log_level: info
45
http_listen_port: 3100
5-
6+
grpc_server_max_recv_msg_size: 16777216 # 16MB (increase from 4MB default)
7+
grpc_server_max_send_msg_size: 16777216 # 16MB
68
common:
79
path_prefix: /tmp/loki # Required for internal directories
810

@@ -29,16 +31,30 @@ storage_config:
2931
active_index_directory: /tmp/loki/tsdb-index # Local cache for index metadata
3032
cache_location: /tmp/loki/tsdb-cache # Local cache for tsdb
3133
aws:
32-
s3: s3://${S3_BUCKET_NAME_LOKI}
34+
bucketnames: ${S3_BUCKET_NAME_LOKI}
3335
region: ${S3_REGION_LOKI}
3436
access_key_id: ${S3_ACCESS_KEY_LOKI}
3537
secret_access_key: ${S3_SECRET_KEY_LOKI}
36-
s3forcepathstyle: ${S3_FORCE_PATH_STYLE_LOKI} # Set to true if using MinIO or S3-compatible API; optional for AWS
37-
endpoint: ${S3_ENDPOINT_LOKI} # Optional; use for non-default endpoints
38+
endpoint: ${S3_ENDPOINT_LOKI}
39+
s3forcepathstyle: true
3840

3941
compactor:
4042
working_directory: /tmp/loki/compactor
4143
retention_enabled: false
4244

4345
limits_config:
46+
reject_old_samples: true
47+
reject_old_samples_max_age: 4h
48+
max_cache_freshness_per_query: 10m
49+
split_queries_by_interval: 15m
50+
# for big logs tune
51+
per_stream_rate_limit: 512M
52+
per_stream_rate_limit_burst: 1024M
53+
cardinality_limit: 200000
54+
ingestion_burst_size_mb: 1000
55+
ingestion_rate_mb: 10000
56+
max_entries_limit_per_query: 1000000
57+
max_label_value_length: 20480
58+
max_label_name_length: 10240
59+
max_label_names_per_series: 300
4460
retention_period: ${LOKI_RETENTION_PERIOD} # must be >= 24h and multiple of index period (24h)

services/monitoring/docker-compose.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ services:
372372
memory: 32M
373373
cpus: "0.1"
374374
tempo:
375-
image: grafana/tempo:2.7.2
375+
image: grafana/tempo:2.8.2
376376
command: "-target=scalable-single-binary -config.file=/etc/tempo.yaml"
377377
configs:
378378
- source: tempo_config
@@ -393,8 +393,8 @@ services:
393393
- traefik.http.routers.tempo.middlewares=ops_whitelist_ips@swarm, ops_gzip@swarm, tempo_replace_regex
394394
resources:
395395
limits:
396-
memory: 2000M
397-
cpus: "2.0"
396+
memory: 4G
397+
cpus: "5.0"
398398

399399
configs:
400400
alertmanager_config:

services/monitoring/tempo_config.yaml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ distributor:
1212
log_discarded_spans:
1313
enabled: true
1414
include_all_attributes: false
15-
#ingester:
16-
# max_block_duration: 5m # cut the headblock when this much time passes. this should probably be left alone normally
17-
15+
ingester:
16+
max_block_duration: 5m # cut the headblock when this much time passes. this should probably be left alone normally
17+
trace_idle_period: 301s
1818
compactor:
1919
compaction:
2020
block_retention: 96h # overall Tempo trace retention.
@@ -59,7 +59,7 @@ storage:
5959
querier:
6060
frontend_worker:
6161
frontend_address: 0.0.0.0:9095
62-
62+
stream_over_http_enabled: true
6363
overrides:
6464
defaults:
6565
metrics_generator:

0 commit comments

Comments
 (0)