-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add tasks Meta and tags available for templates #7
Comments
This one's a bit tricky because
So, which |
Mmmm, indeed my bad. I though the API would return the merged Meta, but it's not. Maybe just adding the allocation index would already help. This info can be extracted from the Name, eg
=> Task is in allocation index 2, of in the server TaskGroup of the zookeeper Job. |
I believe this parsing of
|
I'm unsure if this is unrelated to this issue. Sorry if it isn't! I'm trying to include Nomad Meta defined at job level, adapting dani's example for a bit more context:
Essentially, |
For our Nomad configuration, we use a lot of tags that delineate the service sending logs (env, internal name, priority, etc.) The code is not optimally designed, so I refrained from creating a merge request in the main repository |
For now, nomad-vector-logger exposes the following task's attributes, which are then available in templates
It'd be great to also have access to Tags and Meta. I use meta fields for my prometheus metrics already, to differentiate multiple instances of the same task
Then some prometheus remap config so I have automatically the instance label set as $TaskName-$AllocMeta (eg : redis-0)
It'd be great to have access to those here as well, so vector could attach Metadata, like
The text was updated successfully, but these errors were encountered: