instance_addr,修改为安装主机的IP地址 alertmanager_url:修改为alertmanager的url,本次并未使用alertmanager,所以写的localhost 编辑Systemd[2]的服务配置文件 vim /lib/systemd/system/loki.service [Unit] Description=Loki service After=network.target [Service] Type=simple User=loki ExecStart=/usr/local/bin/lok...
instance_addr:172.15.25.101#一般为部署loki的机器的ip kvstore:store:inmemory #沿用即可 schema_config:configs:-from:2020-10-24#2020-10-24之后loki信息用下面的配置,这个主要是用来做兼容的 store:boltdb-shipper #索引使用哪种存储 object_store:filesystem #怎么存储,简单部署的话保存在本地文件系统 schema:...
2、安装loki curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.2/loki-linux-amd64.zip" unzip -d /usr/local/bin/ loki-linux-amd64.zip useradd -r -s /sbin/nologin loki mkdir -pv /etc/loki /data/loki chown -R loki:loki /etc/loki chmod -R 777 /etc/loki /dat...
## 至少定义了1个join_members配置后,将自动为分发服务器、摄取器和ring 配置memberlist类型的kvstorememberlist:randomize_node_name: truestream_timeout: 5sretransmit_factor: 4join_members:- 'loki-memberlist'abort_if_cluster_join_fails: trueadvertise_addr: 0.0.0.0advertise_port: 7946bind_addr: ["0.0.0...
instance_addr: 127.0.0.1 kvstore: store: inmemory schema_config: configs: - from: "2020-10-24" index: period: 24h prefix: index_ object_store: aws schema: v11 store: boltdb-shipper limits_config: enforce_metric_name: false reject_old_samples: true ...
instance_addr: 127.0.0.1 kvstore: store: inmemory schema_config: configs: - from: 2020-10-24 store: boltdb-shipper object_store: filesystem schema: v11 index: prefix: index_ period: 24h # ruler: # alertmanager_url: http://localhost:9093 ...
一、更新服务器,关闭selinux yum update -y vim /etc/selinux/config SELINUX=disabled 二、搭建rsyslog 1、创建日志存放目录及权限 mkdir /var/log/network chmod 700 -R /var/log/network/ chown -R promtail:promtail /var/log/network/ 2、优化日志格式和存放目录 ...
1m0s# 默认第一个网卡的名称# instance_interface_names# instance_addr: 127.0.0.1# 默认server.grpc-listen-portinstance_port:9095frontend:max_outstanding_per_tenant:4096querier_forget_delay:1h0scompress_responses:truelog_queries_longer_than:2m0smax_body_size:104857600query_stats_enabled:truescheduler_...
instance_addr: 127.0.0.1 path_prefix: /var/lib/loki storage: filesystem: chunks_directory: /var/lib/loki/chunks rules_directory: /var/lib/loki/rules replication_factor: 1 ring: kvstore: store: inmemory ingester_rf1: enabled: false
# CLI flag: -query-scheduler.ring.instance-addr [instance_addr: <string> | default = ""] # 运行该实例的可用性区域,如果zone-awareness 是开启的,则必选 # CLI flag: -query-scheduler.ring.instance-availability-zone [instance_availability_zone: <string> | default = ""] # 开启实例 IPv6 ...