vozlt / nginx-module-vts

Nginx virtual host traffic status module
BSD 2-Clause "Simplified" License
3.22k stars 459 forks source link

How show server name instead IP address at Upstreams? #139

Open madest92 opened 6 years ago

madest92 commented 6 years ago

Configuration upstreams:

upstream backend {
    server s1:3031 max_fails=3 fail_timeout=3s weight=3;
    server s2:3031 max_fails=3 fail_timeout=3s weight=5;
    server s3:3031 max_fails=3 fail_timeout=3s weight=5;
    server s0:3031 max_fails=0 backup;
    keepalive 30;
}

upstream public-api {
    server s1:3031 max_fails=3;
    server s2:3031 max_fails=3 backup;
    keepalive 30;
}

I want to see statistics by server name(s0-s3). But i see statistics by IP:

2018-09-25 13-53-30

Is it possible?

Frodox commented 5 years ago

You could Sum it in you monitoring system, for example