On 23 Apr 16:05, Julius Volz wrote:
> So basically, you want to take incoming user queries and ensure that any
> series selectors have certain user-specific tenant labels set, no matter
> how deep they are buried in an expression. That is indeed not easily
> solvable by a simple templating solution. You're right, you need to
> properly parse PromQL for that. There are some people who have built
> gateways that do the parsing and ensuring of labels, like for example
>
https://github.com/kfdm/promql-guard (I do not know this well, I've just
> seen it, but can't vouch for it, but the general approach makes sense).
>
> Prometheus itself was never meant to be multi-tenant, and introducing such
> a feature would only solve a small part of multi-tenancy in a specific way.
> For example, it doesn't address anything on the data ingestionside, or
> performance/resource isolations. Thus I assume most of the team would
> currently not choose to add it to Prometheus itself, but ask people to
> implement it externally, like with a gateway mentioned above.
>
> On Thu, Apr 23, 2020 at 3:20 PM Severyn Lisovskyi <
smlis...@gmail.com>
> wrote:
>
> > In my opinion we should not rely on PromQL engine optimisations where
> > this optimisations may be omitted by better written expression. Sorry for
> > being picky :)
> >
> > You answered my question in this topic, and I agree with you, but we
> > drifted a bit from original problem in github feature request. Let me
> > rephrase it a bit to make it more clear:
> >
> > namespace). *