Skip to content

An Ansible role to install Grafana Loki and Promtail.

License

Notifications You must be signed in to change notification settings

hostwithquantum/ansible-loki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-lint flake8 yaml-lint molecule

ansible-loki

An Ansible role to install Grafana Loki and Promtail.

Requirements

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

  • unzip on the hosts

For the dockerized promtail:

  • Python: docker==4.3.1
  • docker-cli

Role Variables

See defaults/main.yml to customize this role.

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: hostwithquantum.loki

License

BSD-2-Clause

Author Information

An optional section for the role authors to include contact information, or a website (HTML is not allowed).