ansible-loki-role/defaults/main.yml
2022-04-30 18:46:26 +02:00

113 lines
2.4 KiB
YAML

---
# loki version to install
loki_version: "latest"
# loki bins to install
loki_bins:
- loki
- logcli
- promtail
loki_user: loki
loki_group: loki
loki_config_dir: /etc/loki
loki_storage_dir: /var/lib/loki
loki_tags: []
loki_listen_address: 127.0.0.1
loki_listen_port: 3100
promtail_listen_address: "{{ loki_listen_address }}"
loki_binary_local_dir: ""
loki_target: all
loki_auth_enabled: "false"
loki_server_config:
http_listen_address: "{{ loki_listen_address }}"
http_listen_port: "{{ loki_listen_port }}"
loki_distributor_config: []
loki_querier_config: []
loki_ingester_client_config: []
loki_ingester_config:
lifecycler:
address: 127.0.0.1
ring:
kvstore:
store: inmemory
replication_factor: 1
final_sleep: 0s
chunk_idle_period: 5m
chunk_retain_period: 30s
loki_storage_config:
boltdb:
directory: "{{ loki_storage_dir }}/index"
filesystem:
directory: "{{ loki_storage_dir }}/chunks"
loki_chunk_store_config:
max_look_back_period: 0s
loki_schema_config:
configs:
- from: 2020-01-01
store: boltdb
object_store: filesystem
schema: v11
index:
prefix: index_
period: 168h
chunks:
prefix: index_
period: 168h
row_shards: 16
loki_limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
loki_frontend_worker_config: []
loki_runtime_config: []
loki_table_manager_config:
retention_deletes_enabled: false
retention_period: 0s
loki_compactor_config:
working_directory: "{{ loki_storage_dir }}/compactor"
shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 50
promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"
promtail_server_config:
http_listen_address: "{{ promtail_listen_address }}"
http_listen_port: 9080
grpc_listen_address: "{{ promtail_listen_address }}"
grpc_listen_port: 0
promtail_scrape_config:
- job_name: journal
journal:
labels:
job: node
host: "{{ ansible_hostname }}"
max_age: 12h
relabel_configs:
- source_labels:
- __journal__systemd_unit
target_label: unit
promtail_target_config: []
promtail_positions_config:
filename: /tmp/positions.yaml
loki_docker_driver: false