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

was collected before with the same name and label values #78

Closed lizeyun closed 5 years ago

lizeyun commented 5 years ago

collected metric nginx_upstream_bytes label:<name:"backend" value:"xx:8380" > label:<name:"direction" value:"out" > label:<name:"upstream" value:"xx_web" > counter: was collected before with the same name and label values

What can i do

lizeyun commented 5 years ago

i have find how cause the problem , in case some upstream_addr has no virt host to use

remove the upstream solve this

xudingjun3131 commented 2 years ago

upstream can not use localhost or domain,it must to be used ip address