Use journald for Nomad Docker logging so they can be ingested into Loki

This commit is contained in:
IamTheFij 2022-11-10 10:19:51 -08:00
parent 92fd139263
commit 2bde762902
1 changed files with 3 additions and 0 deletions

View File

@ -314,6 +314,9 @@
volumes:
enabled: true
selinuxlabel: "z"
# Send logs to journald so we can scrape them for Loki
logging:
type: journald
extra_labels:
- "job_name"
- "job_id"