更新Schema享受丝滑般切换 Loki对于数据存储的目标是向后兼容,通过修改Schema配置允许以增量方式升级到新的存储模式。首先,我们需要在schema_config中创建一个新的configs条目,要记住的是新加的存储模式起始时间必须是将来的某个时间点,这样Table Manager就可以在之前创建所需的表,并确保不会查询现有数据。否则在查询时会...
directory: /data/loki/chunks #块存储地址 limits_config: enforce_metric_name: false reject_old_samples: true reject_old_samples_max_age: 168h chunk_store_config: # 最大可查询历史日期 28天,这个时间必须是schema_config中的period的倍数,否则报错。 max_look_back_period: 672h # 表的保留期28天 ...
[root@service-monitoring etc]# ps -ef|grep promtail root 12772 12231 0 17:48 pts/1 00:00:00 /data/software/loki/promtail-linux-amd64 -config.file=/data/software/loki/etc/promtail-local-config.yaml root 12796 12231 0 17:48 pts/1 00:00:00 grep --color=auto promtail 重启 # 1 查...
object_store: filesystem schema: v11 index: prefix: index_ period: 24h ruler: alertmanager_url: http://localhost:9093 table_manager: retention_deletes_enabled:trueretention_period: 720h limits_config:# enforce_metric_name: falsereject_old_samples:truereject_old_samples_max_age: 720h# ingestion...
schema_config: configs: -from:2019-04-15 store: boltdb object_store: filesystem schema: v11 index: prefix: index_ period: 168h storage_config: boltdb: directory: /tmp/loki/index filesystem: directory: /tmp/loki/chunks limits_config: ...
# loki-local-config.yaml auth_enabled: false # 关闭认证,生产环境建议开启并使用Secret存储凭证 server: http_listen_port: 3100 grpc_listen_port: 9095 chunk_store_config: max_look_back_period: 1h schema_config: configs: - from: 2020-01-01 ...
schema_config:配置日志索引和存储。 storage_config:配置日志存储后端。 ingester:配置日志收集。 4.4、启动Loki服务,测试 运行以下命令启动Loki服务: 代码语言:javascript 复制 $ docker-compose up-d 等待几秒钟后,可以通过以下命令查看服务是否正常启动:
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 请修改以上几项内容 instance_addr,修改为安装主机的IP地址 ...
schema_config:configs:- from: 2020-10-24store: boltdb-shipperobject_store: filesystemschema: v11index:prefix: index_period: 24h storage_config:boltdb_shipper:active_index_directory: /opt/app/loki/boltdb-shipper-activecache_location: /opt/app/loki/boltdb-shipper-cachecache_ttl: 24h # Can be ...
schema_config: configs: - from: 2022-06-21 store: boltdb-shipper # index object_store: s3 # chunks schema: v12 index: prefix: loki_index_ period: 24h ruler: storage: type: local local: directory: /etc/loki/rules ring: kvstore: ...