leemiyinghao / ansible-role-loki

Ansible role for grafana loki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Role for managing loki

For possible settings and format look at example configs
This role only installs loki. For promtail, see this role

Compatibility

This role is compatible with any modern systemd-based distro.

Role Variables

Variable name Default value Description
loki_version 2.1.0 version of loki
loki_system_user loki user for running loki
loki_system_group loki group for running loki
loki_server_http_listen_port 3100 listen port for loki
loki_server_http_listen_address localhost listen address for loki
loki_directories [] array of directories to create before running loki
loki_arguments [] arguments to pass to loki binary
loki_schema_config default dict YAML with schema config
loki_storage_config default dict YAML with storage config
loki_ingester default dict YAML with ingester settings
loki_limits_config default dict YAML with limits settings
loki_chunk_store_config default dict YAML with chuck store settings
loki_table_manager default dict YAML with table manager settings
loki_compactor empty YAML with compactor settings
loki_cache_config empty YAML with cache settings

Settings

To configure loki with role you just need to supply YAML to each corresponding block. See example configs from loki github repo for examples.
Default settings are provided to get "proof-of-concept" installation up and running, you can see them in defaults/main.yml
Please note that by default loki writes to /tmp/, you will need to adjust loki_storage_config in case you want S3/GCS/other supported storage

About

Ansible role for grafana loki


Languages

Language:HTML 100.0%