promtail: Add level metadata field for systemd-journal
This commit is contained in:
parent
c236bb61a4
commit
71c00d0cce
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ scrape_configs:
|
|||
relabel_configs:
|
||||
- source_labels: ['__journal__systemd_unit']
|
||||
target_label: 'unit'
|
||||
- source_labels: ['__journal_priority_keyword']
|
||||
target_label: 'level'
|
||||
pipeline_stages:
|
||||
- structured_metadata:
|
||||
level:
|
||||
- job_name: nginx
|
||||
static_configs:
|
||||
- targets:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue