-
Notifications
You must be signed in to change notification settings - Fork 539
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
Allow set custom X-Scope-OrgID header in remote-write of metrics-generator #1448
Comments
Agree that Tempo is stricter than necessary. This check was added originally to avoid overwriting the X-Scope-OrgID set internally. Instead I think just logging a warning should be sufficient. So the behaviour would be:
Does this seem reasonable? |
Yes, it's ok, @kvrhdn . |
I just spent good hour trying to figure out what's wrong with my metrics-generator config. this is my metrics-generator block:
According to example in official helm-chart (https://artifacthub.io/packages/helm/grafana/tempo-distributed#activate-metrics-generator) this should work:
But it's not and i'm still getting 401 on mimir distributor:
|
So what is happening here is that Tempo is removing the In a single-tenant scenario this doesn't make sense and we should remove this check -> #1448 (comment) I will make a PR to fix this. As a short-term solution you can put a proxy in between Tempo and Mimir to inject the |
Describe the bug
When using remote-write with a custom
X-Scope-OrgID
value inmetrics-generator
, Tempo change the header value to the current one in it.This code https://github.com/grafana/tempo/blob/main/modules/generator/storage/config_util.go is the responsable of this changing.
To Reproduce
Steps to reproduce the behavior:
X-Scope-OrgID
header value.caller=config_util.go:30 tenant=tenantA msg="discarding X-Scope-OrgId header" key=X-Scope-OrgID value=TenantAB
Expected behavior
It'll very great have possibility to use a real custom
X-Scope-OrgID
value due nature of multitenancy and its granularity.Environment:
Additional Context
Slack conversation: https://grafana.slack.com/archives/C01D981PEE5/p1653420879734839
Configuration:
The text was updated successfully, but these errors were encountered: