-
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
Ability to use multiple dedup labels #1174
Comments
Hey, thanks for this (: The current way is just use single label. In your case, literally remove prometheus_replica and just use We could add multi label, but what's the reason for that if you remove thie extra metadata immdiately on Thanos Query API? so why do you need this multiple labels info? If you will never filter on that? The only use case would be if you sometimes deduplicate and for other system you don't deduplicate, is that a case? (: |
I'm currently working on a setup that involves kube-prometheus and kube-thanos. Let's use |
So essentially this is 4 replications of same data? I would say maybe we need some deduplication during writes, but I think that use case for time being makes sense, we should do it. |
I think currently this is not a problem yet, as we don't actually replicate any data, so deduplication is still just the |
Now that replication by the receive component has merged (#1270), this is more pressing. I’ll do some digging :) |
AC:
|
Thanks, looking into it. |
I imagine the query parameter would override the fixed replica-label flags ? |
Thanks for the enhancement, this is perfect! |
Let's say we have two external services
Service A
Service B
Which are scraped by two prometheus setups in two kubernetes clusters (so there's two prometheus instances in each site)
site X: P1 and P2
site Y: P1 and P2
And then we have a "global" thanos querier that uses the store API of the thanos query nodes in both of these sites.
So we end up with metrics like
but we really just want
Where we want to dedup across site and prometheus_replica. What is the best approach here? Can the global thanos querier ask the site X and site Y to dedup, and then the global just dedups on site? Or is it possible to provide multiple dedup labels?
The text was updated successfully, but these errors were encountered: