loki

Build Status

ansible-loki

An Ansible role to install Grafana Loki and Promtail.

Credits

This is a fork from:

https://github.com/ashleykleynhans/ansible-loki

Requirements

For the standard (from binary) install of loki/promtail:

  • unzip on the hosts

Role Variables

See defaults/main.yml to customize this role.

A basic configuration file is a follows:

vi inventories/host_vars/<YOUR SERVER>/loki.yml

add:

---
loki_version: 2.9.1
loki_install: true

Dependencies

None.

Example Playbook

This role is driven by inventory groups:

all:
  hosts:
    monitoring.host.example.org:
  children:
    loki:
      monitoring.host.example.org:
    promtail:
      monitoring.host.example.org:

And the playbook:

- hosts: all
  roles:
    - role: rezizter.ansible_loki

License

BSD-2-Clause

Install
ansible-galaxy install rezizter/ansible_loki
GitHub repository
License
bsd-2-clause
Downloads
11
Owner