Skip to content

Navigation Menu

Sign in
Sign up

Prometheus remote write to cortex returns 405 #4191

Discussion options

I have just recently adopted cortex so apologies if the question comes across as a very basic one.

I have deployed the cortex helm chart (https://github.com/cortexproject/cortex-helm-chart) to our EKS cluster with some changes to the values file.

To summarise,

  • auth_enabled is false
  • In nginx I am setting some header values
    setHeaders: X-Scope-OrgID: 0 X-Prometheus-Remote-Write-Version: 0.1.0
  • At the prometheus end I am setting up the remoteWrite url as follows
    remoteWrite: - url: http://cortex.dev.XXXXX.com/api/v1/push
  • Cortex nginx forwards the request to the cortex distributor which returns a 405

Am I missing something here? I would be really grateful If someone would provide some pointers on how to proceed from here.

Thanks.

You must be logged in to vote

I figured out that the issue was caused by using http URL instead of https. As a result nginx was converting the POST request to a GET request and was hence returning 405. Using https in the remote write URL fixed it for me. Apologies for the false alarm

Replies: 1 comment 1 reply

Comment options

I figured out that the issue was caused by using http URL instead of https. As a result nginx was converting the POST request to a GET request and was hence returning 405. Using https in the remote write URL fixed it for me. Apologies for the false alarm

You must be logged in to vote
1 reply
Comment options

Hi, Can ik how to check if the Cortex nginx forwards the request to the cortex distributor?

Answer selected by pracucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /