--- # 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_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 loki_distributor_config: [] 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: configs: - from: 2020-10-24 store: tsdb object_store: filesystem schema: v13 index: prefix: index_ period: 24h loki_limits_config: retention_period: 744h loki_table_manager_config: [] loki_compactor_config: working_directory: "{{ loki_storage_dir }}/retention" delete_request_store: filesystem compaction_interval: 10m retention_enabled: true retention_delete_delay: 2h retention_delete_worker_count: 150 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: "{{ inventory_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