Files
cloudkitty/devstack/files/loki-config.yaml
Jaromir Wysoglad c714c52c82 Add reject_old_samples_max_age to loki config
By default Loki allows to push samples at most 1 week old. When
cloudkitty processor is started for the first time, it'll try
to process data from the 1st day of the current month and store
them into the configured storage backend. If it's currently after
the 7th day of the month and the collector has data older than a
week, the processor will try to push data to Loki older than
a week, which Loki will reject by default.

This change configures Loki deployed in devstack to accept data
up to 31 days old.

Change-Id: Ieb43692f9a4f84b1b298fbaa4fdb736544f85b64
Signed-off-by: Jaromir Wysoglad <jwysogla@redhat.com>
2025-10-17 15:02:57 +00:00

31 lines
569 B
YAML

auth_enabled: false
server:
http_listen_port: 3100
common:
instance_addr: 0.0.0.0
path_prefix: /opt/stack/data/loki
storage:
filesystem:
chunks_directory: /opt/stack/data/loki/chunks
rules_directory: /opt/stack/data/loki/rules
replication_factor: 1
ring:
kvstore:
store: inmemory
schema_config:
configs:
- from: 2020-10-24
store: tsdb
object_store: filesystem
schema: v13
index:
prefix: index_
period: 24h
limits_config:
max_query_length: 745h
reject_old_samples_max_age: 745h