server:http_listen_port:9080grpc_listen_port:0positions:filename:/tmp/positions.yamlclients:-url:http://192.168.1.6:3100/loki/api/v1/pushscrape_configs:-job_name:systemstatic_configs:-targets:-localhostlabels:job:varlogs__path__:/var/log/*logfile_sd_configs:-files:-/data/promtail/log_file...
http_listen_port: 3100 grpc_listen_port: 39095#grpc监听端口,默认为9095grpc_server_max_recv_msg_size: 15728640#grpc最大接收消息值,默认4mgrpc_server_max_send_msg_size: 15728640#grpc最大发送消息值,默认4mingester: lifecycler: address: 127.0.0.1 ring: kvstore: store: inmemory replication_factor:...
http_listen_port: 3100 grpc_listen_port: 9096 common: path_prefix: /data/loki storage: filesystem: chunks_directory: /data/loki/chunks rules_directory: /data/loki/rules replication_factor: 1 ring: instance_addr: 10.20.20.20 kvstore: store: inmemory schema_config: configs: - from: 2020-10-...
http_listen_port: 9080 grpc_listen_port: 0 positions: filename: /var/log/positions.yaml # This location needs to be writeable by promtail. client: url: http://localhost:3100/loki/api/v1/push scrape_configs: - job_name: system pipeline_stages: static_configs: - targets: - localhost lab...
http_listen_port: 9080 grpc_listen_port: 0 # Positions positions: filename: ./positions.yaml # Loki服务器的地址 clients: - url:http://192.168.17.10:3100/loki/api/v1/push scrape_configs: - job_name: nginx #区分从其他日志组收集的日志 ...
http_listen_port: 3100 grpc_listen_port: 9095 chunk_store_config: max_look_back_period: 1h schema_config: configs: - from: 2020-01-01 store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ period: 168h
auth_enabled:falseserver:http_listen_port:3100#http监听端口,代理服务(promtail)会向此端口发送日志流 grpc_listen_port:9086#grpc监听端口,简单部署不用管 common:#默认配置 path_prefix:/data/loki #默认的路径前缀 storage:filesystem:chunks_directory:/data/loki/chunks #压缩后的日志,存储在这个目录 ...
grpc_listen_port: 0 positions: filename: /tmp/positions.yaml clients: - url: http://192.156.71.125:3100/loki/api/v1/push ## 此处lokiserver修改为服务器端地址 scrape_configs: - job_name: application # job名称,自定义 static_configs: ...
grpc_listen_port: 0 positions: filename: /tmp/positions.yaml clients: - url: http://localhost:3100/loki/api/v1/push scrape_configs: - job_name: nginx pipeline_stages: - replace: expression: '(?:[0-9]{1,3}\.){3}([0-9]{1,3})' ...
server:http_listen_port: 3100grpc_listen_port: 9096 ingester:wal:enabled: truedir: /opt/app/loki/wallifecycler:address: 127.0.0.1ring:kvstore:store: inmemoryreplication_factor: 1final_sleep: 0schunk_idle_period: 1h # Any chunk not receiving new logs in this time will be flushedmax_chunk_...