thanos-io / thanos

Highly available Prometheus setup with long term storage capabilities. A CNCF Incubating project.
https://thanos.io
Apache License 2.0
12.73k stars 2.04k forks source link

Implement selector.relabel-config for query/sidecar/receiver #6105

Open skpenpen opened 1 year ago

skpenpen commented 1 year ago

Thanos allow data selection for cold data via store component (selector.relabel-config) But there is no alertnative for the hot data, there is no --selector.relabel-config option for query/sidecar/receiver It is not possible to do tenant partitionning for hot data Could you think about it ?

This feature would be an alternative to enforce label with prom-label-proxy

The use case is to allow a narrow view of datas, for a specific team, in grafana without having to configure multi remote write with tenants as teams, etc...

fpetkovski commented 1 year ago

We brought this up in this proposal, so it definitely makes sense 👍

sharadgaur commented 1 year ago

Here is the PR based on proposal.