Skip to content

Commit

Permalink
chore: update configs
Browse files Browse the repository at this point in the history
update chunks size and idle times
  • Loading branch information
jlangy committed Mar 19, 2024
1 parent 118517d commit 4843e2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
10 changes: 9 additions & 1 deletion helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ loki:
retention_delete_delay: 1h
retention_delete_worker_count: 150

ingester:
chunk_target_size: 5242880
max_chunk_age: 2h
chunk_idle_period: 2h
chunk_encoding: snappy

# see https://grafana.com/docs/loki/latest/configuration/#limits_config
limits_config:
enforce_metric_name: false
Expand All @@ -36,7 +42,7 @@ loki:
max_cache_freshness_per_query: 1m
split_queries_by_interval: 30m
max_query_parallelism: 32
max_query_series: 2000
max_query_series: 3000
max_query_length: 721h
ingestion_rate_mb: 10
retention_period: 744h # 31 days
Expand Down Expand Up @@ -88,6 +94,8 @@ loki:
http_server_read_timeout: 500s
http_server_write_timeout: 500s
http_server_idle_timeout: 500s
grpc_server_max_recv_msg_size: 26214400
grpc_server_max_send_msg_size: 26214400

serviceAccount:
create: false
Expand Down
14 changes: 2 additions & 12 deletions helm/promtail/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,11 @@ promtail:
- json:
expressions:
timestamp: '"@timestamp"'
level: level
- labels:
level:
- timestamp:
format: RFC3339Nano
source: timestamp
- match:
selector: '{job="keycloak"}'
stages:
- regex:
expression: "type=(?P<type>\\S+),.*realmId=(?P<realm_id>\\S+),.*clientId=(?P<client_id>\\S+),"
- labels:
event_type: type
realm_id:
client_id:
- labeldrop:
- filename
persistentVolume:
size: 100Mi
Expand Down

0 comments on commit 4843e2c

Please sign in to comment.