2020-04-19 22:28:06 +02:00
|
|
|
---
|
|
|
|
# loki version to install
|
2022-03-04 14:43:35 +01:00
|
|
|
loki_version: "latest"
|
2020-04-19 22:28:06 +02:00
|
|
|
|
|
|
|
# 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
|
|
|
|
2022-03-04 14:43:35 +01:00
|
|
|
loki_binary_local_dir: ""
|
2020-04-19 22:28:06 +02:00
|
|
|
|
|
|
|
loki_target: all
|
2022-03-04 14:43:35 +01: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
|
|
|
|
2024-04-09 17:33:28 +02:00
|
|
|
loki_common_config:
|
|
|
|
instance_addr: 127.0.0.1
|
|
|
|
path_prefix: "{{ loki_storage_dir }}"
|
|
|
|
storage:
|
|
|
|
filesystem:
|
|
|
|
chunks_directory: "{{ loki_storage_dir }}/chunks"
|
|
|
|
rules_directory: "{{ loki_storage_dir }}/rules"
|
|
|
|
replication_factor: 1
|
|
|
|
ring:
|
|
|
|
kvstore:
|
|
|
|
store: inmemory
|
|
|
|
|
|
|
|
loki_query_range_config:
|
|
|
|
results_cache:
|
|
|
|
cache:
|
|
|
|
embedded_cache:
|
|
|
|
enabled: true
|
|
|
|
max_size_mb: 100
|
|
|
|
|
2020-04-19 22:28:06 +02:00
|
|
|
loki_distributor_config: []
|
|
|
|
loki_querier_config: []
|
|
|
|
loki_ingester_client_config: []
|
2024-04-09 17:33:28 +02:00
|
|
|
loki_ingester_config: []
|
|
|
|
loki_frontend_worker_config: []
|
|
|
|
loki_runtime_config: []
|
|
|
|
loki_storage_config: []
|
|
|
|
|
|
|
|
loki_chunk_store_config: []
|
2020-04-20 02:21:00 +02:00
|
|
|
|
|
|
|
loki_schema_config:
|
|
|
|
configs:
|
2024-04-09 17:33:28 +02:00
|
|
|
- from: 2020-10-24
|
|
|
|
store: tsdb
|
2022-03-04 14:43:35 +01:00
|
|
|
object_store: filesystem
|
2024-04-09 17:33:28 +02:00
|
|
|
schema: v13
|
2022-03-04 14:43:35 +01:00
|
|
|
index:
|
|
|
|
prefix: index_
|
2024-04-09 17:33:28 +02:00
|
|
|
period: 24h
|
2020-04-20 02:21:00 +02:00
|
|
|
|
2020-04-22 00:54:44 +02:00
|
|
|
loki_limits_config:
|
2024-04-09 17:40:56 +02:00
|
|
|
retention_period: 744h
|
2020-04-20 02:21:00 +02:00
|
|
|
|
2024-04-09 17:40:56 +02:00
|
|
|
loki_table_manager_config: []
|
2022-04-30 18:41:05 +02:00
|
|
|
loki_compactor_config:
|
2024-04-09 17:33:28 +02:00
|
|
|
working_directory: "{{ loki_storage_dir }}/retention"
|
|
|
|
delete_request_store: filesystem
|
2022-04-30 18:41:05 +02:00
|
|
|
compaction_interval: 10m
|
|
|
|
retention_enabled: true
|
|
|
|
retention_delete_delay: 2h
|
2024-04-09 17:33:28 +02:00
|
|
|
retention_delete_worker_count: 150
|
2022-04-30 18:41:05 +02:00
|
|
|
|
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
|
2023-06-07 12:11:47 +02:00
|
|
|
host: "{{ inventory_hostname }}"
|
2020-04-22 00:54:44 +02:00
|
|
|
max_age: 12h
|
2020-04-20 02:21:00 +02:00
|
|
|
relabel_configs:
|
2022-03-04 14:43:35 +01: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:
|
2022-02-04 10:20:10 +01:00
|
|
|
filename: /tmp/positions.yaml
|
|
|
|
|
2022-03-04 14:43:35 +01:00
|
|
|
loki_docker_driver: false
|