Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add job type and parent job fields to allocation metadata #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

justmiles
Copy link

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 JobType and ParentJob fields to the AllocMeta struct in app.go
  • Added the job_type and parent_job_name fields to the vector.toml.tmpl file

- Added `JobType` and `ParentJob` fields to the `AllocMeta` struct in `app.go`
- Added the `job_type` and `parent_job_name` fields to the `vector.toml.tmpl` file
@justmiles justmiles marked this pull request as ready for review June 5, 2024 18:29
@mr-karan
Copy link
Owner

mr-karan commented Jun 6, 2024

This is super useful, thanks a lot. Give me some time to locally test it and get back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants