-
Notifications
You must be signed in to change notification settings - Fork 133
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
ServerGroup TLS settings not configured for remote_read client #373
Comments
There is also a possibility that I just don't fully understand the usage of |
@iplay88keys This definitely sounds like a miss, thanks for the report! To clarify a bit, remote_read is an alternative way of fetching the data from the downstream prometheus APIs. Most people don't bother with using |
@jacksontj Thanks for the quick response! I'd be happy to submit a PR early next week! Thanks for clarifying the use case for |
@jacksontj We are working on the PR. We are not seeing any tests around the |
We have Nginx running in front of each of our Prometheus instances which is terminating mutual TLS connections from Promxy before proxying the requests to the Prometheus instance running alongside them (which is listening on localhost).
The issue we are having is that when Promxy is configured with
remote_read: true
in the ServerGroup settings, the TLS configuration from the Promxy configuration is not being passed to the http client that is created for the PromAPIRemoteRead client.As a result, we are getting errors with regards to the ServerName not matching the DNS names we have set as the ServerGroup targets.
We are working around this for now by removing the
remote_read: true
line in our Promxy configuration files. This results in the API client being used instead which supports the TLS configuration. It seems likely that it would be useful to others to have TLS settings be passed in to the PromAPIRemoteRead client.We tested adding the HTTPClientConfig to the remote client configuration struct which results in successful connections:
The text was updated successfully, but these errors were encountered: