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

Collected before with the same name and label values

Open wenfei3 opened this issue 6 years ago • 9 comments

Hi,thanks for your exporter,it is very useful! Recently,I think I have a few problems. When I started the nginx_exporter,there were few errors: wechatimg370 then I curled http://localhost/nginx_status/format/json and I found that there were two servers in the esadmin upstream:

"esadmin":[{"server":"10.30.46.147:9100","requestCounter":0,"inByt
es":0,"outBytes":0,"responses":{"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0},"requestMsecCounter":0,"requestMsec":0,"requestMsecs":{"times":[],"msecs":[]},"requestBuckets":{"msecs":[],"counters":[]},"responseMsecCounter":0,"responseMsec":0,"responseMsecs":{"times":[],"msecs":[]},"responseBuckets":{"msecs":[],"counters":[]},"weight":1,"maxFails":1,"failTimeout":10,"backup":false,"down":false,"overCounts":{"maxIntegerSize":18446744073709551615,"requestCounter":0,"inBytes":0,"outBytes":0,"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0,"requestMsecCounter":0,"responseMsecCounter":0}},{"server":"10.30.46.147:9100","requestCounter":0,"inBytes":0,"outBytes":0,"responses":{"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0},"requestMsecCounter":0,"requestMsec":0,"requestMsecs":{"times":[],"msecs":[]}

but there was only one in my profile: image So...what's my problem? Thanks for any reply!

wenfei3 avatar Nov 19 '18 04:11 wenfei3

it seems like the nginx-vtx-module did this...maybe you could send a issue proposal there

sysulq avatar Nov 19 '18 08:11 sysulq

it seems like the nginx-vtx-module did this...maybe you could send a issue proposal there

Ok,I have sent a issue to there.Thank you very much!

wenfei3 avatar Nov 20 '18 07:11 wenfei3

Same problem!

ZILosoft avatar Jan 16 '19 14:01 ZILosoft

这么多中国人在这里用中文讨论。。。

wanrui avatar Jul 12 '19 06:07 wanrui

it seems like the nginx-vtx-module did this...maybe you could send a issue proposal there

Ok,I have sent a issue to there.Thank you very much!

哥, 这个问题解决了吗

lizeyun avatar Jul 29 '19 09:07 lizeyun

it seems like the nginx-vtx-module did this...maybe you could send a issue proposal there

Ok,I have sent a issue to there.Thank you very much!

哥, 这个问题解决了吗

同样过来

luger1990 avatar Aug 01 '19 08:08 luger1990

nginx-module-vts 指标是从upstream里面的配置读取的,同时nginx-vts-exporter认为标签上不能重复,所以在配置upstream 配置的时候千万不能重复,否则会导致nginx-vts-exporter 拉取数据的时候认为发生了错误

wanrui avatar Aug 01 '19 09:08 wanrui

我也遇到这个问题, 后来我发现nginx配置 vhost_traffic_status_display_format prometheus 格式, 访问 http://ip/status 的时候就是metrics格式

location /status {
                vhost_traffic_status_display;
                vhost_traffic_status_display_format prometheus;
        }

rplees avatar Mar 13 '21 07:03 rplees

I understand this is old issue, however check this answer: https://github.com/hnlq715/nginx-vts-exporter/issues/83

it helped me. I had an issue where two servers inside my upstream with the same IP

for example

upstream test-1 {
  server a;
  server b:
}

in my /etc/hosts, I had a and b point to the same IP

hope that helps.

Binsabbar avatar Apr 16 '22 21:04 Binsabbar