Fix new version

This commit is contained in:
SebClem 2024-04-09 17:33:28 +02:00
parent 5aa30385dd
commit 30090bb7fe
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 40 additions and 32 deletions

View File

@ -27,62 +27,61 @@ loki_server_config:
http_listen_address: "{{ loki_listen_address }}" http_listen_address: "{{ loki_listen_address }}"
http_listen_port: "{{ loki_listen_port }}" http_listen_port: "{{ loki_listen_port }}"
loki_distributor_config: [] loki_common_config:
loki_querier_config: [] instance_addr: 127.0.0.1
loki_ingester_client_config: [] path_prefix: "{{ loki_storage_dir }}"
loki_ingester_config: storage:
lifecycler: filesystem:
address: 127.0.0.1 chunks_directory: "{{ loki_storage_dir }}/chunks"
rules_directory: "{{ loki_storage_dir }}/rules"
replication_factor: 1
ring: ring:
kvstore: kvstore:
store: inmemory store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
loki_storage_config: loki_query_range_config:
boltdb: results_cache:
directory: "{{ loki_storage_dir }}/index" cache:
filesystem: embedded_cache:
directory: "{{ loki_storage_dir }}/chunks" enabled: true
max_size_mb: 100
loki_chunk_store_config: loki_distributor_config: []
max_look_back_period: 0s loki_querier_config: []
loki_ingester_client_config: []
loki_ingester_config: []
loki_frontend_worker_config: []
loki_runtime_config: []
loki_storage_config: []
loki_chunk_store_config: []
loki_schema_config: loki_schema_config:
configs: configs:
- from: 2020-01-01 - from: 2020-10-24
store: boltdb store: tsdb
object_store: filesystem object_store: filesystem
schema: v11 schema: v13
index: index:
prefix: index_ prefix: index_
period: 168h period: 24h
chunks:
prefix: index_
period: 168h
row_shards: 16
loki_limits_config: loki_limits_config:
enforce_metric_name: false enforce_metric_name: false
reject_old_samples: true reject_old_samples: true
reject_old_samples_max_age: 168h reject_old_samples_max_age: 168h
loki_frontend_worker_config: []
loki_runtime_config: []
loki_table_manager_config: loki_table_manager_config:
retention_deletes_enabled: false retention_deletes_enabled: false
retention_period: 0s retention_period: 0s
loki_compactor_config: loki_compactor_config:
working_directory: "{{ loki_storage_dir }}/compactor" working_directory: "{{ loki_storage_dir }}/retention"
shared_store: filesystem delete_request_store: filesystem
compaction_interval: 10m compaction_interval: 10m
retention_enabled: true retention_enabled: true
retention_delete_delay: 2h retention_delete_delay: 2h
retention_delete_worker_count: 50 retention_delete_worker_count: 150
promtail_client_config: promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push" - url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"

View File

@ -13,6 +13,10 @@ auth_enabled: {{ loki_auth_enabled }}
server: server:
{{ loki_server_config | to_nice_yaml(indent=2) | indent(2, False) }} {{ loki_server_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %} {% endif %}
{% if loki_common_config != [] %}
common:
{{ loki_common_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}
{% if loki_distributor_config != [] %} {% if loki_distributor_config != [] %}
distributor: distributor:
{{ loki_distributor_config | to_nice_yaml(indent=2) | indent(2, False) }} {{ loki_distributor_config | to_nice_yaml(indent=2) | indent(2, False) }}
@ -62,3 +66,8 @@ runtime_config:
compactor: compactor:
{{ loki_compactor_config | to_nice_yaml(indent=2) | indent(2, False) }} {{ loki_compactor_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %} {% endif %}
{% if loki_query_range_config != [] %}
query_range:
{{ loki_query_range_config | to_nice_yaml(indent=2) | indent(2, False) }}
{% endif %}