File tree 4 files changed +83
-1
lines changed
4 files changed +83
-1
lines changed Original file line number Diff line number Diff line change
1
+ auth_enabled : false
2
+
3
+ server :
4
+ http_listen_port : 3100
5
+
6
+ ingester :
7
+ lifecycler :
8
+ address : 127.0.0.1
9
+ ring :
10
+ kvstore :
11
+ store : inmemory
12
+ replication_factor : 1
13
+ final_sleep : 0s
14
+ chunk_idle_period : 1h # 此时没有接收到新日志的任何块都将被刷新
15
+ max_chunk_age : 1h # 所有的块将刷新时,他们达到这个年龄,默认是1h
16
+ chunk_target_size : 1048576 # Loki将尝试构建最大为1.5MB的块,如果先达到chunk_idle_period或max_chunk_age,则首先刷新
17
+ chunk_retain_period : 30s # 如果使用索引缓存,必须大于索引读缓存TTL(默认索引读缓存TTL为5m)
18
+ max_transfer_retries : 0 # 块传输禁用
19
+
20
+ schema_config :
21
+ configs :
22
+ - from : 2023-5-8
23
+ store : boltdb-shipper
24
+ object_store : filesystem
25
+ schema : v11
26
+ index :
27
+ prefix : index_
28
+ period : 24h
29
+
30
+ storage_config :
31
+ boltdb_shipper :
32
+ active_index_directory : /loki/boltdb-shipper-active
33
+ cache_location : /loki/boltdb-shipper-cache
34
+ cache_ttl : 24h # 可以在更长的查询周期内提高更快的性能,使用更多的磁盘空间
35
+ shared_store : filesystem
36
+ filesystem :
37
+ directory : /loki/chunks
38
+
39
+ compactor :
40
+ working_directory : /loki/boltdb-shipper-compactor
41
+ shared_store : filesystem
42
+
43
+ limits_config :
44
+ reject_old_samples : true
45
+ reject_old_samples_max_age : 168h
46
+
47
+ chunk_store_config :
48
+ max_look_back_period : 0s
49
+
50
+ table_manager :
51
+ retention_deletes_enabled : false
52
+ retention_period : 0s
53
+
54
+ ruler :
55
+ storage :
56
+ type : local
57
+ local :
58
+ directory : /loki/rules
59
+ rule_path : /loki/rules-temp
60
+ alertmanager_url : http://localhost:9093
61
+ ring :
62
+ kvstore :
63
+ store : inmemory
64
+ enable_api : true
Original file line number Diff line number Diff line change
1
+ server :
2
+ http_listen_port : 9080
3
+ grpc_listen_port : 0
4
+
5
+ positions :
6
+ filename : /tmp/positions.yaml
7
+
8
+ clients :
9
+ - url : http://loki:3100/loki/api/v1/push
10
+
11
+ scrape_configs :
12
+ - job_name : system
13
+ static_configs :
14
+ - targets :
15
+ - localhost
16
+ labels :
17
+ job : varlogs
18
+ __path__ : /var/log/*log
Original file line number Diff line number Diff line change 3
3
<VersionMajor >0</VersionMajor >
4
4
<VersionMinor >9</VersionMinor >
5
5
<VersionPatch >9</VersionPatch >
6
- <VersionQuality >6 </VersionQuality >
6
+ <VersionQuality >7 </VersionQuality >
7
7
<VersionPrefix >$(VersionMajor).$(VersionMinor).$(VersionPatch).$(VersionQuality)</VersionPrefix >
8
8
</PropertyGroup >
9
9
</Project >
You can’t perform that action at this time.
0 commit comments