ingress-nginx: [nginx] VTS metrics breaks prometheus endpoint `:10254/metrics` (0.9.0-beta.3)

After deploying 0.9.0-beta.3 and enabling vts the metrics endpoint is broken.

Going to :10245/metrics throws 500 with following text:

An error has occurred during metrics gathering:

1120 error(s) occurred:
* collected metric nginx_nginx_all_upstream_responses_total label:<name:"server" value:"10.0.10.62:4000" > label:<name:"status_code" value:"1xx" > label:<name:"upstream" value:"redacted-redacted-staging-redacted" > counter:<value:0 >  was collected before with the same name and label values
* collected metric nginx_nginx_all_upstream_responses_total label:<name:"server" value:"10.0.10.62:4000" > label:<name:"status_code" value:"2xx" > label:<name:"upstream" value:"redacted-redacted-staging-redacted" > counter:<value:0 >  was collected before with the same name and label values
* collected metric nginx_nginx_all_upstream_responses_total label:<name:"server" value:"10.0.10.62:4000" > label:<name:"status_code" value:"3xx" > label:<name:"upstream" value:"redacted-redacted-staging-redacted" > counter:<value:0 >  was collected before with the same name and label values
* collected metric nginx_nginx_all_upstream_responses_total label:<name:"server" value:"10.0.10.62:4000" > label:<name:"status_code" value:"4xx" > label:<name:"upstream" value:"redacted-redacted-staging-redacted" > counter:<value:0 >  was collected before with the same name and label values
* collected metric nginx_nginx_all_upstream_responses_total label:<name:"server" value:"10.0.10.62:4000" > label:<name:"status_code" value:"5xx" > label:<name:"upstream" value:"redacted-redacted-staging-redacted" > counter:<value:0 >  was collected before with the same name and label values

... snip ... (they're all the same error, just different values)

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (10 by maintainers)

Most upvoted comments

Yep, this indeed fixes the problem.