logging: add promtail + loki + grafana #190

Closed
mg wants to merge 46 commits from loki into master
Showing only changes of commit b72e80a0bc - Show all commits

View file

@ -15,17 +15,16 @@ ansible_forgejo_user_pass: "{{ lookup('viczem.keepass.keepass', 'user_setup_forg
promtail_version: "3.0.0" # TODO renovate
promtail_loki_server_url: "http://docker10.mgrote.net:3100" # TODO passt das für blocky?
promtail_user_additional_groups: root
promtail_config_expand_env: true
promtail_extra_args: "-client.external-labels=hostname={{ ansible_fqdn }}"
promtail_config_scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
host: {{ ansible_fqdn }}
job: varlogs
__path__: /var/log/**/**
# TODO add docker
# TODO add docker und lokale logs wenn sie cniht in /var/log liegen: https://ruanbekker.medium.com/logging-with-docker-promtail-and-grafana-loki-d920fd790ca8
### mgrote_user_setup
dotfiles: