nginx-vts-exporter icon indicating copy to clipboard operation
nginx-vts-exporter copied to clipboard

Problems running in Kubernetes

Open KuLi opened this issue 7 years ago • 7 comments

I added the exporter to our Kubernetes Cluster at the nginx Controller. At the metrics page i get the following errors

4 error(s) occurred:
* collected metric nginx_upstream_response label:<name:"backend" value:"xxx.xxx.xxx.xxx:80" > label:<name:"upstream" value:"xxx" > gauge:<value:0 >  was collected before with the same name and label values
* collected metric nginx_upstream_response label:<name:"backend" value:"xxx.xxx.xxx.xxx:80" > label:<name:"upstream" value:"xxx" > gauge:<value:0 >  was collected before with the same name and label values
* collected metric nginx_upstream_response label:<name:"backend" value:"xxx.xxx.xxx.xxx:80" > label:<name:"upstream" value:"xxx" > gauge:<value:0 >  was collected before with the same name and label values
* collected metric nginx_upstream_response label:<name:"backend" value:"xxx.xxx.xxx.xxx:80" > label:<name:"upstream" value:"xxx" > gauge:<value:0 >  was collected before with the same name and label values

I have 4 endpoints behind this nginx. I use the latest docker image. Do you have any suggestion for me to fix that errors?

KuLi avatar Oct 06 '17 14:10 KuLi

What is the output of the Nginx VTS stats page?

remeika avatar Nov 09 '17 18:11 remeika

Here is our VTS JSON Output vts-output.log

KuLi avatar Nov 21 '17 09:11 KuLi

hi @KuLi , did you solve this problem already?

sysulq avatar Mar 12 '18 02:03 sysulq

hi, @hnlq715, no the problem is still there

KuLi avatar Apr 06 '18 08:04 KuLi

Same problem here ! Got a lot of "was collected before with the same name and label values" lines

# nginx-vts-exporter --version
nginx_vts_exporter, version 0.10.3 (branch: HEAD, revision: 7ae72460468dbaa1804f8cc9c0b1dfe9bd571577)
  build user:       travis@travis-job-fdea9879-2361-42f7-aba3-83857dca83c4
  build date:       20180823-12:13:40
  go version:       go1.9.4

etlfg avatar Oct 29 '18 15:10 etlfg

Same problem!

ZILosoft avatar Jan 16 '19 14:01 ZILosoft

Same problem!How to solve this problem ?

xiaojiayu404 avatar May 23 '19 11:05 xiaojiayu404