sysulq / nginx-vts-exporter

Simple server that scrapes Nginx vts stats and exports them via HTTP for Prometheus consumption
https://sysulq.github.io/nginx-vts-exporter/
MIT License
645 stars 142 forks source link

Problems running in Kubernetes #39

Open KuLi opened 7 years ago

KuLi commented 7 years ago

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?

remeika commented 6 years ago

What is the output of the Nginx VTS stats page?

KuLi commented 6 years ago

Here is our VTS JSON Output vts-output.log

sysulq commented 6 years ago

hi @KuLi , did you solve this problem already?

KuLi commented 6 years ago

hi, @hnlq715, no the problem is still there

etlfg commented 6 years ago

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
ZILosoft commented 5 years ago

Same problem!

xiaojiayu404 commented 5 years ago

Same problem!How to solve this problem ?