Set value of remote_user field from header if flag is set.
Update docs.
Verification
Build thanos binary locally.
Start Query Frontend component. Point it to an instance of Query. Pass --query-frontend.slow-query-logs-user-header=<test header> and --query-frontend.log-queries-longer-than=1s.
Send request to /api/v1/query that contains a long-running query and sets the <test header>.
Fixes #7360.
Changes
query-frontend
command.remote_user
field from header if flag is set.Verification
thanos
binary locally.--query-frontend.slow-query-logs-user-header=<test header>
and--query-frontend.log-queries-longer-than=1s
./api/v1/query
that contains a long-running query and sets the<test header>
.