-
Notifications
You must be signed in to change notification settings - Fork 812
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
query-frontend: add option to preserve specific request headers #4486
Conversation
…ferred, which makes using Cortex in frontend only mode with any other Prometheus engine harder. This PR fixes this issue. Signed-off-by: Manish Kumar Gupta <[email protected]>
@pstibrany maybe you can have a look or assign it to someone who is the best for the area? I reached out on the slack channel as well, but couldn't get engagement on this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks; some thoughts below.
Signed-off-by: Manish Kumar Gupta <[email protected]>
@bboreham Thanks for your comments. Incorporated changes. Please review. |
Signed-off-by: Manish Kumar Gupta <[email protected]>
@bboreham , Thanks for another round of comments. Addressed all of them. Please review and help with the merge when you have a moment. |
Signed-off-by: Manish Kumar Gupta <[email protected]>
@bboreham , I wasn't able to reproduce the integration tests failing, so I have pushed another commit in hope that it might help. Can you kick off the workflows again. |
Signed-off-by: Manish Kumar Gupta <[email protected]>
Signed-off-by: Manish Kumar Gupta <[email protected]>
@bboreham, please help review /merge again. I figure out how to run integration tests and fixed the issue. They should all be green now. Thank you . |
Signed-off-by: Manish Kumar Gupta <[email protected]>
Thanks for valuable comments. |
Hi, we discussed this at the Cortex community call today; the general feeling was that rather than passing all headers and having a specific block-list, Cortex should drop all headers by default and let the administrator configure an allow-list. Could you have a go at that please? |
Sure. I'll work on that. Would you prefer the new config setting to be in frontend subsection or querier or somewhere else? |
Signed-off-by: Manish Kumar Gupta <[email protected]>
Did the change. Can you help quickly review, so I know I haven't missed obvious things. This is first contribution so still learning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting there. I have a number of suggestions to word things differently, and one more copy of an object that I don't understand.
Signed-off-by: Manish Kumar Gupta <[email protected]>
Signed-off-by: Manish Kumar Gupta <[email protected]>
Please have a look again, when you get a moment. |
Signed-off-by: Manish Kumar Gupta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. I left a non blocking comment. Thanks!
Signed-off-by: Manish Kumar Gupta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for this Manish.
What this PR does:
When applying PrometheusCodec headers from the requests are not transferred, which makes using Cortex in frontend-only mode with any other Prometheus engine harder. This PR fixes this issue.
Which issue(s) this PR fixes:
Fixes #4416
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]