added promtail

This commit is contained in:
=
2023-03-30 09:42:35 +02:00
parent 390f1e200b
commit e832fc8e03
3 changed files with 82 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
server:
http_listen_port: {{ http_listen_port }}
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: "{{ client_url }}"
scrape_configs:
- job_name: journal
journal:
max_age: 12h
path: /var/log/journal
labels:
job: systemd-journal
relabel_configs:
- source_labels: ['__journal__systemd_unit']
target_label: 'unit'