Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skrepr/ansible-role-promtail
Install promtail in a docker container on a Linux host
https://github.com/skrepr/ansible-role-promtail
ansible ansible-galaxy ansible-role docker grafana logs promtail
Last synced: 26 days ago
JSON representation
Install promtail in a docker container on a Linux host
- Host: GitHub
- URL: https://github.com/skrepr/ansible-role-promtail
- Owner: skrepr
- License: mit
- Created: 2022-02-08T06:41:58.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-05T12:02:02.000Z (almost 3 years ago)
- Last Synced: 2024-11-10T18:48:46.683Z (3 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, docker, grafana, logs, promtail
- Language: Jinja
- Homepage: https://galaxy.ansible.com/skrepr/promtail
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
Ansible Role Promtail
# About
This Ansible role is used for getting logs from your host to Loki with Promtail.
It also has the ability to add custom Nginx config to extract detailed logs from Nginx with Promtail.
[![Ansible Role](https://img.shields.io/ansible/role/57981)](https://galaxy.ansible.com/skrepr/promtail)
[![Ansible Role](https://img.shields.io/ansible/role/d/57981)](https://galaxy.ansible.com/skrepr/promtail)
[![Ansible Quality Score](https://img.shields.io/ansible/quality/57981)](https://galaxy.ansible.com/skrepr/promtail)## Requirements
- SSH access to the server
- Docker installed
## Role Variables```
loki_user: this is your basic_auth user
loki_password: this is where the bearer token should be placed
loki_url: this the url where loki is used. /api/prom/push is already added in the template!promtail_http_port: 0
promtail_grpc_port: 0```
## Dependencies
You will need to have Docker installed on the host. You can do that for example with [this](https://github.com/geerlingguy/ansible-role-docker) awesome role from Geerlingguy!
## Example Playbook
```yaml
#!/usr/bin/env ansible-playbook- hosts: production
become: trueroles:
- geerlingguy.docker
- skrepr.promtail
```## License
MIT / BSD
## Author Information
This role was created in 2022 by [Jeroen van der Meulen](https://github.com/jeroenvandermeulen), commisioned by [Skrepr](https://skrepr.com)