Use journald for Nomad Docker logging so they can be ingested into Loki
This commit is contained in:
parent
92fd139263
commit
2bde762902
@ -314,6 +314,9 @@
|
|||||||
volumes:
|
volumes:
|
||||||
enabled: true
|
enabled: true
|
||||||
selinuxlabel: "z"
|
selinuxlabel: "z"
|
||||||
|
# Send logs to journald so we can scrape them for Loki
|
||||||
|
logging:
|
||||||
|
type: journald
|
||||||
extra_labels:
|
extra_labels:
|
||||||
- "job_name"
|
- "job_name"
|
||||||
- "job_id"
|
- "job_id"
|
||||||
|
Loading…
Reference in New Issue
Block a user