nomad-vector-logger
nomad-vector-logger copied to clipboard
feat: add job type and parent job fields to allocation metadata
Hi @mr-karan,
First, thanks for taking the time to build this! I've found it to be quite useful.
I run a lot of batch jobs via Nomad and the logging sinks tend to lose the context of the job their in. Nomad batch jobs all have a parent job. This PR adds the JobType and ParentJob labels which will allow us to properly configure downstream sinks for batch jobs.
- Added
JobTypeandParentJobfields to theAllocMetastruct inapp.go - Added the
job_typeandparent_job_namefields to thevector.toml.tmplfile
This is super useful, thanks a lot. Give me some time to locally test it and get back!