logging: add promtail + loki + grafana #190
1 changed files with 2 additions and 3 deletions
|
@ -15,17 +15,16 @@ ansible_forgejo_user_pass: "{{ lookup('viczem.keepass.keepass', 'user_setup_forg
|
||||||
promtail_version: "3.0.0" # TODO renovate
|
promtail_version: "3.0.0" # TODO renovate
|
||||||
promtail_loki_server_url: "http://docker10.mgrote.net:3100" # TODO passt das für blocky?
|
promtail_loki_server_url: "http://docker10.mgrote.net:3100" # TODO passt das für blocky?
|
||||||
promtail_user_additional_groups: root
|
promtail_user_additional_groups: root
|
||||||
promtail_config_expand_env: true
|
|
||||||
promtail_extra_args: "-client.external-labels=hostname={{ ansible_fqdn }}"
|
|
||||||
promtail_config_scrape_configs:
|
promtail_config_scrape_configs:
|
||||||
- job_name: system
|
- job_name: system
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost
|
- localhost
|
||||||
labels:
|
labels:
|
||||||
|
host: {{ ansible_fqdn }}
|
||||||
job: varlogs
|
job: varlogs
|
||||||
__path__: /var/log/**/**
|
__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
|
### mgrote_user_setup
|
||||||
dotfiles:
|
dotfiles:
|
||||||
|
|
Loading…
Reference in a new issue