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: Custom job label #51

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

adamhackl
Copy link
Contributor

@adamhackl adamhackl commented Nov 13, 2024

In modules/kubernetes/annotations/metrics.alloy and modules/kubernetes/annotations/logs/logs.alloy add an attribute job_format which defaults to $1/$2. This equals namespace/pod_controller_name. But since its set by that attribute, it can be overridden to something different. An example is that I am setting it to $2 so the job name doesn't have the namespace in it and matches the log job names. The default behavior is the same as before this change.

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

Successfully merging this pull request may close these issues.

1 participant