goldenclone / nginx-sla

Модуль nginx, реализующий сбор расширенной статистики по HTTP-кодам и временам ответов апстримов для дальнейшей передачи в средства мониторинга типа zabbix.
105 stars 16 forks source link

Statistic virtual host #13

Open virusystem opened 8 years ago

virusystem commented 8 years ago

Good day. Have some trouble. We have many virtual host (sites) in independent configs. /sla_status - collects statistics from whole server upstream, but we need collect statistic independently for each domain. nginx 1.8.0

abbat commented 8 years ago

You can use different sla_pool's for different virtual hosts and add sla_pass to own pool.

virusystem commented 8 years ago

Good day. This is not what I meant. exaple: test1.local.conf upstream test1 { server 192.168.1.1:80; } sla_pool ..... /sla_status

test2.local.conf upstream test2 { server 192.168.1.2:80; }

when i go test1.local/sla_status i see servers 192.168.1.1 and 192.168.1.2, but i need see only 192.168.1.1

Thanks.

abbat commented 8 years ago

Hmm. Interesting. For what use-case you need it?

virusystem commented 8 years ago

Good day. We need collect statistic SLA for each domain (site) within the each server in upsteam. In each config file (site) in directive we may have from 1 up to 6 servers. Namely recive (collect): Info from sla_pool name.all and sla_pool name.server's ip from upstream for each config (domain/site)

Thanks