ansible-role-duckprom
69 строк · 1.9 Кб
1auth_enabled: false
2
3server:
4http_listen_port: 3100
5
6ingester:
7lifecycler:
8address: 127.0.0.1
9ring:
10kvstore:
11store: inmemory
12replication_factor: 1
13final_sleep: 0s
14chunk_idle_period: 1h # Any chunk not receiving new logs in this time will be flushed
15max_chunk_age: 1h # All chunks will be flushed when they hit this age, default is 1h
16chunk_target_size: 1048576 # Loki will attempt to build chunks up to 1.5MB, flushing first if chunk_idle_period or max_chunk_age is reached first
17chunk_retain_period: 30s # Must be greater than index read cache TTL if using an index cache (Default index read cache TTL is 5m)
18max_transfer_retries: 0 # Chunk transfers disabled
19# --- see https://github.com/grafana/loki/issues/6122
20wal:
21dir: "/home/loki/wal"
22
23schema_config:
24configs:
25- from: 1970-01-01
26store: boltdb-shipper
27object_store: filesystem
28schema: v11
29index:
30prefix: index_
31period: 24h
32
33storage_config:
34boltdb_shipper:
35active_index_directory: /loki/boltdb-shipper-active
36cache_location: /loki/boltdb-shipper-cache
37cache_ttl: 24h # Can be increased for faster performance over longer query periods, uses more disk space
38shared_store: filesystem
39filesystem:
40directory: /loki/chunks
41
42compactor:
43working_directory: /loki/boltdb-shipper-compactor
44shared_store: filesystem
45
46limits_config:
47reject_old_samples: true
48reject_old_samples_max_age: 168h
49ingestion_burst_size_mb: 16
50ingestion_rate_mb: 16
51
52chunk_store_config:
53max_look_back_period: 0s
54
55table_manager:
56retention_deletes_enabled: true
57retention_period: {{ duckprom_loki_retention }}
58
59ruler:
60storage:
61type: local
62local:
63directory: /loki/rules
64rule_path: /loki/rules-temp
65alertmanager_url: localhost
66ring:
67kvstore:
68store: inmemory
69enable_api: true
70