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

View File

@ -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"