-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Deduplication labels per tenant #3871
Comments
Makes sense, thanks for raising. I think this screams for config object instead of flag though 🤔 |
Did I write flag anywhere? |
@brancz I might take a swing at this if that's OK. I just have a few questions about the implementation:
replica_labels:
- tenant1:
- replicay
- tenant2:
- replica1
- replicax And that would be in a file, specified by a flag like
and then use a regex.
|
I think I would start with the config and not per request (it could still be done additionally later). I suspect that there will be various per tenant configurations eventually, so I think I would invert the config:
We would need something like what is depicted in #3822 to identify the tenant of a request (which does not exist yet). |
Ok, so we use the value of the Sidenote: is there a specific label used to distinguish tenants, or will that have to be configured also? |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Hello 👋 Looks like there was no activity on this issue for the last two months. |
Is your proposal related to a problem?
Different tenants may choose to label their ingesting Prometheus servers with different labels, Thanos should be flexible enough to allow for this.
Describe the solution you'd like
I'm inclined to allow it per request in order to be able to have different label schemes even within one tenant, on the other hand the same per-tenant deduplication-label would be good to have at offline deduplication time, so a per-tenant configuration could be a good idea as well.
Describe alternatives you've considered
Enforcing tenants to use the same labels for deduplication everywhere. This is not practical I believe as you can't necessarily enforce things like this, and even if it's likely that in the lifetime of running Thanos these might want to change.
@thanos-io/thanos-maintainers
The text was updated successfully, but these errors were encountered: