![linux](https://habrastorage.org/r/w120/webt/5a/81/01/5a8101e3c3bf7404834731.png)
Linux
0
Вклад в тег
scrape_configs:
- file_sd_configs:
- files:
- /etc/promtail/file_sd/*.yml
- /etc/promtail/file_sd/*.yaml
- /etc/promtail/file_sd/*.json
job_name: file_sd
- job_name: journal
journal:
labels:
hostname: ''
job: systemd-journal
max_age: 12h
pipeline_stages:
- regex:
expression: .*(?P<drop_key>oom-kill).*
- labels:
drop_key: null
- match:
action: drop
selector: '{drop_key!="oom-kill"}'
relabel_configs:
- source_labels:
- _journal_systemd_unit
target_label: unit