копать или что можно сделать ?
Jun 12 16:06:52 vmi630082.contaboserver.dd loki[111495]: level=warn ts=2023-06-12T10:06:52.872725228Z caller=grpc_logging.go:38 method=/logproto.Pusher/Push duration=634.034µs err="rpc error: code = Code(429) desc = Maximum active stream limit exceeded, reduce the number of active streams (reduce labels or reduce label values), or contact your Loki administrator to see if the limit can be increased" msg="gRPC\n"
Сам Loki установлен на машину локально.
OS: Linux, Ubuntu 20.04
loki-local-config.yaml
auth_enabled: false
server:
http_listen_port: 3100
http_server_read_timeout: 10m
http_server_write_timeout: 10m
grpc_listen_port: 9096
grpc_server_max_concurrent_streams: 1000
grpc_server_max_recv_msg_size: 104857600
grpc_server_max_send_msg_size: 104857600
common:
path_prefix: /opt/loki
storage:
filesystem:
chunks_directory: /opt/loki/chunks
rules_directory: /opt/loki/rules
replication_factor: 1
ring:
instance_addr: 127.0.0.1
kvstore:
store: inmemory
limits_config:
retention_period: 168h
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
max_cache_freshness_per_query: 10m
split_queries_by_interval: 15m
# for big logs tune
per_stream_rate_limit: 1G
per_stream_rate_limit_burst: 2G
cardinality_limit: 200000
ingestion_burst_size_mb: 1000
ingestion_rate_mb: 10000
max_entries_limit_per_query: 1000000
max_label_value_length: 2048
max_label_name_length: 1024
max_label_names_per_series: 30
max_global_streams_per_user: 15000
max_streams_per_user: 100000
schema_config:
configs:
- from: 2020-10-24
store: boltdb-shipper
object_store: filesystem
schema: v11
index:
prefix: index_
period: 24h
table_manager:
retention_deletes_enabled: true
retention_period: 48h
compactor:
working_directory: /var/lib/loki/retention
shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150
ruler:
alertmanager_url: http://localhost:9093
Было такое. Решали сокращением количества лейблов, которое навешивается на лог при разборе лога. А ещё есть чат https://t.me/ru_loki может там что подскажут
Спасибо большое!
Обсуждают сегодня