cortexproject / cortex-tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sending org Id to analyse prometheus command is not supported

sivadeepN opened this issue · comments

We are using cortex-tools analyse prometheus to figure out high cardinality metrics. But the analyse prometheus command doesn't take an org-id as variable. Without it we get a 401 authorization error as ours is a multi tenant setup. analyse ruler takes an id and it works fine.
Is there someway to send id to the prometheus command as well? If not what else can we do to make it work.

Right now we added this req.Header.Set("X-Scope-OrgID", rt.username) on prom client library that is being used on our local and it works but it doesn't sound like a solution for us.