Adding hostname labels into the systemd-journal job for promtail agent
This commit is contained in:
parent
71f0431808
commit
f4d8755f8e
@ -23,6 +23,8 @@ scrape_configs:
|
||||
labels:
|
||||
job: systemd-journal
|
||||
relabel_configs:
|
||||
- source_labels: ["__journal__hostname"]
|
||||
target_label: "hostname"
|
||||
- source_labels: ["__journal__systemd_unit"]
|
||||
target_label: "unit"
|
||||
- source_labels: ["__journal_container_name"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user