-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[nginx] VTS metrics breaks prometheus endpoint :10254/metrics
(0.9.0-beta.3)
#448
Comments
Possible related people: @gianrubio @aledbf Could it be that that particular Ingress has somewhat complex setup? Heavily redacted Ingress resource in question: apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: redacted-staging
namespace: redacted
labels:
environment: staging
project: redacted
annotations:
kubernetes.io/tls-acme: "true"
kubernetes.io/ingress.class: "nginx"
spec:
tls:
- hosts:
- host1.redacted.com
- host2.redacted.com
- host3.redacted.com
- host4.redacted.com
- host5.redacted.com
- host6.redacted.com
secretName: redacted-tls
rules:
- host: host1.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-1
- path: /admin
backend:
serviceName: redacted-staging
servicePort: port-1-admin
- host: host2.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-1
- path: /admin
backend:
serviceName: redacted-staging
servicePort: port-1-admin
- host: host3.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-2
- host: host4.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-3
- host: host5.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-4
- host: host6.redacted.com
http:
paths:
- path: /
backend:
serviceName: redacted-staging
servicePort: port-1 All 1120 erors are from 2 different versions of this same ingress resource. |
:10254/metrics
(0.9.0-beta.3):10254/metrics
(0.9.0-beta.3)
@MaikuMori please check the vts output in url |
Status endpoint works, that's the first thing I checked. I'm sending you email with json. It's somewhat big because we have more Ingreses besides this one. |
Did you customize your template?
Looks like your upstream is not named in the pattern name-portnumber.
On Wed, 15 Mar 2017 at 18:53, Miks Kalnins ***@***.***> wrote:
Status endpoint works, that's the first thing I checked. I'm sending you
email with json. It's somewhat big because we have more Ingreses besides
this one.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#448 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFbljAAW_Cv0DStbCJSBnEabvQWtCkACks5rmCWRgaJpZM4MeMd2>
.
--
Giancarlo Rubio
|
I don't use custom template. Also working via email with @aledbf where I provided him some additional debug info. |
@gianrubio I think the issue is related to the the reuse of the upstreams inside the same zone (multiple ingress pointing to the same service). |
I just reproduce the error, the controller is duplicating the server upstream. I'm looking how to fix this nginx.conf
Error
|
I concur this is probably the error since we have multiple upstream servers with same and/or different ports. |
@MaikuMori just to confirm, could you share your upstream for redacted-redacted-staging-redacted ? |
is not duplicating the upstream, the ports are different (names) https://github.com/kubernetes/ingress/blob/master/core/pkg/ingress/controller/controller.go#L739 |
Sorry, it's duplicating the server
|
@gianrubio right, but that is ok. The current implementation allows different configuration for the same service if is used by different ingress rules like sticky sessions |
@MaikuMori please test the image |
@MaikuMori @gianrubio this issue is related to #455 |
Yep, this indeed fixes the problem. |
After deploying
0.9.0-beta.3
and enablingvts
the metrics endpoint is broken.Going to
:10245/metrics
throws500
with following text:The text was updated successfully, but these errors were encountered: