added promtail
This commit is contained in:
20
promtail/files/promtail.conf.jinja
Normal file
20
promtail/files/promtail.conf.jinja
Normal 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'
|
Reference in New Issue
Block a user