Skip to content
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

Collected before with the same name and label values #72

Open
wenfei3 opened this issue Nov 19, 2018 · 9 comments
Open

Collected before with the same name and label values #72

wenfei3 opened this issue Nov 19, 2018 · 9 comments

Comments

@wenfei3
Copy link

wenfei3 commented Nov 19, 2018

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!

@sysulq
Copy link
Owner

sysulq commented Nov 19, 2018

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

@wenfei3
Copy link
Author

wenfei3 commented Nov 20, 2018

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!

@ZILosoft
Copy link

Same problem!

@wanrui
Copy link

wanrui commented Jul 12, 2019

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

@lizeyun
Copy link

lizeyun commented Jul 29, 2019

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
Copy link

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!

哥, 这个问题解决了吗

同样过来

@wanrui
Copy link

wanrui commented Aug 1, 2019

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

@rplees
Copy link

rplees commented Mar 13, 2021

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

location /status {
                vhost_traffic_status_display;
                vhost_traffic_status_display_format prometheus;
        }

@Binsabbar
Copy link

I understand this is old issue, however check this answer: #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants