您的位置:首页 > 娱乐 > 八卦 > 分布式日志采集 Loki 配置及部署详细

分布式日志采集 Loki 配置及部署详细

2024/12/23 15:33:27 来源:https://blog.csdn.net/qq_24598601/article/details/140148696  浏览:    关键词:分布式日志采集 Loki 配置及部署详细

分布式日志采集 Loki 配置及部署详细

  • Loki 部署模式
  • Loki 读写分离部署配置
  • Loki 配置大全

Loki 部署模式

(1)可扩展部署模式
Loki 的简单可扩展部署模式是最简单的部署方式、首选方式。可扩展到每天几TB的日志,但是如果超出这个范围,建议部署微服务模式。
简单可扩展部署模式是将执行路径分为读取、写入和后端目标。这些目标可以独立扩展,让您可以自定义 Loki 部署,以满足日志摄取和日志查询的业务需求,从而使您的基础设施成本更好地匹配 Loki 的使用方式。
在这里插入图片描述

简单可扩展模式下的三个执行路径均通过在启动时向 Loki 附加以下参数来激活:

  • -target=write- 写入目标是有状态的,并由 Kubernetes StatefulSet 控制。它包含以下组件: – 分配器 – 摄取器
  • -target=read- 读取目标是无状态的,可以作为可自动扩展的 Kubernetes 部署运行(请注意,在官方 helm 图表中,它当前部署为有状态集)。它包含以下组件: – 查询前端 – 查询器
  • -target=backend- 后端目标是有状态的,并由 Kubernetes StatefulSet 控制。包含以下组件: – 压缩器 – 索引网关 – 查询调度器 – 标尺
    简单的可扩展部署模式需要在 Loki 前面部署反向代理,以将客户端 API 请求定向到读取或写入节点。 Loki Helm 图表包含使用 Nginx 的默认反向代理配置。

(2)单片模式
最简单的操作模式是单体部署模式。您可以通过设置-target=all命令行参数来启用整体模式。此模式每天最多约 20GB 的小型读/写量非常有用。
将 Loki 的所有微服务组件作为单个二进制或 Docker 映像在单个进程内运行。
在这里插入图片描述

可以通过使用memberlist_config配置和共享对象存储运行两个 Loki 实例并将设为replication_factor来配置高可用性3
查询并行化受到实例数量和文件max_query_parallelism中定义的设置的限制loki.yaml

(3)微服务模式
微服务部署模式将 Loki 的组件作为不同的进程运行。每个进程的调用都指定其 target。
将组件作为单独的微服务运行可提供更大的粒度,让您可以将每个组件扩展为单独的微服务,以更好地匹配您的特定用例。
微服务模式部署可以使 Loki 安装更加高效。然而,它们的设置和维护也是最复杂的。
微服务模式仅建议用于非常大的 Loki 集群或需要更精确地控制扩展和集群操作的操作员。
微服务模式专为 Kubernetes 部署而设计。

部署可参考地址:https://grafana.com/docs/loki/latest/get-started/deployment-modes/。

Loki 读写分离部署配置

(1)容器化读写分离参考
参考:https://github.com/grafana/loki/blob/v2.9.4/examples/getting-started/docker-compose.yaml

docker-compose.yaml
---
version: "3"networks:loki:services:read:image: grafana/loki:2.9.4command: "-config.file=/etc/loki/config.yaml -target=read"ports:- 3101:3100- 7946- 9095volumes:- ./loki-config.yaml:/etc/loki/config.yamldepends_on:- miniohealthcheck:test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]interval: 10stimeout: 5sretries: 5networks: &loki-dnsloki:aliases:- lokiwrite:image: grafana/loki:2.9.4command: "-config.file=/etc/loki/config.yaml -target=write"ports:- 3102:3100- 7946- 9095volumes:- ./loki-config.yaml:/etc/loki/config.yamlhealthcheck:test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3100/ready || exit 1" ]interval: 10stimeout: 5sretries: 5depends_on:- minionetworks:<<: *loki-dnspromtail:image: grafana/promtail:2.9.4volumes:- ./promtail-local-config.yaml:/etc/promtail/config.yaml:ro- /var/run/docker.sock:/var/run/docker.sockcommand: -config.file=/etc/promtail/config.yamldepends_on:- gatewaynetworks:- lokiminio:image: minio/minioentrypoint:- sh- -euc- |mkdir -p /data/loki-data && \mkdir -p /data/loki-ruler && \minio server /dataenvironment:- MINIO_ROOT_USER=loki- MINIO_ROOT_PASSWORD=supersecret- MINIO_PROMETHEUS_AUTH_TYPE=public- MINIO_UPDATE=offports:- 9000volumes:- ./.data/minio:/datahealthcheck:test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]interval: 15stimeout: 20sretries: 5networks:- lokigrafana:image: grafana/grafana:latestenvironment:- GF_PATHS_PROVISIONING=/etc/grafana/provisioning- GF_AUTH_ANONYMOUS_ENABLED=true- GF_AUTH_ANONYMOUS_ORG_ROLE=Admindepends_on:- gatewayentrypoint:- sh- -euc- |mkdir -p /etc/grafana/provisioning/datasourcescat <<EOF > /etc/grafana/provisioning/datasources/ds.yamlapiVersion: 1datasources:- name: Lokitype: lokiaccess: proxyurl: http://gateway:3100jsonData:httpHeaderName1: "X-Scope-OrgID"secureJsonData:httpHeaderValue1: "tenant1"EOF/run.shports:- "3000:3000"healthcheck:test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1" ]interval: 10stimeout: 5sretries: 5networks:- lokigateway:image: nginx:latestdepends_on:- read- writeentrypoint:- sh- -euc- |cat <<EOF > /etc/nginx/nginx.confuser  nginx;worker_processes  5;  ## Default: 1events {worker_connections   1000;}http {resolver 127.0.0.11;server {listen             3100;location = / {return 200 'OK';auth_basic off;}location = /api/prom/push {proxy_pass       http://write:3100\$$request_uri;}location = /api/prom/tail {proxy_pass       http://read:3100\$$request_uri;proxy_set_header Upgrade \$$http_upgrade;proxy_set_header Connection "upgrade";}location ~ /api/prom/.* {proxy_pass       http://read:3100\$$request_uri;}location = /loki/api/v1/push {proxy_pass       http://write:3100\$$request_uri;}location = /loki/api/v1/tail {proxy_pass       http://read:3100\$$request_uri;proxy_set_header Upgrade \$$http_upgrade;proxy_set_header Connection "upgrade";}location ~ /loki/api/.* {proxy_pass       http://read:3100\$$request_uri;}}}EOF/docker-entrypoint.sh nginx -g "daemon off;"ports:- "3100:3100"healthcheck:test: ["CMD", "service", "nginx", "status"]interval: 10stimeout: 5sretries: 5networks:- lokiflog:image: mingrammer/flogcommand: -f json -d 1s -lnetworks:- lokiloki-config.yaml
---
server:http_listen_port: 3100
memberlist:join_members:- loki:7946
schema_config:configs:- from: 2021-08-01store: boltdb-shipperobject_store: s3schema: v11index:prefix: index_period: 24h
common:path_prefix: /lokireplication_factor: 1storage:s3:endpoint: minio:9000insecure: truebucketnames: loki-dataaccess_key_id: lokisecret_access_key: supersecrets3forcepathstyle: truering:kvstore:store: memberlist
ruler:storage:s3:bucketnames: loki-ruler

(2)二进制读实例部署配置

# 读实例部署
./loki-2.9.4 -target=read -config.file=loki-local-config.yaml \
-log-config-reverse-order \
--log.level="error"# 配置文件
auth_enabled: falsememberlist:join_members:- 10.51.23.204:7946- 10.51.23.221:7946server:http_listen_address: 0.0.0.0http_listen_port: 3100grpc_listen_address: 0.0.0.0grpc_listen_port: 9096graceful_shutdown_timeout: 30shttp_server_read_timeout: 5mhttp_server_write_timeout: 30shttp_server_idle_timeout: 2mlog_level: errorgrpc_server_max_recv_msg_size: 5242880grpc_server_keepalive_timeout: 5minternal_server:graceful_shutdown_timeout: 30shttp_server_read_timeout: 5mhttp_server_write_timeout: 30shttp_server_idle_timeout: 2mgrpc_server_keepalive_timeout: 5mcommon:path_prefix: /home/lokistorage:s3:endpoint: http://10.51.23.206:9000access_key_id: minioadminsecret_access_key: minioadmin123bucketnames: lokis3forcepathstyle: truereplication_factor: 1ring:kvstore:store: memberlistlimits_config:query_timeout: 5mmax_streams_per_user: 0max_global_streams_per_user: 20000max_query_parallelism: 2query_scheduler:max_outstanding_requests_per_tenant: 10000query_range:cache_results: trueresults_cache:cache:embedded_cache:enabled: truemax_size_mb: 5ttl: 30mindex_stats_results_cache:cache:embedded_cache:enabled: truemax_size_mb: 5ttl: 30mstorage_config:tsdb_shipper:active_index_directory: /home/loki/tsdb-shipper-activecache_location: /home/loki/tsdb-shipper-cachecache_ttl: 24hchunk_store_config:chunk_cache_config:enable_fifocache: falseembedded_cache:max_size_mb: 5ttl: 30mschema_config:configs:- from: 2020-10-24store: tsdbobject_store: awsschema: v12index:prefix: loki_index_period: 24hingester:wal:enabled: truedir: /home/loki/walanalytics:reporting_enabled: false# 写实例部署
./loki-2.9.4 -target=write -config.file=loki-local-config.yaml \
-log-config-reverse-order \
--log.level="error"# 配置文件和读保持一致

Loki 配置大全


# Loki Config
# (version=2.9.4, branch=HEAD, revision=f599ebc535)
# 指定运行的组件,支持值:all, compactor, distributor, ingester, querier, query-scheduler, ingester-querier, query-frontend, index-gateway, ruler, table-manager, read, write
target: all
auth_enabled:
http_prefix: ""
ballast_bytes: 0
use_buffered_logger: true
use_sync_logger: true
# 配置服务
server:http_listen_network: tcphttp_listen_address: ""http_listen_port: 3100http_listen_conn_limit: 0grpc_listen_network: tcpgrpc_listen_address: ""grpc_listen_port: 9096grpc_listen_conn_limit: 0tls_cipher_suites: ""tls_min_version: ""http_tls_config:cert_file: ""key_file: ""client_auth_type: ""client_ca_file: ""grpc_tls_config:cert_file: ""key_file: ""client_auth_type: ""client_ca_file: ""register_instrumentation: truegraceful_shutdown_timeout: 30shttp_server_read_timeout: 30shttp_server_write_timeout: 30shttp_server_idle_timeout: 2m0sgrpc_server_max_recv_msg_size: 5242880grpc_server_max_send_msg_size: 4194304grpc_server_max_concurrent_streams: 100grpc_server_max_connection_idle: 2562047h47m16.854775807sgrpc_server_max_connection_age: 2562047h47m16.854775807sgrpc_server_max_connection_age_grace: 2562047h47m16.854775807sgrpc_server_keepalive_time: 2h0m0sgrpc_server_keepalive_timeout: 20sgrpc_server_min_time_between_pings: 10sgrpc_server_ping_without_stream_allowed: truelog_format: logfmtlog_level: errorlog_source_ips_enabled: falselog_source_ips_header: ""log_source_ips_regex: ""log_request_headers: falselog_request_at_info_level_enabled: falselog_request_exclude_headers_list: ""http_path_prefix: ""
internal_server:http_listen_network: tcphttp_listen_address: localhosthttp_listen_port: 3101http_listen_conn_limit: 0grpc_listen_network: ""grpc_listen_address: ""grpc_listen_port: 0grpc_listen_conn_limit: 0tls_cipher_suites: ""tls_min_version: ""http_tls_config:cert_file: ""key_file: ""client_auth_type: ""client_ca_file: ""grpc_tls_config:cert_file: ""key_file: ""client_auth_type: ""client_ca_file: ""register_instrumentation: falsegraceful_shutdown_timeout: 30shttp_server_read_timeout: 30shttp_server_write_timeout: 30shttp_server_idle_timeout: 2m0sgrpc_server_max_recv_msg_size: 0grpc_server_max_send_msg_size: 0grpc_server_max_concurrent_streams: 0grpc_server_max_connection_idle: 0sgrpc_server_max_connection_age: 0sgrpc_server_max_connection_age_grace: 0sgrpc_server_keepalive_time: 0sgrpc_server_keepalive_timeout: 0sgrpc_server_min_time_between_pings: 0sgrpc_server_ping_without_stream_allowed: falselog_format: ""log_level: ""log_source_ips_enabled: falselog_source_ips_header: ""log_source_ips_regex: ""log_request_headers: falselog_request_at_info_level_enabled: falselog_request_exclude_headers_list: ""http_path_prefix: ""enable: false# 分配器配置
distributor:ring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0sinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_enable_ipv6: falserate_store:max_request_parallelism: 200stream_rate_update_interval: 1singester_request_timeout: 500msdebug: falsewrite_failures_logging:rate: 1KBadd_insights_label: false# 查询器配置
querier:tail_max_duration: 1h0m0squery_ingesters_within: 3h0m0sengine:timeout: 5m0smax_look_back_period: 30smax_concurrent: 10query_store_only: falsequery_ingester_only: falsemulti_tenant_queries_enabled: falsequery_timeout: 0sper_request_limits_enabled: false# 查询调度器
query_scheduler:max_outstanding_requests_per_tenant: 10000max_queue_hierarchy_levels: 3querier_forget_delay: 0sgrpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5suse_scheduler_ring: truescheduler_ring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0stokens_file_path: ""zone_awareness_enabled: falseinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_availability_zone: ""instance_enable_ipv6: false# 前端模块
frontend:log_queries_longer_than: 0smax_body_size: 10485760query_stats_enabled: falsemax_outstanding_per_tenant: 2048querier_forget_delay: 0sscheduler_address: ""scheduler_dns_lookup_period: 10sscheduler_worker_concurrency: 5grpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5sgraceful_shutdown_timeout: 5m0sinstance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loaddress: 127.0.0.1port: 0compress_responses: falsedownstream_url: ""tail_proxy_url: ""tail_tls_config:tls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""query_range:split_queries_by_interval: 0salign_queries_with_step: falseresults_cache:cache:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:enabled: truemax_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: frontend.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500compression: ""cache_results: truemax_retries: 5parallelise_shardable_queries: trueforward_headers_list: []required_query_response_format: jsoncache_index_stats_results: falseindex_stats_results_cache:cache:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:enabled: truemax_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: frontend.index-stats-results-cache.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500compression: ""# 规则
ruler:external_url: ""datasource_uid: ""ruler_client:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5sevaluation_interval: 1m0spoll_interval: 1m0sstorage:type: s3azure:environment: AzureGlobalaccount_name: ""account_key: ""container_name: lokiendpoint_suffix: ""use_managed_identity: falseuse_federated_token: falseuser_assigned_id: ""use_service_principal: falseclient_id: ""client_secret: ""tenant_id: ""chunk_delimiter: '-'download_buffer_size: 512000upload_buffer_size: 256000upload_buffer_count: 1request_timeout: 30smax_retries: 5min_retry_delay: 10msmax_retry_delay: 500msalibabacloud:bucket: ""endpoint: ""access_key_id: ""secret_access_key: ""gcs:bucket_name: ""service_account: ""chunk_buffer_size: 0request_timeout: 0senable_opencensus: trueenable_http2: trues3:s3: ""s3forcepathstyle: truebucketnames: lokiendpoint: http://10.51.23.206:9000region: ""access_key_id: minioadminsecret_access_key: '********'session_token: ""insecure: falsesse_encryption: falsehttp_config:timeout: 0sidle_conn_timeout: 1m30sresponse_header_timeout: 0sinsecure_skip_verify: falseca_file: ""signature_version: v4storage_class: STANDARDsse:type: ""kms_key_id: ""kms_encryption_context: ""backoff_config:min_period: 100msmax_period: 3smax_retries: 5bos:bucket_name: ""endpoint: bj.bcebos.comaccess_key_id: ""secret_access_key: ""swift:auth_version: 0auth_url: ""internal: falseusername: ""user_domain_name: ""user_domain_id: ""user_id: ""password: ""domain_id: ""domain_name: ""project_id: ""project_name: ""project_domain_id: ""project_domain_name: ""region_name: ""container_name: ""max_retries: 3connect_timeout: 10srequest_timeout: 5scos:forcepathstyle: falsebucketnames: ""endpoint: ""region: ""access_key_id: ""secret_access_key: ""http_config:idle_conn_timeout: 1m30sresponse_header_timeout: 0sbackoff_config:min_period: 100msmax_period: 3smax_retries: 5api_key: ""service_instance_id: ""auth_endpoint: https://iam.cloud.ibm.com/identity/tokencr_token_file_path: ""trusted_profile_name: ""trusted_profile_id: ""local:directory: ""rule_path: /home/loki/rules-tempalertmanager_url: ""enable_alertmanager_discovery: falsealertmanager_refresh_interval: 1m0senable_alertmanager_v2: falsenotification_queue_capacity: 10000notification_timeout: 10salertmanager_client:tls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""basic_auth_username: ""basic_auth_password: ""type: Bearerfor_outage_tolerance: 1h0m0sfor_grace_period: 10m0sresend_delay: 1m0senable_sharding: falsesharding_strategy: defaultsharding_algo: by-groupsearch_pending_for: 5m0sring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0sinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_enable_ipv6: falsenum_tokens: 128flush_period: 1m0senable_api: trueenabled_tenants: ""disabled_tenants: ""query_stats_enabled: falsedisable_rule_group_label: falsewal:tenant: ""name: ""remotewrite: []dir: ruler-waltruncate_frequency: 1h0m0smin_age: 5m0smax_age: 4h0m0swal_cleaner:min_age: 12h0m0sdeprecatedperiod: 0sremote_write:enabled: falseconfig_refresh_period: 10sevaluation:mode: localmax_jitter: 0s# 摄取器客户端
ingester_client:pool_config:client_cleanup_period: 15shealth_check_ingesters: trueremote_timeout: 1sremote_timeout: 5sgrpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5s# 摄取器
ingester:lifecycler:ring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_timeout: 1m0sreplication_factor: 1zone_awareness_enabled: falseexcluded_zones: ""num_tokens: 128heartbeat_period: 15sheartbeat_timeout: 1m0sobserve_period: 0sjoin_after: 0smin_ready_duration: 15sinterface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loenable_inet6: falsefinal_sleep: 0stokens_file_path: ""availability_zone: ""unregister_on_shutdown: truereadiness_check_ring_health: trueaddress: 127.0.0.1port: 0id: master01concurrent_flushes: 32flush_check_period: 30sflush_op_timeout: 10m0schunk_retain_period: 0schunk_idle_period: 30m0schunk_block_size: 262144chunk_target_size: 1572864chunk_encoding: gzipmax_chunk_age: 2h0m0sautoforget_unhealthy: falsesync_period: 0ssync_min_utilization: 0max_returned_stream_errors: 10query_store_max_look_back_period: 0swal:enabled: truedir: /home/loki/walcheckpoint_duration: 5m0sflush_on_shutdown: truereplay_memory_ceiling: 4GBindex_shards: 32max_dropped_streams: 10shutdown_marker_path: ""# 索引网关哦配置
index_gateway:mode: simplering:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0stokens_file_path: ""zone_awareness_enabled: falseinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_availability_zone: ""instance_enable_ipv6: falsereplication_factor: 1# 存储配置
storage_config:alibabacloud:bucket: ""endpoint: ""access_key_id: ""secret_access_key: ""aws:dynamodb:dynamodb_url: ""api_limit: 2throttle_limit: 10metrics:url: ""target_queue_length: 100000scale_up_factor: 1.3ignore_throttle_below: 1queue_length_query: sum(avg_over_time(cortex_ingester_flush_queue_length{job="cortex/ingester"}[2m]))write_throttle_query: sum(rate(cortex_dynamo_throttled_total{operation="DynamoDB.BatchWriteItem"}[1m]))by (table) > 0write_usage_query: sum(rate(cortex_dynamo_consumed_capacity_total{operation="DynamoDB.BatchWriteItem"}[15m]))by (table) > 0read_usage_query: sum(rate(cortex_dynamo_consumed_capacity_total{operation="DynamoDB.QueryPages"}[1h]))by (table) > 0read_error_query: sum(increase(cortex_dynamo_failures_total{operation="DynamoDB.QueryPages",error="ProvisionedThroughputExceededException"}[1m]))by (table) > 0chunk_gang_size: 10chunk_get_max_parallelism: 32backoff_config:min_period: 100msmax_period: 50smax_retries: 20kms_key_id: ""s3: ""s3forcepathstyle: truebucketnames: lokiendpoint: http://10.51.23.206:9000region: ""access_key_id: minioadminsecret_access_key: '********'session_token: ""insecure: falsesse_encryption: falsehttp_config:timeout: 0sidle_conn_timeout: 1m30sresponse_header_timeout: 0sinsecure_skip_verify: falseca_file: ""signature_version: v4storage_class: STANDARDsse:type: ""kms_key_id: ""kms_encryption_context: ""backoff_config:min_period: 100msmax_period: 3smax_retries: 5azure:environment: AzureGlobalaccount_name: ""account_key: ""container_name: lokiendpoint_suffix: ""use_managed_identity: falseuse_federated_token: falseuser_assigned_id: ""use_service_principal: falseclient_id: ""client_secret: ""tenant_id: ""chunk_delimiter: '-'download_buffer_size: 512000upload_buffer_size: 256000upload_buffer_count: 1request_timeout: 30smax_retries: 5min_retry_delay: 10msmax_retry_delay: 500msbos:bucket_name: ""endpoint: bj.bcebos.comaccess_key_id: ""secret_access_key: ""bigtable:project: ""instance: ""grpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: truetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5stable_cache_enabled: truetable_cache_expiration: 30m0sgcs:bucket_name: ""service_account: ""chunk_buffer_size: 0request_timeout: 0senable_opencensus: trueenable_http2: truecassandra:addresses: ""port: 9042keyspace: ""consistency: QUORUMreplication_factor: 3disable_initial_host_lookup: falseSSL: falsehost_verification: truehost_selection_policy: round-robinCA_path: ""tls_cert_path: ""tls_key_path: ""auth: falseusername: ""password: ""password_file: ""custom_authenticators: []timeout: 2sconnect_timeout: 5sreconnect_interval: 1smax_retries: 0retry_max_backoff: 10sretry_min_backoff: 100msquery_concurrency: 0num_connections: 2convict_hosts_on_failure: truetable_options: ""boltdb:directory: ""filesystem:directory: ""swift:auth_version: 0auth_url: ""internal: falseusername: ""user_domain_name: ""user_domain_id: ""user_id: ""password: ""domain_id: ""domain_name: ""project_id: ""project_name: ""project_domain_id: ""project_domain_name: ""region_name: ""container_name: ""max_retries: 3connect_timeout: 10srequest_timeout: 5sgrpc_store: {}hedging:at: 0sup_to: 2max_per_second: 5named_stores:aws: {}azure: {}bos: {}filesystem: {}gcs: {}alibabacloud: {}swift: {}cos: {}cos:forcepathstyle: falsebucketnames: ""endpoint: ""region: ""access_key_id: ""secret_access_key: ""http_config:idle_conn_timeout: 1m30sresponse_header_timeout: 0sbackoff_config:min_period: 100msmax_period: 3smax_retries: 5api_key: ""service_instance_id: ""auth_endpoint: https://iam.cloud.ibm.com/identity/tokencr_token_file_path: ""trusted_profile_name: ""trusted_profile_id: ""index_cache_validity: 5m0sindex_queries_cache_config:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:max_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: store.index-cache-read.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500disable_broad_index_queries: falsemax_parallel_get_chunk: 150max_chunk_batch_size: 50boltdb_shipper:active_index_directory: ""shared_store: ""shared_store_key_prefix: index/cache_location: ""cache_ttl: 24h0m0sresync_interval: 5m0squery_ready_num_days: 0index_gateway_client:grpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5slog_gateway_requests: falseuse_boltdb_shipper_as_backup: falseingestername: ""mode: RWingesterdbretainperiod: 0sbuild_per_tenant_index: falsetsdb_shipper:active_index_directory: /home/loki/tsdb-shipper-activeshared_store: s3shared_store_key_prefix: index/cache_location: /home/loki/tsdb-shipper-cachecache_ttl: 48h0m0sresync_interval: 5m0squery_ready_num_days: 0index_gateway_client:grpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5slog_gateway_requests: falseuse_boltdb_shipper_as_backup: falseingestername: ""mode: RWingesterdbretainperiod: 0senable_postings_cache: false# 存储检查配置
chunk_store_config:chunk_cache_config:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:max_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: store.chunks-cache.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500chunk_cache_config_l2:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:max_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: experimental.store.chunks-cache-l2.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500write_dedupe_cache_config:enable_fifocache: falsedefault_validity: 1h0m0sbackground:writeback_goroutines: 10writeback_buffer: 10000writeback_size_limit: 1GBmemcached:expiration: 0sbatch_size: 1024parallelism: 100memcached_client:host: ""service: memcachedaddresses: ""timeout: 100msmax_idle_conns: 16max_item_size: 0update_interval: 1m0sconsistent_hash: truecircuit_breaker_consecutive_failures: 10circuit_breaker_timeout: 10scircuit_breaker_interval: 10sredis:endpoint: ""master_name: ""timeout: 500msexpiration: 0sdb: 0pool_size: 0username: ""password: ""tls_enabled: falsetls_insecure_skip_verify: falseidle_timeout: 0smax_connection_age: 0sroute_randomly: falseembedded_cache:max_size_mb: 100ttl: 1h0m0sfifocache:max_size_bytes: 1GBmax_size_items: 0ttl: 1h0m0svalidity: 0ssize: 0purgeinterval: 0sprefix: store.index-cache-write.async_cache_write_back_concurrency: 16async_cache_write_back_buffer_size: 500l2_chunk_cache_handoff: 0scache_lookups_older_than: 0smax_look_back_period: 0s# 配置块索引模式及其存储位置
schema_config:configs:- from: "2020-10-24"store: tsdbobject_store: awsschema: v12index:prefix: loki_index_period: 1dtags: {}chunks:prefix: ""period: 0stags: {}row_shards: 16# 压缩器
compactor:working_directory: /home/loki/compactorshared_store: ""shared_store_key_prefix: index/compaction_interval: 10m0sapply_retention_interval: 0sretention_enabled: falseretention_delete_delay: 2h0m0sretention_delete_worker_count: 150retention_table_timeout: 0sdelete_request_store: ""delete_batch_size: 70delete_request_cancel_period: 24h0m0sdelete_max_interval: 0smax_compaction_parallelism: 1upload_parallelism: 10compactor_ring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0stokens_file_path: ""zone_awareness_enabled: falseinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_availability_zone: ""instance_enable_ipv6: false_: falsetables_to_compact: 0skip_latest_n_tables: 0deletion_mode: ""# 压缩器客户端配置
compactor_grpc_client:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5s# 限制保护配置
limits_config:ingestion_rate_strategy: globalingestion_rate_mb: 4ingestion_burst_size_mb: 6max_label_name_length: 1024max_label_value_length: 2048max_label_names_per_series: 30reject_old_samples: truereject_old_samples_max_age: 1wcreation_grace_period: 10menforce_metric_name: truemax_line_size: 0Bmax_line_size_truncate: falseincrement_duplicate_timestamp: falsemax_streams_per_user: 0max_global_streams_per_user: 20000unordered_writes: trueper_stream_rate_limit: 3MBper_stream_rate_limit_burst: 15MBmax_chunks_per_query: 2000000max_query_series: 500max_query_lookback: 0smax_query_length: 30d1hmax_query_range: 0smax_query_parallelism: 32tsdb_max_query_parallelism: 512tsdb_max_bytes_per_shard: 600MBcardinality_limit: 100000max_streams_matchers_per_query: 1000max_concurrent_tail_requests: 10max_entries_limit_per_query: 5000max_cache_freshness_per_query: 1mmax_stats_cache_freshness: 0smax_queriers_per_tenant: 0query_ready_index_num_days: 0query_timeout: 5msplit_queries_by_interval: 30mmin_sharding_lookback: 0smax_query_bytes_read: 0Bmax_querier_bytes_read: 0Bvolume_enabled: falsevolume_max_series: 1000ruler_evaluation_delay_duration: 0sruler_max_rules_per_rule_group: 0ruler_max_rule_groups_per_tenant: 0ruler_alertmanager_config: nullruler_tenant_shard_size: 0ruler_remote_write_disabled: falseruler_remote_write_url: ""ruler_remote_write_timeout: 0sruler_remote_write_headers: {}ruler_remote_write_queue_capacity: 0ruler_remote_write_queue_min_shards: 0ruler_remote_write_queue_max_shards: 0ruler_remote_write_queue_max_samples_per_send: 0ruler_remote_write_queue_batch_send_deadline: 0sruler_remote_write_queue_min_backoff: 0sruler_remote_write_queue_max_backoff: 0sruler_remote_write_queue_retry_on_ratelimit: falseruler_remote_write_sigv4_config: nullruler_remote_evaluation_timeout: 0sruler_remote_evaluation_max_response_size: 0deletion_mode: filter-and-deleteretention_period: 0sper_tenant_override_config: ""per_tenant_override_period: 10sallow_deletes: falseshard_streams:enabled: falselogging_enabled: falsedesired_rate: 3MBindex_gateway_shard_size: 0# 前端查询工作器
frontend_worker:frontend_address: ""scheduler_address: ""dns_lookup_duration: 3sparallelism: 10match_max_concurrent: trueid: ""grpc_client_config:max_recv_msg_size: 104857600max_send_msg_size: 104857600grpc_compression: ""rate_limit: 0rate_limit_burst: 0backoff_on_ratelimits: falsebackoff_config:min_period: 100msmax_period: 10smax_retries: 10initial_stream_window_size: 63KiB1023Binitial_connection_window_size: 63KiB1023Btls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""connect_timeout: 5sconnect_backoff_base_delay: 1sconnect_backoff_max_delay: 5s# 表管理
table_manager:throughput_updates_disabled: falseretention_deletes_enabled: trueretention_period: 30dpoll_interval: 2m0screation_grace_period: 10m0sindex_tables_provisioning:enable_ondemand_throughput_mode: falseprovisioned_write_throughput: 1000provisioned_read_throughput: 300write_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80read_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80enable_inactive_throughput_on_demand_mode: falseinactive_write_throughput: 1inactive_read_throughput: 300inactive_write_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80inactive_read_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80inactive_write_scale_lastn: 4inactive_read_scale_lastn: 4chunk_tables_provisioning:enable_ondemand_throughput_mode: falseprovisioned_write_throughput: 1000provisioned_read_throughput: 300write_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80read_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80enable_inactive_throughput_on_demand_mode: falseinactive_write_throughput: 1inactive_read_throughput: 300inactive_write_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80inactive_read_scale:enabled: falserole_arn: ""min_capacity: 3000max_capacity: 6000out_cooldown: 1800in_cooldown: 1800target: 80inactive_write_scale_lastn: 4inactive_read_scale_lastn: 4# 成员列表客户端配置
memberlist:node_name: ""randomize_node_name: truestream_timeout: 10sretransmit_factor: 4pull_push_interval: 30sgossip_interval: 200msgossip_nodes: 3gossip_to_dead_nodes_time: 30sdead_node_reclaim_time: 0scompression_enabled: trueadvertise_addr: 127.0.0.1advertise_port: 7946cluster_label: ""cluster_label_verification_disabled: falsejoin_members: []min_join_backoff: 1smax_join_backoff: 1m0smax_join_retries: 10abort_if_cluster_join_fails: falserejoin_interval: 0sleft_ingesters_timeout: 5m0sleave_timeout: 20smessage_history_buffer_bytes: 0bind_addr: []bind_port: 7946packet_dial_timeout: 2spacket_write_timeout: 5stls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""# 配置运行时重新加载配置的配置
runtime_config:period: 10sfile: ""tracing:enabled: trueanalytics:reporting_enabled: falseusage_stats_url: https://stats.grafana.org/loki-usage-reportlegacy_read_target: true# 在多个模块之间共享的公共配置。如果在其他部分中给出了更具体的配置,则本节中的相关配置将被忽略
common:path_prefix: /home/lokistorage:s3:s3: ""s3forcepathstyle: truebucketnames: lokiendpoint: http://10.51.23.206:9000region: ""access_key_id: minioadminsecret_access_key: '********'session_token: ""insecure: falsesse_encryption: falsehttp_config:timeout: 0sidle_conn_timeout: 1m30sresponse_header_timeout: 0sinsecure_skip_verify: falseca_file: ""signature_version: v4storage_class: STANDARDsse:type: ""kms_key_id: ""kms_encryption_context: ""backoff_config:min_period: 100msmax_period: 3smax_retries: 5gcs:bucket_name: ""service_account: ""chunk_buffer_size: 0request_timeout: 0senable_opencensus: trueenable_http2: trueazure:environment: AzureGlobalaccount_name: ""account_key: ""container_name: lokiendpoint_suffix: ""use_managed_identity: falseuse_federated_token: falseuser_assigned_id: ""use_service_principal: falseclient_id: ""client_secret: ""tenant_id: ""chunk_delimiter: '-'download_buffer_size: 512000upload_buffer_size: 256000upload_buffer_count: 1request_timeout: 30smax_retries: 5min_retry_delay: 10msmax_retry_delay: 500msalibabacloud:bucket: ""endpoint: ""access_key_id: ""secret_access_key: ""bos:bucket_name: ""endpoint: bj.bcebos.comaccess_key_id: ""secret_access_key: ""swift:auth_version: 0auth_url: ""internal: falseusername: ""user_domain_name: ""user_domain_id: ""user_id: ""password: ""domain_id: ""domain_name: ""project_id: ""project_name: ""project_domain_id: ""project_domain_name: ""region_name: ""container_name: ""max_retries: 3connect_timeout: 10srequest_timeout: 5sfilesystem:chunks_directory: ""rules_directory: ""hedging:at: 0sup_to: 2max_per_second: 5cos:forcepathstyle: falsebucketnames: ""endpoint: ""region: ""access_key_id: ""secret_access_key: ""http_config:idle_conn_timeout: 1m30sresponse_header_timeout: 0sbackoff_config:min_period: 100msmax_period: 3smax_retries: 5api_key: ""service_instance_id: ""auth_endpoint: https://iam.cloud.ibm.com/identity/tokencr_token_file_path: ""trusted_profile_name: ""trusted_profile_id: ""persist_tokens: falsereplication_factor: 1ring:kvstore:store: inmemoryprefix: collectors/consul:host: localhost:8500acl_token: ""http_client_timeout: 20sconsistent_reads: falsewatch_rate_limit: 1watch_burst_size: 1cas_retry_delay: 1setcd:endpoints: []dial_timeout: 10smax_retries: 10tls_enabled: falsetls_cert_path: ""tls_key_path: ""tls_ca_path: ""tls_server_name: ""tls_insecure_skip_verify: falsetls_cipher_suites: ""tls_min_version: ""username: ""password: ""multi:primary: ""secondary: ""mirror_enabled: falsemirror_timeout: 2sheartbeat_period: 15sheartbeat_timeout: 1m0stokens_file_path: ""zone_awareness_enabled: falseinstance_id: master01instance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518def- loinstance_port: 0instance_addr: 127.0.0.1instance_availability_zone: ""instance_enable_ipv6: falseinstance_interface_names:- ens32- docker0- br-7be28fe90efa- br-572867518definstance_addr: 127.0.0.1compactor_address: ""compactor_grpc_address: ""shutdown_delay: 0sverifyconfig: trueprintconfig: truelisttargets: falselogconfig: trueconfigfile: loki-local-config.yamlconfigexpandenv: false

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com