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

nomad service discovery: add support for filtering by service or tag #14108

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

Conversation

jaloren
Copy link

@jaloren jaloren commented May 15, 2024

Fixes #11775

@jaloren jaloren force-pushed the feature/nomad-sd-tags branch 4 times, most recently from cc8b0fc to ca05268 Compare May 15, 2024 19:21
.gitignore Outdated Show resolved Hide resolved
Fixes prometheus#11775

Signed-off-by: Joseph Lorenzini <jaloren@fastmail.com>
@jaloren
Copy link
Author

jaloren commented May 16, 2024

@roidelapluie As i was looking through the nomad api, I realized that its not exposing allocation id. This is useful for identifying anomalies that are occurring on specific instances of a service. In this PR, I propose we include allocation id as a new tag. On other hand, this could turn into a high cardinality label so this might be a foot gun. And on third hand i suppose node id and service id might be good enough. Unsure. Thoughts?

https://github.com/hashicorp/nomad/blob/main/api/services.go#L46

@jaloren
Copy link
Author

jaloren commented May 24, 2024

@roidelapluie just wanted to touch base and see if there's anything more that is needed from me to get this PR merged. If there isn't and this will get merged when time permits, then I'll put a pin on this and check back in a few weeks. Thanks!

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.

Feature Request: Support tags filter on nomad service discovery
2 participants