ansible-loki-role/defaults/main.yml

104 lines
2.1 KiB
YAML
Raw Normal View History

2020-04-19 22:28:06 +02:00
---
# 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
2020-04-20 02:21:00 +02:00
loki_storage_dir: /var/lib/loki
loki_tags: []
2020-04-20 18:03:35 +02:00
loki_listen_address: 127.0.0.1
loki_listen_port: 3100
2020-04-22 00:54:44 +02:00
promtail_listen_address: "{{ loki_listen_address }}"
2020-04-19 22:28:06 +02:00
loki_binary_local_dir: ''
loki_target: all
2020-04-22 00:54:44 +02:00
loki_auth_enabled: 'false'
2020-04-19 22:28:06 +02:00
loki_server_config:
2020-04-20 02:21:00 +02:00
http_listen_address: "{{ loki_listen_address }}"
http_listen_port: "{{ loki_listen_port }}"
2020-04-19 22:28:06 +02:00
loki_distributor_config: []
loki_querier_config: []
loki_ingester_client_config: []
2020-04-20 02:21:00 +02:00
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:
2020-05-04 23:48:42 +02:00
max_look_back_period: 0s
2020-04-20 02:21:00 +02:00
loki_schema_config:
configs:
- from: 2020-01-01
store: boltdb
object_store: filesystem
schema: v11
index:
2020-04-22 00:54:44 +02:00
prefix: index_
2020-04-20 02:21:00 +02:00
period: 168h
chunks:
2020-04-22 00:54:44 +02:00
prefix: index_
2020-04-20 02:21:00 +02:00
period: 168h
row_shards: 16
2020-04-22 00:54:44 +02:00
loki_limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
2020-04-19 22:28:06 +02:00
loki_frontend_worker_config: []
loki_runtime_config: []
2020-04-20 02:21:00 +02:00
loki_table_manager_config:
retention_deletes_enabled: false
2020-05-25 23:24:24 +02:00
retention_period: 0s
loki_ruler_config: {}
2020-04-20 02:21:00 +02:00
promtail_client_config:
- url: "http://{{ loki_listen_address }}:{{ loki_listen_port }}/loki/api/v1/push"
promtail_server_config:
2020-04-22 00:54:44 +02:00
http_listen_address: "{{ promtail_listen_address }}"
2020-04-20 02:21:00 +02:00
http_listen_port: 9080
2020-04-22 00:54:44 +02:00
grpc_listen_address: "{{ promtail_listen_address }}"
2020-04-20 02:21:00 +02:00
grpc_listen_port: 0
promtail_scrape_config:
- job_name: journal
journal:
labels:
2020-05-04 23:48:42 +02:00
job: node
2020-04-22 00:54:44 +02:00
host: "{{ ansible_hostname }}"
max_age: 12h
2020-04-20 02:21:00 +02:00
relabel_configs:
2020-04-22 00:54:44 +02:00
- source_labels:
- __journal__systemd_unit
target_label: unit
2020-04-20 02:21:00 +02:00
2020-04-22 00:54:44 +02:00
promtail_target_config: []
promtail_positions_config:
filename: /tmp/positions.yaml