-
Notifications
You must be signed in to change notification settings - Fork 62
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
Prometheus cannot connect to /metrics
HTTPS endpoint
#709
Comments
/metrics
HTTPS endpoint, throws "cannot validate certificate <IP> because it doesn't contain any IP SANs"/metrics
HTTPS endpoint
Probably related to #225 |
@d4l-adrian-castro interesting issue. I never tested the full integration with prometheus myself, but considered it would be working. We'll need to test it. |
would you have any further details on cluster flavor (kind, k3s, aks, eks, gke, ...) or other information that may help reproducing? |
Just k8s, direct upstream (sorry for the delay, forgot about the notification) |
@phbelitz thoughts on this? |
The more I look into it, the less trivial this issue seems to be ... let me outline you the problem as much as I have grasped it by now: Currently we generate a certificate with helm, prior to even deploying Connaisseur or its pods. Thus we can't know the IP addresses the pods will have and can't add them to the certificate. Even if we would inject the certificate after creating the pods, injecting the certificate into the pods would restart them and give them yet another IP address 🤷 The auto discovery of prometheus doesn't work here unfortunatey ... Solutions I see here are:
For now you probably have to look for option 1, until we decide whether we want to go with option 2 or not (or maybe you want to create a PR for that 😄 ). Anyways thanks again for raising this issue! |
I just ran into the same issue. I do not want to go via the service, because I want to get the metrics for each connaisseur pod separately. The solution I came up with is to use a To make this work, I had, in addition, to explicitly specify the exposed port My
|
Describe the bug
Prometheus cannot connect to
/metrics
HTTPS endpoint, throws "cannot validate certificate because it doesn't contain any IP SANs"Expected behavior
Prometheus can connect to
/metrics
HTTPS endpoint.Optional: To reproduce
Optional: Versions (please complete the following information as relevant):
v1.23.4
0.6.1
quay.io/prometheus/prometheus:v2.34.0
Optional: Additional context
The text was updated successfully, but these errors were encountered: